From dc88b6fab495466e94759ac08b0c37067cbdd5d6 Mon Sep 17 00:00:00 2001 From: cmspam Date: Fri, 22 Nov 2024 13:37:23 +0900 Subject: [PATCH] Fix incorrect Vars file mapping in edk2 driver The Vars file mappings in the edk2 driver were incorrect for the SECUREBOOT usage. The previous mapping for "ovmf-x86_64-ms-4m-vars.bin" and "ovmf-x86_64-ms-4m-code.bin" was swapped. This commit corrects the mapping by ensuring the proper Vars files are associated with their respective Code files. The change solves an issue in distributions using these file names, such as openSUSE. Signed-off-by: cmspam --- internal/server/instance/drivers/edk2/driver_edk2.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/server/instance/drivers/edk2/driver_edk2.go b/internal/server/instance/drivers/edk2/driver_edk2.go index d0db54e0867..df273421de1 100644 --- a/internal/server/instance/drivers/edk2/driver_edk2.go +++ b/internal/server/instance/drivers/edk2/driver_edk2.go @@ -75,7 +75,7 @@ var architectureInstallations = map[int][]Installation{ {Code: "edk2-x86_64-code.fd", Vars: "edk2-i386-vars.fd"}, }, SECUREBOOT: { - {Code: "ovmf-x86_64-ms-4m-vars.bin", Vars: "ovmf-x86_64-ms-4m-code.bin"}, + {Code: "ovmf-x86_64-ms-4m-code.bin", Vars: "ovmf-x86_64-ms-4m-vars.bin"}, {Code: "ovmf-x86_64-ms-code.bin", Vars: "ovmf-x86_64-ms-vars.bin"}, {Code: "edk2-x86_64-secure-code.fd", Vars: "edk2-i386-vars.fd"}, },