Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds@gmail.com>2021-09-14 14:07:50 +0000
committerAnton Hvornum <anton.feeds@gmail.com>2021-09-14 14:07:50 +0000
commit7d3f2b6f29082d179212a494a12089cb2bf05802 (patch)
tree498e01f6a099f4d379bcc25e5ba69fb8a27f6a9c /archinstall/lib
parent6d2a2f327c874f38233d6f52bc27d5678586567a (diff)
Added a 'hidden' variable called --disk-sleep for delaying disk partition up time before continuing after a format. This is an ugly hack to get around some disk issues, for now.
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/disk.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/archinstall/lib/disk.py b/archinstall/lib/disk.py
index c86bf7bc..a700c2a0 100644
--- a/archinstall/lib/disk.py
+++ b/archinstall/lib/disk.py
@@ -921,7 +921,9 @@ class Filesystem:
time.sleep(0.025)
- time.sleep(0.5) # Let the kernel catch up with quick block devices (nvme for instance)
+ # Todo: Find a better way to detect if the new UUID of the partition has showed up.
+ # But this will address (among other issues)
+ time.sleep(float(storage['arguments'].get('disk-sleep', 2.0))) # Let the kernel catch up with quick block devices (nvme for instance)
return self.blockdevice.get_partition(uuid=(previous_partition_uuids ^ {partition.uuid for partition in self.blockdevice.partitions.values()}).pop())
def set_name(self, partition: int, name: str):