Tidy MAC_BOOTLOADER

This commit is contained in:
Martin Wimpress 2021-10-05 00:17:51 +01:00
parent 513081026c
commit 3e49d4b154
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3

View File

@ -151,6 +151,7 @@ function vm_boot() {
local DISPLAY_DEVICE=""
local GL="on"
local GUEST_TWEAKS=""
local MAC_BOOTLOADER=""
local MAC_MISSING=""
local MAC_DISK_DEV="ide-hd,bus=ahci.2"
local NET_DEVICE="virtio-net"
@ -178,10 +179,10 @@ function vm_boot() {
fi
if [ -e "${VMDIR}/OpenCore.qcow2" ]; then
local MAC_BOOTLOADER="${VMDIR}/OpenCore.qcow2"
MAC_BOOTLOADER="${VMDIR}/OpenCore.qcow2"
elif [ -e "${VMDIR}/ESP.qcow2" ]; then
# Backwards compatibility for Clover
local MAC_BOOTLOADER="${VMDIR}/ESP.qcow2"
MAC_BOOTLOADER="${VMDIR}/ESP.qcow2"
else
MAC_MISSING="Bootloader"
fi