Skip to content

Commit f8faf09

Browse files
committed
darwin: Boot the VM using UEFI
1 parent 84ea811 commit f8faf09

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pkg/drivers/vfkit/driver_darwin.go

+4-5
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,10 @@ func (d *Driver) Start() error {
167167
return err
168168
}
169169

170-
bootLoader := config.NewLinuxBootloader(
171-
d.VmlinuzPath,
172-
"console=hvc0 "+d.Cmdline,
173-
d.InitrdPath,
174-
)
170+
efiStore := d.ResolveStorePath("efistore.nvram")
171+
create := !crcos.FileExists(efiStore)
172+
173+
bootLoader := config.NewEFIBootloader(efiStore, create)
175174

176175
vm := config.NewVirtualMachine(
177176
uint(d.CPU),

0 commit comments

Comments
 (0)