diff --git a/chroot.steps.part.1.sh b/chroot.steps.part.1.sh index ede91be5..6a98e300 100755 --- a/chroot.steps.part.1.sh +++ b/chroot.steps.part.1.sh @@ -262,11 +262,3 @@ rm /usr/share/icons/*/icon-theme.cache rm -rf /usr/share/doc rm -rf /usr/share/man rm -rf /etc/network/if-up.d/ntpdate - -# Disable systemd's built-in NTP time synchronization service by manually masking it (`systemctl mask`) -# using a symlink. This timesyncd service always modifies the hardware clock, and there -# does not appear to be a way to prevent this service from modifying the hardware clock. -# See [1] for more discussion. -# [1] https://github.com/rescuezilla/rescuezilla/issues/107 -rm /etc/systemd/system/systemd-timesyncd.service -ln -s /dev/null /etc/systemd/system/systemd-timesyncd.service diff --git a/chroot.steps.part.2.sh b/chroot.steps.part.2.sh index 8825ccc3..593fcf84 100755 --- a/chroot.steps.part.2.sh +++ b/chroot.steps.part.2.sh @@ -56,6 +56,14 @@ mv /var/lib/apt/lists /var.lib.apt.lists # and /var/cache/apt/archives/partial/." apt-get clean +# Disable systemd's built-in NTP time synchronization service by manually masking it (`systemctl mask`) +# using a symlink. This timesyncd service always modifies the hardware clock, and there +# does not appear to be a way to prevent this service from modifying the hardware clock. +# See [1] for more discussion. +# [1] https://github.com/rescuezilla/rescuezilla/issues/107 +rm /etc/systemd/system/systemd-timesyncd.service +ln -s /dev/null /etc/systemd/system/systemd-timesyncd.service + rm -rf /tmp/* rm /etc/resolv.conf rm -rf /var/lib/apt/lists/????????*