Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples/guided.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/guided.py')
-rw-r--r--examples/guided.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/guided.py b/examples/guided.py
index b57d5e34..c0fcd97b 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -57,14 +57,14 @@ def perform_installation(device, boot_partition, language, mirrors):
for user in archinstall.storage['_guided']['users']:
password = users[user]
-
+
sudo = False
- if len(archinstall.storage['_guided_hidden']['root_pw'].strip()) == 0:
+ if 'root_pw' not in archinstall.storage['_guided_hidden'] or len(archinstall.storage['_guided_hidden']['root_pw'].strip()) == 0:
sudo = True
installation.user_create(user, password, sudo=sudo)
- if archinstall.storage['_guided_hidden']['root_pw']:
+ if 'root_pw' in archinstall.storage['_guided_hidden'] and archinstall.storage['_guided_hidden']['root_pw']:
installation.user_set_pw('root', archinstall.storage['_guided_hidden']['root_pw'])
# Unmount and close previous runs (in case the installer is restarted)