Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/disk.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-03-09 10:50:05 +0100
committerAnton Hvornum <anton.feeds@gmail.com>2021-03-09 10:50:05 +0100
commitf230140ba99f7c7ddbe8e0f7a6c7f80572cbf2ce (patch)
tree42f4c99cea628fdabe748b70f4e76db526ab7454 /archinstall/lib/disk.py
parentc97d5f12021a8ca8b1e90a750a6f4c95229c6509 (diff)
Removed hardcoded partition numbers when acessing partitions. As the order is not fixed and more options to disk layouts have been added.
Diffstat (limited to 'archinstall/lib/disk.py')
-rw-r--r--archinstall/lib/disk.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py
index a8cba53b..73d913d0 100644
--- a/archinstall/lib/disk.py
+++ b/archinstall/lib/disk.py
@@ -354,9 +354,9 @@ class Filesystem():
b''.join(sys_command(f'sync'))
return True
- def find_root_partition(self):
+ def find_partition(self, mountpoint):
for partition in self.blockdevice:
- if partition.target_mountpoint == '/' or partition.mountpoint == '/':
+ if partition.target_mountpoint == mountpoint or partition.mountpoint == mountpoint:
return partition
def raw_parted(self, string:str):