Changed from ntpd service to systemd-timesyncd.

This commit is contained in:
Anton Hvornum 2021-11-02 09:21:24 +00:00
parent e70cfa65bb
commit 0d80eba219
1 changed files with 2 additions and 2 deletions

View File

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