From 7e85002dcbc913c117c9a341026283cce2dc0787 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Tue, 2 Nov 2021 09:29:28 +0000 Subject: Made sure there's a default config that's 'sane' --- archinstall/lib/installer.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'archinstall') diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index c2c94206..6e2b7ffe 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -249,6 +249,12 @@ class Installer: def activate_ntp(self): self.log('Installing and activating NTP.', level=logging.INFO) self.enable_service('systemd-timesyncd'): + + with open(f"{self.target}/etc/systemd/timesyncd.conf", "w") as fh: + fh.write("[Time]\n") + fh.write("NTP=0.arch.pool.ntp.org 1.arch.pool.ntp.org 2.arch.pool.ntp.org 3.arch.pool.ntp.org\n") + fh.write("FallbackNTP=0.pool.ntp.org 1.pool.ntp.org 0.fr.pool.ntp.org\n") + with Boot(self) as session: session.SysCommand(["timedatectl", "set-ntp", 'true']) -- cgit v1.2.3-70-g09d2