From 1f62a97c902bf0697e7502ec7f9e17c13147390b Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Tue, 9 Mar 2021 10:41:57 +0100 Subject: Marking the root partitions as encrypted if a disk password is set. In the future, we need to make this a bit more flexible by allowing multiple partitions to be encrypted. But for now, the main partition should be enough. --- examples/guided.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'examples') 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. -- cgit v1.2.3-54-g00ecf