mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Fix deleting EFI VARS when VM deletion is requested
This commit is contained in:
parent
6d926d66e9
commit
d2d9bc1f1a
1 changed files with 4 additions and 4 deletions
8
quickemu
8
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."
|
||||
|
|
Loading…
Reference in a new issue