Without the "-F qcow2" parameter, the qemu-img will error
with "Backing file specified without backing format". Let's
add to suppress it.
Signed-off-by: Tao Liu <ltao(a)redhat.com>
---
tests/scripts/image-init-lib.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/scripts/image-init-lib.sh b/tests/scripts/image-init-lib.sh
index 0a1524b..f905c69 100644
--- a/tests/scripts/image-init-lib.sh
+++ b/tests/scripts/image-init-lib.sh
@@ -240,7 +240,7 @@ create_image_from_base_image() {
if [ "$image_fmt" != "raw" ]; then
if fmt_is_qcow2 "$image_fmt"; then
echo "Source image is qcow2, using snapshot..."
- qemu-img create -f qcow2 -b $image $output
+ qemu-img create -f qcow2 -F qcow2 -b $image $output
else
perror_exit "Unrecognized base image format '$image_mnt'"
fi
--
2.33.1