Show full $EFI_CODE path in boot status

This commit is contained in:
Martin Wimpress 2021-10-19 23:45:22 +01:00
parent 207ebde501
commit 145dc472af
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3

View File

@ -408,14 +408,14 @@ function vm_boot() {
exit 1
fi
# If EFI firmware path is a symlink, resolve it to a real file.
# If EFI_CODE references a symlink, resolve it to the real file.
if [ -L "${EFI_CODE}" ]; then
echo " - EFI: WARNING! ${EFI_CODE} is a symlink."
echo -n " Resolving to... "
EFI_CODE=$(realpath "${EFI_CODE}")
echo "${EFI_CODE}"
fi
BOOT_STATUS="EFI (${guest_os^}), OVMF ($(basename "${EFI_CODE}")), SecureBoot (${secureboot})."
BOOT_STATUS="EFI (${guest_os^}), OVMF (${EFI_CODE}), SecureBoot (${secureboot})."
else
BOOT_STATUS="Legacy BIOS (${guest_os^})"
secureboot="off"