Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
SetupBootkit: use the ovmf-vars.fd that shipped with bootkit
Browse files Browse the repository at this point in the history
Instead of relying on the host to have a reasonable one.

At least on ubuntu jammy, right now those are the same thing.

Signed-off-by: Serge Hallyn <[email protected]>
  • Loading branch information
hallyn committed Sep 1, 2023
1 parent b03c99a commit 56bf07d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/trust/artifacts.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,11 @@ func SetupBootkit(keysetName, bootkitVersion string) error {
dbGuid := strings.TrimSpace(string(dbGuidBytes))

outFile := filepath.Join(destDir, "ovmf-vars.fd")
plainvars := filepath.Join(bDir, "ovmf", "ovmf-vars.fd")
cmd = []string{
"virt-fw-vars",
"--input=/usr/share/OVMF/OVMF_VARS.fd",
"--output", outFile,
"--input=" + plainvars,
"--output=" + outFile,
"--secure-boot", "--no-microsoft",
"--set-pk", pkGuid, filepath.Join(keysetPath, "uefi-pk", "cert.pem"),
"--add-kek", kekGuid, filepath.Join(keysetPath, "uefi-kek", "cert.pem"),
Expand Down

0 comments on commit 56bf07d

Please sign in to comment.