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>2022-01-02 14:14:00 +0100
committerAnton Hvornum <anton@hvornum.se>2022-01-02 14:14:00 +0100
commit93aa4aa6cc88462cf2cf4797644086e6879724bf (patch)
tree9845ccd76c6579d660e8120f0f408c7da99794d6 /examples
parentb1af3eda83a5a4bc48ce7dd3f7c5698d22f4b2c4 (diff)
Fix inspired by #804 to tweak the fix in v2.3.1-dev
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 05794d65..d36b4cbc 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -124,10 +124,10 @@ def ask_user_questions():
if not archinstall.arguments.get('!root-password', None) and not archinstall.arguments.get('!superusers', None):
archinstall.arguments['!superusers'] = archinstall.ask_for_superuser_account('Create a required super-user with sudo privileges: ', forced=True)
- if not archinstall.arguments.get('!users') and not archinstall.arguments.get('!superusers'):
+ if not archinstall.arguments.get('!users'):
users, superusers = archinstall.ask_for_additional_users('Enter a username to create an additional user (leave blank to skip & continue): ')
archinstall.arguments['!users'] = users
- archinstall.arguments['!superusers'] = {**archinstall.arguments['!superusers'], **superusers}
+ archinstall.arguments['!superusers'] = {**archinstall.arguments.get('!superusers', {}), **superusers}
# Ask for archinstall-specific profiles (such as desktop environments etc)
if not archinstall.arguments.get('profile', None):