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.feeds+github@gmail.com>2020-11-08 23:22:26 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-11-08 23:22:26 +0000
commitdecf9119f27cba6a5aa3ae33b7c3e73d2f869af9 (patch)
treeb7707ca11e1668dd24bbb37cf626fbb5e7c91382 /examples
parent18c811ac967110d9371cc5dcdcd44382b25b0494 (diff)
Fixing a variable missmatch in #61. The global configuration snapshot (that is used for debug printing) does not contain the password for the new user (for safety reasons). So we can no longer get the password from that snapshot, but instead we have to get it from the global variable users (:dict).
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/guided.py b/examples/guided.py
index d9dd0ac6..b57d5e34 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -55,7 +55,9 @@ def perform_installation(device, boot_partition, language, mirrors):
if 'profile' in archinstall.storage['_guided'] and len(profile := archinstall.storage['_guided']['profile']['path'].strip()):
installation.install_profile(profile)
- for user, password in archinstall.storage['_guided']['users'].items():
+ for user in archinstall.storage['_guided']['users']:
+ password = users[user]
+
sudo = False
if len(archinstall.storage['_guided_hidden']['root_pw'].strip()) == 0:
sudo = True