index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Daniel Girtler <blackrabbit256@gmail.com> | 2022-05-05 20:48:01 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-05 12:48:01 +0200 |
commit | bcd810d2d20e657d96f36e0007facff71e9532bc (patch) | |
tree | b3b50f73b6b159bab19d5caaa279f0e3d637568c /archinstall/lib/user_interaction/manage_users_conf.py | |
parent | 2d371571783cde70554e3e4e272beab2546ffff9 (diff) |
-rw-r--r-- | archinstall/lib/user_interaction/manage_users_conf.py | 8 |
diff --git a/archinstall/lib/user_interaction/manage_users_conf.py b/archinstall/lib/user_interaction/manage_users_conf.py index d69ccce9..ea909f35 100644 --- a/archinstall/lib/user_interaction/manage_users_conf.py +++ b/archinstall/lib/user_interaction/manage_users_conf.py @@ -109,11 +109,11 @@ class UserList(ListManager): sudoer = False else: sudoer = False - sudo_choice = Menu(str(_('Should {} be a superuser (sudoer)?')).format(userid), ['yes', 'no'], + sudo_choice = Menu(str(_('Should {} be a superuser (sudoer)?')).format(userid), Menu.yes_no(), skip=False, - preset_values='yes' if sudoer else 'no', - default_option='no').run() - sudoer = True if sudo_choice == 'yes' else False + preset_values=Menu.yes() if sudoer else Menu.no(), + default_option=Menu.no()).run() + sudoer = True if sudo_choice == Menu.yes() else False password = get_password(prompt=str(_('Password for user "{}": ').format(userid))) |