diff --git a/elements/redhat-common/bin/extract-image b/elements/redhat-common/bin/extract-image index 799f9f99..e6a361f0 100755 --- a/elements/redhat-common/bin/extract-image +++ b/elements/redhat-common/bin/extract-image @@ -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