Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-03-14 14:00:52 +0100
committerAnton Hvornum <anton@hvornum.se>2021-03-14 14:00:52 +0100
commit37b1e618280c8b428824f202902e392792e10c18 (patch)
treeccd38adf410e46efa44176de37300f180a33e72c /examples
parentc897421e1d5450450e0ef54118ad40c1d883b7c3 (diff)
Corrected some spelling errors and wrong variables.
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py14
1 files changed, 5 insertions, 9 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 74d413aa..4e6aaf34 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -308,15 +308,11 @@ def perform_installation(device, boot_partition, language, mirrors):
if archinstall.arguments.get('profile', None):
installation.install_profile(archinstall.arguments.get('profile', None))
- if archinstall.arguments.get('users', None):
- for user in archinstall.arguments.get('users'):
- password = users[user]
- installation.user_create(user, password, sudo=False)
- if archinstall.arguments.get('superusers', None):
- for user in archinstall.arguments.get('users'):
- password = users[user]
- installation.user_create(user, password, sudo=Tru)
-
+ 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 (root_pw := archinstall.arguments.get('!root-password', None)) and len(root_pw):
installation.user_set_pw('root', root_pw)