Add sleep for partition scan
This commit is contained in:
parent
1c70d2e859
commit
0bff628bc3
@ -39,7 +39,9 @@ def with_device(pth):
|
|||||||
finally:
|
finally:
|
||||||
subprocess.run(['losetup', '-d', dev])
|
subprocess.run(['losetup', '-d', dev])
|
||||||
elif pth.is_block_device():
|
elif pth.is_block_device():
|
||||||
|
time.sleep(1)
|
||||||
subprocess.run(['partprobe', pth])
|
subprocess.run(['partprobe', pth])
|
||||||
|
time.sleep(1)
|
||||||
yield pth
|
yield pth
|
||||||
|
|
||||||
def ci_lookup(base, *comps, creating=False, parents=False):
|
def ci_lookup(base, *comps, creating=False, parents=False):
|
||||||
|
Loading…
Reference in New Issue
Block a user