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:
Anton Hvornum 2021-11-05 17:03:07 +01:00
parent 2f677e2e86
commit 93efce92a9
No known key found for this signature in database
GPG Key ID: F1234C5BA67C59DF
2 changed files with 6 additions and 2 deletions

View File

@ -256,7 +256,11 @@ class Installer:
)
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')
with open(f"{self.target}/etc/systemd/timesyncd.conf", "w") as fh:

View File

@ -310,7 +310,7 @@ def perform_installation(mountpoint):
installation.set_timezone(timezone)
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):
installation.user_set_pw('root', root_pw)