fix: do not use qemu-img to determine the disk_format
Use the traditional default of qcow2, running qemu-img while a VM is running will return bogus information.
This commit is contained in:
parent
dc30cc51b1
commit
eb6e9bf4df
2
quickemu
2
quickemu
|
@ -1851,7 +1851,7 @@ if [ -n "${VM}" ] && [ -e "${VM}" ]; then
|
|||
|
||||
# Set the default disk_format if not provided by user
|
||||
if [ -z "${disk_format}" ] && [ -e "${disk_img}" ]; then
|
||||
disk_format=$(${QEMU_IMG} info "${disk_img}" | grep 'file format' | cut -d ':' -f 2 | tr -cd '[:graph:]')
|
||||
disk_format="qcow2"
|
||||
fi
|
||||
|
||||
if [ -n "${display}" ]; then
|
||||
|
|
Loading…
Reference in New Issue