Simplify boot conditional

This commit is contained in:
Martin Wimpress 2021-09-29 04:11:26 +01:00
parent 9cb78e1fb7
commit e2fed9c51f
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3

View File

@ -517,7 +517,7 @@ function vm_boot() {
# Add the disks
# - https://turlucode.com/qemu-disk-io-performance-comparison-native-or-threads-windows-10-version/
if [ "${boot}" == "efi" ] || [ "${boot}" == "uefi" ]; then
if [[ "${boot}" == *"efi"* ]]; then
# shellcheck disable=SC2054
args+=(-drive if=pflash,format=raw,readonly=on,file="${EFI_CODE}"
-drive if=pflash,format=raw,file="${EFI_VARS}")