summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerge Schneider <serge@raspberrypi.com>2025-06-06 14:53:26 +0100
committerSerge Schneider <serge@raspberrypi.com>2025-08-19 15:23:07 +0100
commit6811c1dc41b0eb71eefb9cf2beebbd18b9d1d06e (patch)
tree5b1bf8098e97f4388a668510c364417af04406fe
parent23e7af35a13f07e246145b94ce0884eb75d654c9 (diff)
Remove fake-hwclock
-rwxr-xr-xexport-image/05-finalise/01-run.sh5
-rw-r--r--stage2/01-sys-tweaks/00-packages2
2 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 79a01e2..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
diff --git a/stage2/01-sys-tweaks/00-packages b/stage2/01-sys-tweaks/00-packages
index d5d2856..b8c40a0 100644
--- a/stage2/01-sys-tweaks/00-packages
+++ b/stage2/01-sys-tweaks/00-packages
@@ -12,7 +12,7 @@ avahi-daemon
lua5.1
luajit
ca-certificates curl
-fake-hwclock nfs-common usbutils
+nfs-common usbutils
dosfstools
dphys-swapfile
raspberrypi-sys-mods