Skip to content

Commit

Permalink
fix: add ovmf image path for rhel
Browse files Browse the repository at this point in the history
Add an OVMF image source path for QEMU, needed on RHEL-based systems.

Signed-off-by: Han Cen <hi@chamburr.com>
Signed-off-by: Andrey Smirnov <andrey.smirnov@talos-systems.com>
(cherry picked from commit 27f8e50)
  • Loading branch information
chamburr authored and smira committed Jun 6, 2022
1 parent 6229eef commit e23d197
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/provision/providers/qemu/arch.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (arch Arch) PFlash(uefiEnabled bool, extraUEFISearchPaths []string) []PFlas
return nil
}

uefiSourcePaths := []string{"/usr/share/ovmf/OVMF.fd", "/usr/share/OVMF/OVMF.fd", "/usr/share/OVMF/OVMF_CODE.fd"}
uefiSourcePaths := []string{"/usr/share/ovmf/OVMF.fd", "/usr/share/OVMF/OVMF.fd", "/usr/share/OVMF/OVMF_CODE.fd", "/usr/share/OVMF/OVMF_CODE.secboot.fd"}
for _, p := range extraUEFISearchPaths {
uefiSourcePaths = append(uefiSourcePaths, filepath.Join(p, "OVMF.fd"))
}
Expand Down

0 comments on commit e23d197

Please sign in to comment.