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):
|
def activate_ntp(self):
|
||||||
self.log('Installing and activating NTP.', level=logging.INFO)
|
self.log('Installing and activating NTP.', level=logging.INFO)
|
||||||
if self.pacstrap('ntp'):
|
if self.pacstrap('ntp'):
|
||||||
if self.enable_service('ntpd'):
|
with Boot(self) as session:
|
||||||
return True
|
session.SysCommand(["timedatectl", "set-ntp", 'true'])
|
||||||
|
|
||||||
def enable_service(self, *services):
|
def enable_service(self, *services):
|
||||||
for service in services:
|
for service in services:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue