Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/installer.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-11-02 09:21:24 +0000
committerAnton Hvornum <anton.feeds@gmail.com>2021-11-02 09:21:24 +0000
commit0d80eba2193cd65b93817bc6ebf0a9849268056c (patch)
tree4d52ac5a80ddc56e00d1c87bc9c5cb34ce5cd5eb /archinstall/lib/installer.py
parente70cfa65bb73cc81ea1c500c58c463180ad6e442 (diff)
Changed from ntpd service to systemd-timesyncd.
Diffstat (limited to 'archinstall/lib/installer.py')
-rw-r--r--archinstall/lib/installer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index 0bdddb2e..d1e36d98 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -249,8 +249,8 @@ class Installer:
def activate_ntp(self):
self.log('Installing and activating NTP.', level=logging.INFO)
if self.pacstrap('ntp'):
- if self.enable_service('ntpd'):
- return True
+ with Boot(self) as session:
+ session.SysCommand(["timedatectl", "set-ntp", 'true'])
def enable_service(self, *services):
for service in services: