From 58599a98abac5d80ef4efc67e3e5eb0f4d01b128 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Sat, 11 May 2024 12:15:23 +0100 Subject: [PATCH] fix: only check the disk write lock if there is no PID for the VM --- quickemu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickemu b/quickemu index 609af15..b310404 100755 --- a/quickemu +++ b/quickemu @@ -662,7 +662,7 @@ function vm_boot() { fi echo " Just created, booting from ${iso}${img}" DISK_USED="no" - elif [ -e "${disk_img}" ]; then + elif [ -e "${disk_img}" ] && [ -z "${VM_PID}" ]; then # Check there isn't already a process attached to the disk image. if ! ${QEMU_IMG} info "${disk_img}" >/dev/null; then echo " Failed to get \"write\" lock. Is another process using the disk?"