Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-03-09 10:41:57 +0100
committerAnton Hvornum <anton.feeds@gmail.com>2021-03-09 10:41:57 +0100
commit1f62a97c902bf0697e7502ec7f9e17c13147390b (patch)
tree9b618ab546f9e8f3d884247ec73e9680f90c6224 /archinstall
parent16b0f4a4a48e6e0363db653a6ec1cedbb4741647 (diff)
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.
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/disk.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py
index 92982499..7d4a34c6 100644
--- a/archinstall/lib/disk.py
+++ b/archinstall/lib/disk.py
@@ -352,6 +352,11 @@ class Filesystem():
b''.join(sys_command(f'sync'))
return True
+ def find_root_partition(self):
+ for partition in self.blockdevice:
+ if partition.target_mountpoint == '/' or partition.mountpoint == '/':
+ return partition
+
def raw_parted(self, string:str):
x = sys_command(f'/usr/bin/parted -s {string}')
o = b''.join(x)