Changed from ntpd service to systemd-timesyncd.
This commit is contained in:
parent
e70cfa65bb
commit
0d80eba219
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue