From 1560060d62a2e57058b3cf85b9dc879bbca7622b Mon Sep 17 00:00:00 2001 From: Phil Date: Mon, 31 Jan 2022 03:19:45 +0000 Subject: [PATCH] correction to secureboot firmware --- quickemu | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/quickemu b/quickemu index 89b1cf0..d117ae0 100755 --- a/quickemu +++ b/quickemu @@ -384,7 +384,7 @@ function vm_boot() { # https://bugzilla.redhat.com/show_bug.cgi?id=1929357#c5 case ${secureboot} in on) - if [ -e "/usr/share/OVMF/OVMF_CODE_4M.secboot.fd" ]; then + if [ -e "/usr/share/OVMF/OVMF_CODE_4M.secboot.fd" ]; then EFI_CODE="/usr/share/OVMF/OVMF_CODE_4M.secboot.fd" efi_vars "/usr/share/OVMF/OVMF_VARS_4M.fd" "${EFI_VARS}" elif [ -e "/usr/share/edk2/ovmf/OVMF_CODE.secboot.fd" ]; then @@ -393,7 +393,13 @@ function vm_boot() { elif [ -e "/usr/share/OVMF/x64/OVMF_CODE.secboot.fd" ]; then EFI_CODE="/usr/share/OVMF/x64/OVMF_CODE.secboot.fd" efi_vars "/usr/share/OVMF/x64/OVMF_VARS.fd" "${EFI_VARS}" - elif [ -e "/usr/share/edk2-ovmf/OVMF_CODE.fd" ]; then + elif [ -e "/usr/share/edk2-ovmf/OVMF_CODE.secboot.fd" ]; then + EFI_CODE="/usr/share/edk2-ovmf/OVMF_CODE.secboot.fd" + efi_vars "/usr/share/edk2-ovmf/OVMF_VARS.fd" "${EFI_VARS}" + elif [ -e "/usr/share/qemu/ovmf-x86_64-smm-ms-code.bin" ]; then + EFI_CODE="/usr/share/qemu/ovmf-x86_64-smm-ms-code.bin" + efi_vars "/usr/share/qemu/ovmf-x86_64-smm-ms-vars.bin" "${EFI_VARS}" + elif [ -e "/usr/share/edk2-ovmf/OVMF_CODE.secboot.fd" ]; then EFI_CODE="/usr/share/edk2-ovmf/OVMF_CODE.secboot.fd" efi_vars "/usr/share/edk2-ovmf/OVMF_VARS.fd" "${EFI_VARS}" elif [ -e "/usr/share/qemu/edk2-x86_64-secure-code.fd" ]; then