From eb6e9bf4df8c01f4d53d748d234123069cf4d2b2 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Sat, 11 May 2024 11:52:36 +0100 Subject: [PATCH] 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. --- quickemu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickemu b/quickemu index 15e5aeb..324b1cb 100755 --- a/quickemu +++ b/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