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.
This commit is contained in:
parent
6d2a2f327c
commit
7d3f2b6f29
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue