diff --git a/setup_win10.py b/setup_win10.py index 5174cfa..76ba369 100755 --- a/setup_win10.py +++ b/setup_win10.py @@ -40,7 +40,8 @@ def with_device(pth): finally: subprocess.run(['losetup', '-d', dev]) elif pth.is_block_device(): - pass + subprocess.run(['partprobe', dev]) + yield dev def ci_lookup(base, *comps, creating=False, parents=False): """Lookup path components case-insensitively"""