Merge "Run udevadm settle after kpartx -l"
This commit is contained in:
commit
64d2b3647e
1 changed files with 1 additions and 0 deletions
|
@ -54,6 +54,7 @@ function extract_image() {
|
|||
qemu-img convert -f qcow2 -O raw $CACHED_IMAGE $WORKING/$RAW_FILE
|
||||
|
||||
ROOT_PARTITON=p$(sudo kpartx -l $WORKING/$RAW_FILE | awk "/loop[0-9]+p/"|wc -l)
|
||||
sudo udevadm settle
|
||||
|
||||
# kpartx fails if no /dev/loop* exists, "losetup -f" prints first unused
|
||||
# loop device and creates it if it doesn't exist
|
||||
|
|
Loading…
Reference in a new issue