Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
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)