index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Werner Llácer <wllacer@gmail.com> | 2022-03-28 13:44:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-28 13:44:10 +0200 |
commit | e85c9b65315498ab4701ea31c079d198eba8d9ac (patch) | |
tree | e19c6066c3ba0d27f724f783431165199b98c991 /examples/swiss.py | |
parent | 69bd88a7f9f537b8015915110ee9e4333be31fc1 (diff) |
-rw-r--r-- | examples/swiss.py | 10 |
diff --git a/examples/swiss.py b/examples/swiss.py index cf864ed5..6f524103 100644 --- a/examples/swiss.py +++ b/examples/swiss.py @@ -415,11 +415,13 @@ def os_setup(installation): if archinstall.arguments.get('profile', None): installation.install_profile(archinstall.arguments.get('profile', None)) - for user, user_info in archinstall.arguments.get('!users', {}).items(): - installation.user_create(user, user_info["!password"], sudo=False) + if archinstall.arguments.get('!users',{}): + for user, user_info in archinstall.arguments.get('!users', {}).items(): + installation.user_create(user, user_info["!password"], sudo=False) - for superuser, user_info in archinstall.arguments.get('!superusers', {}).items(): - installation.user_create(superuser, user_info["!password"], sudo=True) + if archinstall.arguments.get('!superusers',{}): + for superuser, user_info in archinstall.arguments.get('!superusers', {}).items(): + installation.user_create(superuser, user_info["!password"], sudo=True) if timezone := archinstall.arguments.get('timezone', None): installation.set_timezone(timezone) |