mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Fix EFI booting
This commit is contained in:
parent
1b65ce8530
commit
47da9ca28b
1 changed files with 3 additions and 3 deletions
|
@ -90,10 +90,10 @@ function vm_boot() {
|
|||
|
||||
local BIOS=""
|
||||
if [ ${ENABLE_EFI} -eq 1 ]; then
|
||||
if [ "${ENGINE}" == "virgil" ] && [ -e /snap/qemu-virgil/current/usr/share/qemu/OVMF.fd ] ; then
|
||||
BIOS="-bios /snap/qemu-virgil/current/usr/share/qemu/OVMF.fd"
|
||||
if [ "${ENGINE}" == "virgil" ] && [ -e /snap/qemu-virgil/current/usr/share/qemu/edk2-x86_64-code.fd ] ; then
|
||||
BIOS="-drive if=pflash,format=raw,readonly,file=/snap/qemu-virgil/current/usr/share/qemu/edk2-x86_64-code.fd"
|
||||
elif [ -e /usr/share/qemu/OVMF.fd ]; then
|
||||
BIOS="-bios /usr/share/qemu/OVMF.fd"
|
||||
BIOS="-drive if=pflash,format=raw,readonly,file=/usr/share/qemu/OVMF.fd"
|
||||
else
|
||||
echo "WARNING! EFI booting requested but no EFI firmware found."
|
||||
echo " Booting from Legacy BIOS."
|
||||
|
|
Loading…
Reference in a new issue