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>2022-04-26 15:13:29 +0200
committerAnton Hvornum <anton@hvornum.se>2022-04-26 15:13:29 +0200
commiteafbf49cdc5eb80dfa977b8f77f1460019d5db80 (patch)
tree4ff3ab917ec29d732c29b5d569c94719b41c2fd0
parent010f6eaf9711d7c77c64d98d53c95247d84fcfaa (diff)
Adding back 'timedatectl set-ntp true' but with the condition of it being activated. This is because the default NTP value is set to True. And will subsequently never be triggered through the menu system. So we'll have to activate it (again) if set to True before installer starts.
-rw-r--r--examples/guided.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 2009b315..15226668 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -151,10 +151,13 @@ def perform_installation(mountpoint):
while archinstall.service_state('reflector') not in ('dead', 'failed'):
time.sleep(1)
- # If we've activated NTP, make sure at least one time-sync finishes
- # before we continue with the installation
+ # If we've activated NTP, make sure it's active in the ISO too and
+ # make sure at least one time-sync finishes before we continue with the installation
if archinstall.arguments.get('ntp', False):
- # TODO: First block might be redundant, but this service is not activated unless
+ # Activate NTP in the ISO
+ archinstall.SysCommand('timedatectl set-ntp true')
+
+ # TODO: This block might be redundant, but this service is not activated unless
# `timedatectl set-ntp true` is executed.
logged = False
while archinstall.service_state('dbus-org.freedesktop.timesync1.service') not in ('running'):