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.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/guided.py b/examples/guided.py
index 13bf2414..ebdd3678 100644
--- a/examples/guided.py
+++ b/examples/guided.py
@@ -276,6 +276,10 @@ with archinstall.Filesystem(archinstall.arguments['harddrive'], archinstall.GPT)
if archinstall.arguments['harddrive'].keep_partitions is False:
fs.use_entire_disk(root_filesystem_type=archinstall.arguments.get('filesystem', 'btrfs'),
encrypt_root_partition=archinstall.arguments.get('!encryption-password', False))
+ # Otherwise, check if encryption is desired and mark the root partition as encrypted.
+ elif archinstall.arguments.get('!encryption-password', None):
+ root_partition = fs.find_root_partition()
+ root_partition.encrypted = True
# After the disk is ready, iterate the partitions and check
# which ones are safe to format, and format those.