Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-11-02 09:29:28 +0000
committerAnton Hvornum <anton.feeds@gmail.com>2021-11-02 09:29:28 +0000
commit7e85002dcbc913c117c9a341026283cce2dc0787 (patch)
tree3f733c8f38dabdbe35cd786840643ba2fea0b816 /archinstall/lib
parentd7449cc887a783febc07257e13dfda7c763a5afe (diff)
Made sure there's a default config that's 'sane'
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/installer.py6
1 files changed, 6 insertions, 0 deletions
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'])