Fix 1792 (#1795)
Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
This commit is contained in:
parent
525c94bf36
commit
c0a7d45a83
|
|
@ -27,7 +27,7 @@ class PipewireProfile(Profile):
|
||||||
]
|
]
|
||||||
|
|
||||||
def _enable_pipewire_for_all(self, install_session: 'Installer'):
|
def _enable_pipewire_for_all(self, install_session: 'Installer'):
|
||||||
users: Union[User, List[User]] = archinstall.arguments.get('!users', None)
|
users: Union[User, List[User]] = archinstall.arguments.get('!users', [])
|
||||||
if not isinstance(users, list):
|
if not isinstance(users, list):
|
||||||
users = [users]
|
users = [users]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ class DockerProfile(Profile):
|
||||||
return ['docker']
|
return ['docker']
|
||||||
|
|
||||||
def post_install(self, install_session: 'Installer'):
|
def post_install(self, install_session: 'Installer'):
|
||||||
users: Union[User, List[User]] = archinstall.arguments.get('!users', None)
|
users: Union[User, List[User]] = archinstall.arguments.get('!users', [])
|
||||||
if not isinstance(users, list):
|
if not isinstance(users, list):
|
||||||
users = [users]
|
users = [users]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ class ConfigurationOutput:
|
||||||
self._user_config_file = 'user_configuration.json'
|
self._user_config_file = 'user_configuration.json'
|
||||||
self._user_creds_file = "user_credentials.json"
|
self._user_creds_file = "user_credentials.json"
|
||||||
|
|
||||||
self._sensitive = ['!users']
|
self._sensitive = ['!users', '!root-password']
|
||||||
self._ignore = ['abort', 'install', 'config', 'creds', 'dry_run']
|
self._ignore = ['abort', 'install', 'config', 'creds', 'dry_run']
|
||||||
|
|
||||||
self._process_config()
|
self._process_config()
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,7 @@ class GlobalMenu(AbstractMenu):
|
||||||
Selector(
|
Selector(
|
||||||
_('User account'),
|
_('User account'),
|
||||||
lambda x: self._create_user_account(x),
|
lambda x: self._create_user_account(x),
|
||||||
default={},
|
default=[],
|
||||||
display_func=lambda x: f'{len(x)} {_("User(s)")}' if len(x) > 0 else None,
|
display_func=lambda x: f'{len(x)} {_("User(s)")}' if len(x) > 0 else None,
|
||||||
preview_func=self._prev_users)
|
preview_func=self._prev_users)
|
||||||
self._menu_options['profile_config'] = \
|
self._menu_options['profile_config'] = \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue