build-support/vm: fix makeImageTestScript

`qemu-img create` now requires an additional `-F <second_image_format>` flag.

https://github.com/qemu/qemu/blob/master/docs/about/removed-features.rst#qemu-img-backing-file-without-format-removed-in-61
This commit is contained in:
Brian McGee 2023-07-12 12:10:02 +01:00 committed by Jörg Thalheim
parent 4b479fc368
commit 9aa91ec7b5

View file

@ -494,7 +494,7 @@ rec {
fi
diskImage="$1"
if ! test -e "$diskImage"; then
${qemu}/bin/qemu-img create -b ${image}/disk-image.qcow2 -f qcow2 "$diskImage"
${qemu}/bin/qemu-img create -b ${image}/disk-image.qcow2 -f qcow2 -F qcow2 "$diskImage"
fi
export TMPDIR=$(mktemp -d)
export out=/dummy