From 2631c09837c7b66f40702d746d40309b1b075a58 Mon Sep 17 00:00:00 2001 From: Russ Kubes Date: Tue, 27 Aug 2019 12:16:24 -0500 Subject: [PATCH] Updated export-image to not depend on fake-hwclock and hardlink. (#326) --- export-image/04-finalise/01-run.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/export-image/04-finalise/01-run.sh b/export-image/04-finalise/01-run.sh index 1b5a1f247b..d61ea5a023 100755 --- a/export-image/04-finalise/01-run.sh +++ b/export-image/04-finalise/01-run.sh @@ -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