Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-02-17 12:24:56 +0100
committerAnton Hvornum <anton.feeds@gmail.com>2021-02-17 12:24:56 +0100
commit5cb3b0d176fff9d2c2fb814530b29eca5819fe8e (patch)
treeb1a71fb7efd808979107356bbd26389487eb4670 /examples
parent3a8a25982a273081cd845723a2d794438e960a13 (diff)
Implemented #106 in branch skip-partitioning. Also moving the disk_password from being a local variable to a BlockDevice setting/variable.
Diffstat (limited to 'examples')
-rw-r--r--examples/guided.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 0efc438c..84676284 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -152,16 +152,11 @@ if archinstall.arguments['harddrive'].has_partitions():
else:
archinstall.arguments['harddrive'].keep_partitions = False
-exit(0)
-while (disk_password := getpass.getpass(prompt='Enter disk encryption password (leave blank for no encryption): ')):
- disk_password_verification = getpass.getpass(prompt='And one more time for verification: ')
- if disk_password != disk_password_verification:
- archinstall.log(' * Passwords did not match * ', bg='black', fg='red')
- continue
- archinstall.storage['_guided']['disk_encryption'] = True
- break
+disk_password = archinstall.get_password(prompt='Enter disk encryption password (leave blank for no encryption): ')
+archinstall.arguments['harddrive'].encryption_passwoed = disk_password
+exit(0)
# Ask for a hostname
hostname = input('Desired hostname for the installation: ')
if len(hostname) == 0: