Revert "fix(quickemu): enable pflash secure property only when secureboot on"
This reverts commit 5dfe6c9cf7.
This commit is contained in:
parent
38817e1e6b
commit
a98a416133
14
quickemu
14
quickemu
|
|
@ -1906,15 +1906,11 @@ function vm_boot() {
|
||||||
args+=(-blockdev node-name=rom,driver=file,filename="${EFI_CODE}",read-only=true
|
args+=(-blockdev node-name=rom,driver=file,filename="${EFI_CODE}",read-only=true
|
||||||
-blockdev node-name=efivars,driver=file,filename="${EFI_VARS}")
|
-blockdev node-name=efivars,driver=file,filename="${EFI_VARS}")
|
||||||
else
|
else
|
||||||
# x86 uses traditional pflash drives
|
# x86 uses traditional pflash drives with secure boot support
|
||||||
# Only enable secure pflash property when SecureBoot is requested
|
# shellcheck disable=SC2054
|
||||||
# shellcheck disable=SC2054
|
args+=(-global driver=cfi.pflash01,property=secure,value=on
|
||||||
if [ "${secureboot}" == "on" ]; then
|
-drive if=pflash,format="${EFI_CODE_FORMAT}",unit=0,file="${EFI_CODE}",readonly=on
|
||||||
args+=(-global driver=cfi.pflash01,property=secure,value=on)
|
-drive if=pflash,format="${EFI_VARS_FORMAT}",unit=1,file="${EFI_VARS}")
|
||||||
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}")
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue