Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/disk/blockdevice.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-11-11 14:29:41 +0000
committerAnton Hvornum <anton.feeds@gmail.com>2021-11-11 14:29:41 +0000
commitc2bfc4e34030f85a42820ac8505d3eaf9e109db5 (patch)
tree83144050c8ca8972ecb6bd419cd403a32db926e4 /archinstall/lib/disk/blockdevice.py
parent4ea7feb04e2a742435b45db242c91c0f2b88000c (diff)
Tweaked partitions usage in blockdevice
Diffstat (limited to 'archinstall/lib/disk/blockdevice.py')
-rw-r--r--archinstall/lib/disk/blockdevice.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/archinstall/lib/disk/blockdevice.py b/archinstall/lib/disk/blockdevice.py
index 8ee5e74a..2cdd741c 100644
--- a/archinstall/lib/disk/blockdevice.py
+++ b/archinstall/lib/disk/blockdevice.py
@@ -217,8 +217,8 @@ class BlockDevice:
def get_partition(self, uuid):
count = 0
while count < 5:
- for partition in self.partitions:
- if partition.uuid == uuid:
+ for partition_uuid, partition in self.partitions.items():
+ if partition_uuid == uuid:
return partition
else:
log(f"uuid {uuid} not found. Waiting for {count +1} time",level=logging.DEBUG)
@@ -226,7 +226,7 @@ class BlockDevice:
count += 1
else:
log(f"Could not find {uuid} in disk after 5 retries",level=logging.INFO)
- print(f"Partitions: {self.partitions}")
- print(f"UUID parts: {partition.uuid for partition in self.partitions}")
+ print(f"Cache: {self.part_cache}")
+ print(f"Partitions: {self.partitions.items()}")
print(f"UUID: {[uuid]}")
raise DiskError(f"New partition {uuid} never showed up after adding new partition on {self}")