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 PeterJohnson committed Dec 7, 2019
1 parent 5a0242a commit 2631c09
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 @@ -8,8 +8,12 @@ mkdir -p "${EXAMPLE_DIR}"
cp -p "${ROOTFS_DIR}"/home/${FIRST_USER_NAME}/zips/* "${EXAMPLE_DIR}/"

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 2631c09

Please sign in to comment.