Skip to content

Commit

Permalink
uefi does not boot, maybe uefi-preferred?
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Palermo <[email protected]>
Co-authored-by: Joseph Palermo <[email protected]>
  • Loading branch information
xtreme-nitin-ravindran and jpalermo committed Nov 7, 2024
1 parent 9b3135e commit 67d0714
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion driver/reqinputs/register_image_input.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const (
func NewHVMAmiRequestInput(amiName string, amiDescription string, snapshotID string, efi bool) *ec2.RegisterImageInput {
bootMode := "legacy-bios"
if efi {
bootMode = "uefi"
bootMode = "uefi-preferred"
}
return &ec2.RegisterImageInput{
SriovNetSupport: aws.String("simple"),
Expand Down
2 changes: 1 addition & 1 deletion driver/reqinputs/register_image_input_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var _ = Describe("building inputs for register image", func() {

It("sets bootmode correctly when efi is true", func() {
input := reqinputs.NewHVMAmiRequestInput("some-ami-name", "some-ami-description", "some-snapshot-id", true)
Expect(*input.BootMode).To(Equal("uefi"))
Expect(*input.BootMode).To(Equal("uefi-preferred"))
})
})
})

0 comments on commit 67d0714

Please sign in to comment.