From 3b3ddfdbad2c0945cc5521fa2db8bab672a3bde7 Mon Sep 17 00:00:00 2001 From: firecyberice <10451478+firecyberice@users.noreply.github.com> Date: Sat, 4 Jan 2020 12:44:35 +0100 Subject: [PATCH] enable setting time with hypriot/flash create symlink for fake-hwclock modify boot order (start fake-hwclock.service After=boot.mount) --- builder/chroot-script.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/builder/chroot-script.sh b/builder/chroot-script.sh index 945b91d..3d48d02 100644 --- a/builder/chroot-script.sh +++ b/builder/chroot-script.sh @@ -204,6 +204,17 @@ mkdir -p /var/lib/cloud/seed/nocloud-net ln -s /boot/user-data /var/lib/cloud/seed/nocloud-net/user-data ln -s /boot/meta-data /var/lib/cloud/seed/nocloud-net/meta-data +mv /etc/fake-hwclock.data /boot/fake-hwclock.data +ln -s /boot/fake-hwclock.data /etc/fake-hwclock.data +mkdir -p /etc/systemd/system/fake-hwclock.service.d +cat <