Renamed the ntp function, as it doesn't install/enable ntp any longer. Even tho it uses the NTP protocol.
This commit is contained in:
parent
2f677e2e86
commit
93efce92a9
|
|
@ -256,7 +256,11 @@ class Installer:
|
||||||
)
|
)
|
||||||
|
|
||||||
def activate_ntp(self):
|
def activate_ntp(self):
|
||||||
self.log('Installing and activating NTP.', level=logging.INFO)
|
log(f"activate_ntp() is deprecated, use activate_time_syncronization()", fg="yellow", level=logging.INFO)
|
||||||
|
self.activate_time_syncronization()
|
||||||
|
|
||||||
|
def activate_time_syncronization(self):
|
||||||
|
self.log('Installing and activating time synchronization.', level=logging.INFO)
|
||||||
self.enable_service('systemd-timesyncd')
|
self.enable_service('systemd-timesyncd')
|
||||||
|
|
||||||
with open(f"{self.target}/etc/systemd/timesyncd.conf", "w") as fh:
|
with open(f"{self.target}/etc/systemd/timesyncd.conf", "w") as fh:
|
||||||
|
|
|
||||||
|
|
@ -310,7 +310,7 @@ def perform_installation(mountpoint):
|
||||||
installation.set_timezone(timezone)
|
installation.set_timezone(timezone)
|
||||||
|
|
||||||
if archinstall.arguments.get('ntp', False):
|
if archinstall.arguments.get('ntp', False):
|
||||||
installation.activate_ntp()
|
installation.activate_time_syncronization()
|
||||||
|
|
||||||
if (root_pw := archinstall.arguments.get('!root-password', None)) and len(root_pw):
|
if (root_pw := archinstall.arguments.get('!root-password', None)) and len(root_pw):
|
||||||
installation.user_set_pw('root', root_pw)
|
installation.user_set_pw('root', root_pw)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue