diff --git a/linux/aux-tools/prepare-volatile-img.sh b/linux/aux-tools/prepare-volatile-img.sh index 28a8207f..60fb2ce3 100755 --- a/linux/aux-tools/prepare-volatile-img.sh +++ b/linux/aux-tools/prepare-volatile-img.sh @@ -40,7 +40,7 @@ kpartx -s -a "$FILENAME" loopdev=`losetup -j "$FILENAME"|tail -n 1 |cut -d: -f1` looppart=`echo $loopdev|sed 's:dev:dev/mapper:'` mkswap -f ${looppart}p1 > /dev/null -sync +udevadm settle kpartx -s -d ${loopdev} losetup -d ${loopdev} || : chown --reference `dirname "$FILENAME"` "$FILENAME"