Skip to content

Commit

Permalink
Updated export-image to not depend on fake-hwclock and hardlink. (RPi…
Browse files Browse the repository at this point in the history
  • Loading branch information
rkubes authored and fuji246 committed Sep 13, 2019
1 parent bac9f5a commit 879ca6b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions export-image/04-finalise/01-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ IMG_FILE="${STAGE_WORK_DIR}/${IMG_FILENAME}${IMG_SUFFIX}.img"
INFO_FILE="${STAGE_WORK_DIR}/${IMG_FILENAME}${IMG_SUFFIX}.info"

on_chroot << EOF
/etc/init.d/fake-hwclock stop
hardlink -t /usr/share/doc
if [ -x /etc/init.d/fake-hwclock ]; then
/etc/init.d/fake-hwclock stop
fi
if hash hardlink 2>/dev/null; then
hardlink -t /usr/share/doc
fi
EOF

if [ -d "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/.config" ]; then
Expand Down

0 comments on commit 879ca6b

Please # to comment.