Removed pacstrap of ntpd as it's redundant. Also enabled the systemd-timesyncd service before running a command against it.

This commit is contained in:
Anton Hvornum 2021-11-02 09:23:02 +00:00
parent 0d80eba219
commit d7449cc887
1 changed files with 3 additions and 3 deletions

View File

@ -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: