This commit is contained in:
Tianon Gravi 2014-09-20 01:24:50 -06:00
parent cb70e627b1
commit 1e93849872

View File

@ -29,7 +29,10 @@ qemuArgs+=( -m "${QEMU_RAM:-512}" )
if [ "$QEMU_HDA" ]; then
if [ ! -f "$QEMU_HDA" -o ! -s "$QEMU_HDA" ]; then
qemu-img create "$QEMU_HDA" "${QEMU_HDA_SIZE:-8G}"
(
set -x
qemu-img create -f qcow2 -o preallocation=off "$QEMU_HDA" "${QEMU_HDA_SIZE:-8G}"
)
fi
qemuArgs+=( -hda "$QEMU_HDA" )
fi