From 2856b6a8369cea64d1c222282bca795af006dc0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 13 May 2015 01:44:35 +0200 Subject: [PATCH] Wait for udev to create loopXpY device when preparing volatile.img --- linux/aux-tools/prepare-volatile-img.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/aux-tools/prepare-volatile-img.sh b/linux/aux-tools/prepare-volatile-img.sh index 3b293eca..25d9a600 100755 --- a/linux/aux-tools/prepare-volatile-img.sh +++ b/linux/aux-tools/prepare-volatile-img.sh @@ -28,7 +28,7 @@ sfdisk --no-reread -u M "$FILENAME" > /dev/null 2> /dev/null < /dev/null udevadm settle +mkswap -f ${loopdev}p1 > /dev/null losetup -d ${loopdev} || : chown --reference `dirname "$FILENAME"` "$FILENAME"