Improve error message when no SecureBoot firmware was found.

This commit is contained in:
Martin Wimpress 2021-10-19 23:36:46 +01:00
parent 7a0cf72213
commit 444616022e
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3

View File

@ -378,6 +378,7 @@ function vm_boot() {
efi_vars "/usr/share/OVMF/x64/OVMF_VARS.fd" "${EFI_VARS}" efi_vars "/usr/share/OVMF/x64/OVMF_VARS.fd" "${EFI_VARS}"
else else
echo "ERROR! SecureBoot was requested but no SecureBoot capable firmware was found." echo "ERROR! SecureBoot was requested but no SecureBoot capable firmware was found."
echo " Please install OVMF firmware."
exit 1 exit 1
fi fi
BOOT_STATUS="EFI (${guest_os^}), OVMF ($(basename "${EFI_CODE}")), SecureBoot (${secureboot})." BOOT_STATUS="EFI (${guest_os^}), OVMF ($(basename "${EFI_CODE}")), SecureBoot (${secureboot})."