OVMF: Add test with secure boot enabled

Co-authored-by: Arthur Gautier <arthur.gautier@arista.com>
This commit is contained in:
Shea Levy 2024-02-04 08:28:30 -05:00
parent 4673ad7254
commit 9188bb5186
No known key found for this signature in database
GPG key ID: 5C0BD6957D86FE27
4 changed files with 37 additions and 0 deletions

View file

@ -536,6 +536,9 @@ let format' = format; in let
concatStringsSep " " (lib.optional useEFIBoot "-drive if=pflash,format=raw,unit=0,readonly=on,file=${efiFirmware}"
++ lib.optionals touchEFIVars [
"-drive if=pflash,format=raw,unit=1,file=$efiVars"
] ++ lib.optionals (OVMF.systemManagementModeRequired or false) [
"-machine" "q35,smm=on"
"-global" "driver=cfi.pflash01,property=secure,value=on"
]
);
inherit memSize;