index : archinstall32 | |
Archlinux32 installer | gitolite user |
summaryrefslogtreecommitdiff |
author | Anton Hvornum <anton@hvornum.se> | 2021-04-09 23:43:17 +0200 |
---|---|---|
committer | Anton Hvornum <anton@hvornum.se> | 2021-04-09 23:43:17 +0200 |
commit | 103320b06188565f2166e0330dd3a8bedb9f8572 (patch) | |
tree | 4a299cefdc408a1c326f3c0fd2cfd099fb0bd078 /examples | |
parent | 22eb6e023ddf04552777d5c59a1054836964dd42 (diff) |
-rw-r--r-- | examples/guided.py | 2 |
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'] |