Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-03-20 17:26:48 +0100
committerAnton Hvornum <anton@hvornum.se>2021-03-20 17:26:48 +0100
commitb67257233f43fa8d34dacd6ecc3dc7cbbf60d221 (patch)
tree99671297c0f9a3d74167f2e78d7806a07bdfc089 /examples
parent64653565a49a12a712170d7c9b86055373c25ff8 (diff)
Fixed #64. installation.set_timezone() already excisted since earlier versions of archinstall in the library section. The guided.py example simply never asked for a time-zone. There's still no NTP option, which I'll add in later. Mostly because there's a lot of settings one can do to a time-client configuration, and I'm not sure all users want the default time servers etc.
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 655fc29f..e9edac09 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -190,6 +190,9 @@ def ask_user_questions():
if not archinstall.arguments['nic']:
archinstall.log(f"No network configuration was selected. Network is going to be unavailable until configured manually!", fg="yellow")
+ if not archinstall.arguments.get('timezone', None):
+ archinstall.arguments['timezone'] = archinstall.ask_for_a_timezone()
+
def perform_installation_steps():
global SIG_TRIGGER
@@ -323,6 +326,9 @@ def perform_installation(device, boot_partition, language, mirrors):
for superuser, user_info in archinstall.arguments.get('superusers', {}).items():
installation.user_create(superuser, user_info["!password"], sudo=True)
+ if (timezone := archinstall.arguments.get('timezone', None)):
+ installation.set_timezone(timezone)
+
if (root_pw := archinstall.arguments.get('!root-password', None)) and len(root_pw):
installation.user_set_pw('root', root_pw)