lolwups
This commit is contained in:
parent
cb70e627b1
commit
1e93849872
|
@ -29,7 +29,10 @@ qemuArgs+=( -m "${QEMU_RAM:-512}" )
|
||||||
|
|
||||||
if [ "$QEMU_HDA" ]; then
|
if [ "$QEMU_HDA" ]; then
|
||||||
if [ ! -f "$QEMU_HDA" -o ! -s "$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
|
fi
|
||||||
qemuArgs+=( -hda "$QEMU_HDA" )
|
qemuArgs+=( -hda "$QEMU_HDA" )
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user