index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds@gmail.com> | 2021-11-02 09:29:28 +0000 |
---|---|---|
committer | Anton Hvornum <anton.feeds@gmail.com> | 2021-11-02 09:29:28 +0000 |
commit | 7e85002dcbc913c117c9a341026283cce2dc0787 (patch) | |
tree | 3f733c8f38dabdbe35cd786840643ba2fea0b816 | |
parent | d7449cc887a783febc07257e13dfda7c763a5afe (diff) |
-rw-r--r-- | archinstall/lib/installer.py | 6 |
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']) |