index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
-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 |