From 0bff628bc34795378c293767abd32dcb0bba3c66 Mon Sep 17 00:00:00 2001 From: Filip Stedronsky Date: Thu, 29 Jul 2021 22:56:24 +0200 Subject: [PATCH] Add sleep for partition scan --- setup_win10.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup_win10.py b/setup_win10.py index 4724850..91847dc 100755 --- a/setup_win10.py +++ b/setup_win10.py @@ -39,7 +39,9 @@ def with_device(pth): finally: subprocess.run(['losetup', '-d', dev]) elif pth.is_block_device(): + time.sleep(1) subprocess.run(['partprobe', pth]) + time.sleep(1) yield pth def ci_lookup(base, *comps, creating=False, parents=False):