summaryrefslogtreecommitdiff
path: root/export-image
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.com>2025-08-19 16:51:19 +0100
committerSerge Schneider <serge@raspberrypi.com>2025-08-19 16:51:19 +0100
commit5fe4c02bcf884fbb8fa994c7ec17a37658fb5a9b (patch)
treee11972bb70c4c4bbe3a5fcb0f293865979635a01 /export-image
parent816f458a9931e216ecf8969e13b4d0ca39947d1f (diff)
parentd4cd8f9a57bc6afda5077a3f4b1778f81edd5e02 (diff)
Merge branch 'master' into arm64
Diffstat (limited to 'export-image')
-rwxr-xr-xexport-image/05-finalise/01-run.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/export-image/05-finalise/01-run.sh b/export-image/05-finalise/01-run.sh
index 860b97f..251b4df 100755
--- a/export-image/05-finalise/01-run.sh
+++ b/export-image/05-finalise/01-run.sh
@@ -7,12 +7,11 @@ BMAP_FILE="${STAGE_WORK_DIR}/${IMG_FILENAME}${IMG_SUFFIX}.bmap"
on_chroot << EOF
update-initramfs -k all -c
-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
+install -m 755 -o systemd-timesync -g systemd-timesync -d /var/lib/systemd/timesync/clock
+install -m 644 -o systemd-timesync -g systemd-timesync /dev/null /var/lib/systemd/timesync/clock
EOF
if [ -f "${ROOTFS_DIR}/etc/initramfs-tools/update-initramfs.conf" ]; then
@@ -51,7 +50,7 @@ rm -f "${ROOTFS_DIR}"/usr/share/icons/*/icon-theme.cache
rm -f "${ROOTFS_DIR}/var/lib/dbus/machine-id"
-true > "${ROOTFS_DIR}/etc/machine-id"
+echo "uninitialized" > "${ROOTFS_DIR}/etc/machine-id"
ln -nsf /proc/mounts "${ROOTFS_DIR}/etc/mtab"