This commit is contained in:
Filip Stedronsky 2021-07-29 17:32:55 +02:00
parent f3e320f6cf
commit 30f8c29fc4

View File

@ -40,8 +40,8 @@ def with_device(pth):
finally:
subprocess.run(['losetup', '-d', dev])
elif pth.is_block_device():
subprocess.run(['partprobe', dev])
yield dev
subprocess.run(['partprobe', pth])
yield pth
def ci_lookup(base, *comps, creating=False, parents=False):
"""Lookup path components case-insensitively"""