Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
Signed-off-by: Itxaka <[email protected]>
  • Loading branch information
Itxaka committed Oct 2, 2023
1 parent d76537c commit f89290a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/uki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
with:
go-version-file: tests/go.mod
cache-dependency-path: tests/go.sum
- name: Install virt-firmware
run: pip install virt-firmware
- name: Enable KVM group perms
run: |
sudo apt-get update
Expand Down
4 changes: 2 additions & 2 deletions tests/tests_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,14 +203,14 @@ func startVM() (context.Context, VM) {

// Set custom vars file for efi config so we boot first from disk then from DVD
// Generate efivars?
cmd := exec.Command("virt-fw-vars", "-i", "/usr/share/OVMF/OVMF_VARS.fd", "--set-json", filepath.Join(getwd, "/assets/efivars.json"), "-o", filepath.Join(getwd, "/assets/efivars.fd"))
cmd := exec.Command("virt-fw-vars", "-i", "/usr/share/OVMF/OVMF_VARS.fd", "--set-json", filepath.Join(getwd, "/assets/efivars.json"), "-o", "/tmp/efivars.fd")
output, err := cmd.CombinedOutput()
if err != nil {
fmt.Println(output)
return err
}
m.Args = append(m.Args, "-drive",
fmt.Sprintf("file=%s,if=pflash,format=raw", filepath.Join(getwd, "/assets/efivars.fd")),
"file=/tmp/efivars.fd,if=pflash,format=raw",
)
// Needed to be set for secureboot!
m.Args = append(m.Args, "-machine", "q35,smm=on")
Expand Down

0 comments on commit f89290a

Please sign in to comment.