Updated export-image to not depend on fake-hwclock and hardlink. (#326)

This commit is contained in:
Russ Kubes 2019-08-27 12:16:24 -05:00 committed by XECDesign
parent e8460beb3b
commit 00c22ab57e

View file

@ -4,8 +4,12 @@ IMG_FILE="${STAGE_WORK_DIR}/${IMG_FILENAME}${IMG_SUFFIX}.img"
INFO_FILE="${STAGE_WORK_DIR}/${IMG_FILENAME}${IMG_SUFFIX}.info" INFO_FILE="${STAGE_WORK_DIR}/${IMG_FILENAME}${IMG_SUFFIX}.info"
on_chroot << EOF on_chroot << EOF
/etc/init.d/fake-hwclock stop if [ -x /etc/init.d/fake-hwclock ]; then
hardlink -t /usr/share/doc /etc/init.d/fake-hwclock stop
fi
if hash hardlink 2>/dev/null; then
hardlink -t /usr/share/doc
fi
EOF EOF
if [ -d "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/.config" ]; then if [ -d "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/.config" ]; then