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:
authorAnton Hvornum <anton@hvornum.se>2021-03-29 09:33:58 +0200
committerAnton Hvornum <anton@hvornum.se>2021-03-29 09:33:58 +0200
commited565e13481cce7ac3b640f0ad933605f6ad63c3 (patch)
treee9556862c88a43d88ba2f18ddfcd187285baedb4 /examples/guided.py
parent3161cd8afff2def3d4d3057cb028c666c4db55a3 (diff)
Adding some overclarification to encryption checks.
Diffstat (limited to 'examples/guided.py')
-rw-r--r--examples/guided.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/guided.py b/examples/guided.py
index d9dfe0df..009f9fa6 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -139,7 +139,7 @@ def ask_user_questions():
# Get disk encryption password (or skip if blank)
if not archinstall.arguments.get('!encryption-password', None):
- if passwd := archinstall.get_password(prompt='Enter disk encryption password (leave blank for no encryption): '):
+ if (passwd := archinstall.get_password(prompt='Enter disk encryption password (leave blank for no encryption): ')).strip():
archinstall.arguments['!encryption-password'] = passwd
archinstall.arguments['harddrive'].encryption_password = archinstall.arguments['!encryption-password']
@@ -292,7 +292,6 @@ def perform_installation(device, boot_partition, language, mirrors):
Only requirement is that the block devices are
formatted and setup prior to entering this function.
"""
- print('Installing on:', device)
with archinstall.Installer(device, boot_partition=boot_partition, hostname=archinstall.arguments.get('hostname', 'Archinstall')) as installation:
## if len(mirrors):
# Certain services might be running that affects the system during installation.