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>2021-12-31 10:28:20 +0100
committerAnton Hvornum <anton@hvornum.se>2022-01-02 14:11:00 +0100
commitb1af3eda83a5a4bc48ce7dd3f7c5698d22f4b2c4 (patch)
tree1e790d0f6ba49d93d67c61626a90a5c51da735cc
parentb89408ab7ba89fe03b62c9ae7f3d32ce74ebc035 (diff)
Fixed issue #799. Where user prompt wouldn't be shown if a root password was set.
-rw-r--r--examples/guided.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 6db06c7e..05794d65 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -123,6 +123,8 @@ def ask_user_questions():
# Ask for additional users (super-user if root pw was not set)
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'):
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}