index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton.feeds@gmail.com> | 2021-03-09 16:13:21 +0100 |
---|---|---|
committer | Anton Hvornum <anton.feeds@gmail.com> | 2021-03-09 16:13:21 +0100 |
commit | 2bd220c28016ca46b5e44235c08f384ea1e8f44f (patch) | |
tree | ab49fb523fe97ef43f28593ff5b7bce8e62e7884 | |
parent | aafe3d19c67eb32ab8559021cc1ab984ca48b5ee (diff) |
-rw-r--r-- | examples/guided.py | 20 |
diff --git a/examples/guided.py b/examples/guided.py index 28d07d0f..9d242842 100644 --- a/examples/guided.py +++ b/examples/guided.py @@ -60,15 +60,21 @@ def perform_installation(device, boot_partition, language, mirrors): installation.install_profile(profile) if archinstall.arguments.get('users', None): - for user, password in archinstall.arguments.get('users').items(): + for user in archinstall.arguments.get('users'): + password = users[user] installation.user_create(user, password, sudo=False) - if archinstall.arguments.get('superusers', None): - for user, password in archinstall.arguments.get('superusers').items(): - installation.user_create(user, password, sudo=True) + for user in archinstall.arguments.get('users'): + password = users[user] + installation.user_create(user, password, sudo=Tru) + + # sudo = False + # if 'root_pw' not in archinstall.storage['_guided_hidden'] or len(archinstall.storage['_guided_hidden']['root_pw'].strip()) == 0: + # sudo = True + - if (root_pw := archinstall.arguments.get('!root-password', None)) and len(root_pw): - installation.user_set_pw('root', root_pw) + if 'root_pw' in archinstall.storage['_guided_hidden'] and archinstall.storage['_guided_hidden']['root_pw']: + installation.user_set_pw('root', archinstall.storage['_guided_hidden']['root_pw']) def ask_user_questions(): """ @@ -322,4 +328,4 @@ def perform_installation_steps(): mirrors=archinstall.arguments['mirror-region']) ask_user_questions() -perform_pre_installation_steps()
\ No newline at end of file +perform_installation_steps()
\ No newline at end of file |