test-data: Use qemu-img instead of guestfish to create blank disks.

Since this step runs during make (not make check), guestfish
hasn't been built yet.

Fixes commit fa83b47876
and commit 74ded0dbc1.
This commit is contained in:
Richard W.M. Jones
2017-02-11 09:07:09 +00:00
parent e9deb6fab4
commit 53317e3f07

View File

@@ -32,19 +32,19 @@ CLEANFILES += $(files)
# Blank disk images in various sizes and formats.
blank-disk-1s.raw:
$(top_builddir)/run guestfish disk-create $@ raw 512
qemu-img create -f raw -o preallocation=off $@ 512
blank-disk-1s.qcow2:
qemu-img create -f qcow2 -o preallocation=metadata $@ 512
blank-disk-1K.raw:
$(top_builddir)/run guestfish disk-create $@ raw 1K
qemu-img create -f raw -o preallocation=off $@ 1K
blank-disk-1K.qcow2:
qemu-img create -f qcow2 -o preallocation=metadata $@ 1K
blank-disk-1M.raw:
$(top_builddir)/run guestfish disk-create $@ raw 1M
qemu-img create -f raw -o preallocation=off $@ 1M
blank-disk-1M.qcow2:
qemu-img create -f qcow2 -o preallocation=metadata $@ 1M