Skip to content

Commit 896d7f4

Browse files
cfergeaupraveenkumar
authored andcommitted
macos: Boot the VM using UEFI
1 parent 5c2c473 commit 896d7f4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pkg/drivers/vfkit/driver_darwin.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,10 @@ func (d *Driver) Start() error {
170170
return err
171171
}
172172

173-
bootLoader := config.NewLinuxBootloader(
174-
d.VmlinuzPath,
175-
"console=hvc0 "+d.Cmdline,
176-
d.InitrdPath,
177-
)
173+
efiStore := d.ResolveStorePath("efistore.nvram")
174+
create := !crcos.FileExists(efiStore)
175+
176+
bootLoader := config.NewEFIBootloader(efiStore, create)
178177

179178
vm := config.NewVirtualMachine(
180179
uint(d.CPU),

0 commit comments

Comments
 (0)