Make sure cfi.pflash01always has the secure property set

This commit is contained in:
Martin Wimpress 2021-10-19 00:19:27 +01:00
parent b9f90d12c3
commit 9b96f899ad
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
1 changed files with 3 additions and 2 deletions

View File

@ -800,8 +800,9 @@ function vm_boot() {
# - https://turlucode.com/qemu-disk-io-performance-comparison-native-or-threads-windows-10-version/
if [[ "${boot}" == *"efi"* ]]; then
# shellcheck disable=SC2054
args+=(-drive if=pflash,format=raw,file="${EFI_CODE}",readonly=on
-drive if=pflash,format=raw,file="${EFI_VARS}")
args+=(-global driver=cfi.pflash01,property=secure,value=on
-drive if=pflash,format=raw,unit=0,file="${EFI_CODE}",readonly=on
-drive if=pflash,format=raw,unit=1,file="${EFI_VARS}")
fi
if [ -n "${floppy}" ]; then