Fix inspired by #804 to tweak the fix in v2.3.1-dev

This commit is contained in:
Anton Hvornum 2022-01-02 14:14:00 +01:00
parent b1af3eda83
commit 93aa4aa6cc
No known key found for this signature in database
GPG Key ID: F1234C5BA67C59DF
1 changed files with 2 additions and 2 deletions

View File

@ -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):