Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-11-02 09:23:02 +0000
committerAnton Hvornum <anton.feeds@gmail.com>2021-11-02 09:23:02 +0000
commitd7449cc887a783febc07257e13dfda7c763a5afe (patch)
tree72b423987625e8eee9208bf102ef2b6bdce83c08
parent0d80eba2193cd65b93817bc6ebf0a9849268056c (diff)
Removed pacstrap of ntpd as it's redundant. Also enabled the systemd-timesyncd service before running a command against it.
-rw-r--r--archinstall/lib/installer.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index d1e36d98..c2c94206 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -248,9 +248,9 @@ class Installer:
def activate_ntp(self):
self.log('Installing and activating NTP.', level=logging.INFO)
- if self.pacstrap('ntp'):
- with Boot(self) as session:
- session.SysCommand(["timedatectl", "set-ntp", 'true'])
+ self.enable_service('systemd-timesyncd'):
+ with Boot(self) as session:
+ session.SysCommand(["timedatectl", "set-ntp", 'true'])
def enable_service(self, *services):
for service in services: