From a98a416133189c39410dfcb1b6777273f0f515e1 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Mon, 26 Jan 2026 00:02:34 +0000 Subject: [PATCH] Revert "fix(quickemu): enable pflash secure property only when secureboot on" This reverts commit 5dfe6c9cf7bc2e60f34d9637ba6b117d7209426d. --- quickemu | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/quickemu b/quickemu index c4f7a41..96097ca 100755 --- a/quickemu +++ b/quickemu @@ -1906,15 +1906,11 @@ function vm_boot() { args+=(-blockdev node-name=rom,driver=file,filename="${EFI_CODE}",read-only=true -blockdev node-name=efivars,driver=file,filename="${EFI_VARS}") else - # x86 uses traditional pflash drives - # Only enable secure pflash property when SecureBoot is requested - # shellcheck disable=SC2054 - if [ "${secureboot}" == "on" ]; then - args+=(-global driver=cfi.pflash01,property=secure,value=on) - fi - # shellcheck disable=SC2054 - args+=(-drive if=pflash,format="${EFI_CODE_FORMAT}",unit=0,file="${EFI_CODE}",readonly=on - -drive if=pflash,format="${EFI_VARS_FORMAT}",unit=1,file="${EFI_VARS}") + # x86 uses traditional pflash drives with secure boot support + # shellcheck disable=SC2054 + args+=(-global driver=cfi.pflash01,property=secure,value=on + -drive if=pflash,format="${EFI_CODE_FORMAT}",unit=0,file="${EFI_CODE}",readonly=on + -drive if=pflash,format="${EFI_VARS_FORMAT}",unit=1,file="${EFI_VARS}") fi fi