index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Werner Llácer <wllacer@gmail.com> | 2022-02-28 23:11:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-28 23:11:25 +0100 |
commit | 86d991f4422d920ca714f459be3be4352d1c40a1 (patch) | |
tree | 256ec13a6e92c8e1fbf0aeee718ca3e0ef8533b0 /archinstall/lib/menu | |
parent | 76a6c378936afd9e68f9a39246480d7f8d2b75be (diff) |
-rw-r--r-- | archinstall/lib/menu/selection_menu.py | 11 |
diff --git a/archinstall/lib/menu/selection_menu.py b/archinstall/lib/menu/selection_menu.py index 99015fad..8ac7dc99 100644 --- a/archinstall/lib/menu/selection_menu.py +++ b/archinstall/lib/menu/selection_menu.py @@ -497,6 +497,7 @@ class GlobalMenu(GeneralMenu): Selector( _('Specify superuser account'), lambda preset: self._create_superuser_account(), + exec_func=lambda n,v:self._users_resynch(), dependencies_not=['!root-password'], display_func=lambda x: self._display_superusers()) self._menu_options['!users'] = \ @@ -504,6 +505,7 @@ class GlobalMenu(GeneralMenu): _('Specify user account'), lambda x: self._create_user_account(), default={}, + exec_func=lambda n,v:self._users_resynch(), display_func=lambda x: list(x.keys()) if x else '[]') self._menu_options['profile'] = \ Selector( @@ -668,11 +670,11 @@ class GlobalMenu(GeneralMenu): return profile def _create_superuser_account(self): - superusers = ask_for_superuser_account(str(_('Enter a username to create an additional superuser (leave blank to skip): '))) + superusers = ask_for_superuser_account(str(_('Manage superuser accounts: '))) return superusers if superusers else None def _create_user_account(self): - users = ask_for_additional_users(str(_('Enter a username to create an additional user (leave blank to skip): '))) + users = ask_for_additional_users(str(_('Manage ordinary user accounts: '))) return users def _display_superusers(self): @@ -682,3 +684,8 @@ class GlobalMenu(GeneralMenu): return list(superusers.keys()) if superusers else '[]' else: return list(superusers.keys()) if superusers else '' + + def _users_resynch(self): + self.synch('!superusers') + self.synch('!users') + return False
\ No newline at end of file |