debian: Old qemu-img does not support -f raw -o preallocation=off

The old version of qemu-img available in Debian 8 doesn't support the
preallocation option for raw format.  However this doesn't matter
because the default is preallocation=off (ie. sparse) for old and new
versions of qemu-img so we can just omit this parameter.

Fixes commit 53317e3f07
and commit fa83b47876
and commit 74ded0dbc1.
This commit is contained in:
Richard W.M. Jones
2017-02-23 08:14:44 -05:00
parent bf7aab615b
commit c72be578c1

View File

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