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@hvornum.se>2022-08-30 23:58:00 +0200
committerAnton Hvornum <anton@hvornum.se>2022-08-30 23:58:00 +0200
commita335f100fc95377374c47aab5b981e5c1c73aa00 (patch)
tree707ba8698819505178ca78c2181eda9a3e7d8fda /archinstall/lib/disk/filesystem.py
parentea407f5c9de2966ee741198e55fcfa8f29760295 (diff)
parent0f5b91c7d733e94ffcad2fd8dd01774631b0c15a (diff)
Version bump to v2.5.1rc1 in prep for release
Diffstat (limited to 'archinstall/lib/disk/filesystem.py')
-rw-r--r--archinstall/lib/disk/filesystem.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/archinstall/lib/disk/filesystem.py b/archinstall/lib/disk/filesystem.py
index 90656308..5d5952a0 100644
--- a/archinstall/lib/disk/filesystem.py
+++ b/archinstall/lib/disk/filesystem.py
@@ -253,7 +253,6 @@ class Filesystem:
if self.parted(parted_string):
for count in range(storage.get('DISK_RETRY_ATTEMPTS', 3)):
- self.partprobe()
self.blockdevice.flush_cache()
new_partition_uuids = [partition.part_uuid for partition in self.blockdevice.partitions.values()]
@@ -271,7 +270,10 @@ class Filesystem:
raise err
else:
log(f"Could not get UUID for partition. Waiting {storage.get('DISK_TIMEOUTS', 1) * count}s before retrying.",level=logging.DEBUG)
- time.sleep(storage.get('DISK_TIMEOUTS', 1) * count)
+ self.partprobe()
+ time.sleep(max(0.1, storage.get('DISK_TIMEOUTS', 1)))
+ else:
+ print("Parted did not return True during partition creation")
total_partitions = set([partition.part_uuid for partition in self.blockdevice.partitions.values()])
total_partitions.update(previous_partuuids)