Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/disk/filesystem.py
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-11-11 14:16:14 +0000
committerAnton Hvornum <anton.feeds@gmail.com>2021-11-11 14:16:14 +0000
commit4ea7feb04e2a742435b45db242c91c0f2b88000c (patch)
tree9a39829656d3685a0c154f27d963cd665833f891 /archinstall/lib/disk/filesystem.py
parent15e569d0bd0c910bd65573007135ab10267d82bc (diff)
Added more debugging (some duplicate, but that's fine)
Diffstat (limited to 'archinstall/lib/disk/filesystem.py')
-rw-r--r--archinstall/lib/disk/filesystem.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/archinstall/lib/disk/filesystem.py b/archinstall/lib/disk/filesystem.py
index 28df097e..cf2a286e 100644
--- a/archinstall/lib/disk/filesystem.py
+++ b/archinstall/lib/disk/filesystem.py
@@ -165,13 +165,16 @@ class Filesystem:
new_uuid_set = (previous_partition_uuids ^ {partition.uuid for partition in self.blockdevice.partitions.values()})
if len(new_uuid_set) > 0:
new_uuid = new_uuid_set.pop()
- print('Blockdevice:', self.blockdevice)
- print('Partitions:', self.blockdevice.partitions)
- print('Partition set:', new_uuid_set)
- print('New UUID:', [new_uuid])
- print('get_partition():', self.blockdevice.get_partition)
if new_uuid:
- return self.blockdevice.get_partition(new_uuid)
+ try:
+ return self.blockdevice.get_partition(new_uuid)
+ except Exception as err:
+ print('Blockdevice:', self.blockdevice)
+ print('Partitions:', self.blockdevice.partitions)
+ print('Partition set:', new_uuid_set)
+ print('New UUID:', [new_uuid])
+ print('get_partition():', self.blockdevice.get_partition)
+ raise err
else:
count += 1
log(f"Could not get uuid for partition. Waiting for the {count} time",level=logging.DEBUG)