Similarly to issue #1037, a loopback device was reported busy at the
time the 'create' scripts attempted to remove it. To prevent that,
an invocation of 'udevadm settle' is added to the list of cleanup
commands, to be executed just before 'losetup -d'.
---
create | 1 +
1 file changed, 1 insertion(+)
diff --git a/create b/create
index 6565176..08a2cb3 100755
--- a/create
+++ b/create
@@ -38,6 +38,7 @@ if [ ! -b $blockdev ]; then
ORIGINAL_BLOCKDEV=$blockdev
blockdev=$(losetup --show -f $blockdev)
CLEANUP+=("losetup -d $blockdev")
+ CLEANUP+=("udevadm settle")
fi
DEVICE_SIZE=$(blockdev --getsize64 $blockdev)
--
2.2.0.rc0.207.ga3a616c