mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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 commit53317e3f07and commitfa83b47876and commit74ded0dbc1.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user