Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-11-05 17:03:07 +0100
committerAnton Hvornum <anton@hvornum.se>2021-11-05 17:03:07 +0100
commit93efce92a96fa7aeff813ca1e3b3b398edf50bb6 (patch)
treec28a16986a9a053df54b372380e438bd411e3e57
parent2f677e2e8672a242822ac7a9dc2970011317f223 (diff)
Renamed the ntp function, as it doesn't install/enable ntp any longer. Even tho it uses the NTP protocol.
-rw-r--r--archinstall/lib/installer.py6
-rw-r--r--examples/guided.py2
2 files changed, 6 insertions, 2 deletions
diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py
index 8f32dd33..1585d535 100644
--- a/archinstall/lib/installer.py
+++ b/archinstall/lib/installer.py
@@ -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:
diff --git a/examples/guided.py b/examples/guided.py
index 45395add..19fff406 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -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)