summaryrefslogtreecommitdiff
path: root/export-image
diff options
context:
space:
mode:
authorRuss Kubes <rkubes@users.noreply.github.com>2019-08-27 12:16:24 -0500
committerXECDesign <XECDesign@users.noreply.github.com>2019-08-27 18:16:24 +0100
commit00c22ab57e4de6a17fd3e9d142426838ec17d36b (patch)
tree5bf48244748d96a410e00c27a766da2aa0accd55 /export-image
parente8460beb3b2698b7f4c3bb04e03237ee7f8944e0 (diff)
Updated export-image to not depend on fake-hwclock and hardlink. (#326)
Diffstat (limited to 'export-image')
-rwxr-xr-xexport-image/04-finalise/01-run.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/export-image/04-finalise/01-run.sh b/export-image/04-finalise/01-run.sh
index 9215dec..0864639 100755
--- a/export-image/04-finalise/01-run.sh
+++ b/export-image/04-finalise/01-run.sh
@@ -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