From d2d9bc1f1abfa57bbd3e6e8a5b368c14794004ce Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Sat, 9 Oct 2021 15:27:06 +0100 Subject: [PATCH] Fix deleting EFI VARS when VM deletion is requested --- quickemu | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/quickemu b/quickemu index f46e627..0739a73 100755 --- a/quickemu +++ b/quickemu @@ -5,10 +5,10 @@ function disk_delete() { if [ -e "${disk_img}" ]; then rm "${disk_img}" # Remove any EFI vars, but not for macOS - rm "${VMDIR}/OVMF_VARS_4M.fd" >/dev/null 2>&1 - rm "${VMPATH}/${VMDIR}/OVMF_VARS_4M.fd" >/dev/null 2>&1 - rm "${VMDIR}/${VMNAME}-vars.fd" >/dev/null 2>&1 - rm "${VMPATH}/${VMDIR}/${VMNAME}-vars.fd" > /dev/null 2>&1 + rm "${VMDIR}"/OVMF_VARS*.fd >/dev/null 2>&1 + rm "${VMPATH}/${VMDIR}"/OVMF_VARS*.fd >/dev/null 2>&1 + rm "${VMDIR}"/${VMNAME}-vars.fd >/dev/null 2>&1 + rm "${VMPATH}/${VMDIR}"/${VMNAME}-vars.fd > /dev/null 2>&1 echo "SUCCESS! Deleted ${disk_img}" else echo "NOTE! ${disk_img} not found. Doing nothing."