Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-04-09 23:43:17 +0200
committerAnton Hvornum <anton@hvornum.se>2021-04-09 23:43:17 +0200
commit103320b06188565f2166e0330dd3a8bedb9f8572 (patch)
tree4a299cefdc408a1c326f3c0fd2cfd099fb0bd078
parent22eb6e023ddf04552777d5c59a1054836964dd42 (diff)
Fixing broken logic in guided
-rw-r--r--examples/guided.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/guided.py b/examples/guided.py
index b4b970bb..79023012 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -123,7 +123,7 @@ def ask_user_questions():
archinstall.arguments['harddrive'].keep_partitions = False
# Get disk encryption password (or skip if blank)
- if not archinstall.arguments.get('!encryption-password', None):
+ if archinstall.arguments['harddrive'] and archinstall.arguments.get('!encryption-password', None) is None:
if (passwd := archinstall.get_password(prompt='Enter disk encryption password (leave blank for no encryption): ')):
archinstall.arguments['!encryption-password'] = passwd
archinstall.arguments['harddrive'].encryption_password = archinstall.arguments['!encryption-password']