Skip to content

Commit

Permalink
darwin: Boot the VM using UEFI
Browse files Browse the repository at this point in the history
  • Loading branch information
cfergeau committed Jun 18, 2024
1 parent 84ea811 commit f8faf09
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pkg/drivers/vfkit/driver_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,10 @@ func (d *Driver) Start() error {
return err
}

bootLoader := config.NewLinuxBootloader(
d.VmlinuzPath,
"console=hvc0 "+d.Cmdline,
d.InitrdPath,
)
efiStore := d.ResolveStorePath("efistore.nvram")
create := !crcos.FileExists(efiStore)

bootLoader := config.NewEFIBootloader(efiStore, create)

vm := config.NewVirtualMachine(
uint(d.CPU),
Expand Down

0 comments on commit f8faf09

Please sign in to comment.