Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples/guided.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-05-22 21:04:50 +0200
committerGitHub <noreply@github.com>2021-05-22 21:04:50 +0200
commit86b415e25c8b2616f0850964f504e1ae1c6e0edb (patch)
tree42a6d38d24edbbbe2c0398aa7930e1327c497935 /examples/guided.py
parent78369269a0661e9aa13d26c3b688c10933765b30 (diff)
parent9ce4370fc72463685e25cabfd3340c92dad276a7 (diff)
Merge pull request #507 from archlinux/torxed-fix-382
Re-worked the select_profile() user interaction.
Diffstat (limited to 'examples/guided.py')
-rw-r--r--examples/guided.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 122f0804..cbf30eb3 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -54,13 +54,13 @@ def ask_user_questions():
if not archinstall.arguments.get('sys-language', None) and archinstall.arguments.get('advanced', False):
archinstall.arguments['sys-language'] = input("Enter a valid locale (language) for your OS, (Default: en_US): ").strip()
archinstall.arguments['sys-encoding'] = input("Enter a valid system default encoding for your OS, (Default: utf-8): ").strip()
+ archinstall.log("Keep in mind that if you want multiple locales, post configuration is required.", fg="yellow")
- if not archinstall.arguments['sys-language']:
- archinstall.arguments['sys-language'] = 'en_US'
- if not archinstall.arguments['sys-encoding']:
- archinstall.arguments['sys-encoding'] = 'utf-8'
+ if not archinstall.arguments.get('sys-language', None):
+ archinstall.arguments['sys-language'] = 'en_US'
+ if not archinstall.arguments.get('sys-encoding', None):
+ archinstall.arguments['sys-encoding'] = 'utf-8'
- archinstall.log("Keep in mind that if you want multiple locales, post configuration is required.", fg="yellow")
# Ask which harddrive/block-device we will install to
if archinstall.arguments.get('harddrive', None):
@@ -193,7 +193,7 @@ def ask_user_questions():
# Ask for archinstall-specific profiles (such as desktop environments etc)
if not archinstall.arguments.get('profile', None):
- archinstall.arguments['profile'] = archinstall.select_profile(archinstall.list_profiles(filter_top_level_profiles=True))
+ archinstall.arguments['profile'] = archinstall.select_profile()
else:
archinstall.arguments['profile'] = Profile(installer=None, path=archinstall.arguments['profile'])