index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2021-03-20 17:26:48 +0100 |
---|---|---|
committer | Anton Hvornum <anton@hvornum.se> | 2021-03-20 17:26:48 +0100 |
commit | b67257233f43fa8d34dacd6ecc3dc7cbbf60d221 (patch) | |
tree | 99671297c0f9a3d74167f2e78d7806a07bdfc089 /archinstall/lib/user_interaction.py | |
parent | 64653565a49a12a712170d7c9b86055373c25ff8 (diff) |
-rw-r--r-- | archinstall/lib/user_interaction.py | 7 |
diff --git a/archinstall/lib/user_interaction.py b/archinstall/lib/user_interaction.py index ab2b19bc..6b3e5faa 100644 --- a/archinstall/lib/user_interaction.py +++ b/archinstall/lib/user_interaction.py @@ -1,4 +1,4 @@ -import getpass +import getpass, pathlib from .exceptions import * from .profiles import Profile from .locale_helpers import search_keyboard_layout @@ -50,6 +50,11 @@ def ask_for_additional_users(prompt='Any additional users to install (leave blan return users, super_users +def ask_for_a_timezone(): + timezone = input('Enter a valid timezone (Example: Europe/Stockholm): ').strip() + if pathlib.Path(timezone).exists(): + return timezone + def ask_to_configure_network(): # Optionally configure one network interface. #while 1: |