From decf9119f27cba6a5aa3ae33b7c3e73d2f869af9 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sun, 8 Nov 2020 23:22:26 +0000 Subject: 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). --- examples/guided.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples') 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 -- cgit v1.2.3-54-g00ecf