From 794850c05cd974e056cdd7a01b84c88fc9ada2d8 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Mon, 27 May 2024 14:21:50 +0200 Subject: [PATCH] darwin: Boot the VM using UEFI --- pkg/drivers/vfkit/driver_darwin.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkg/drivers/vfkit/driver_darwin.go b/pkg/drivers/vfkit/driver_darwin.go index 4bca40b6a7..222fe2ec0f 100644 --- a/pkg/drivers/vfkit/driver_darwin.go +++ b/pkg/drivers/vfkit/driver_darwin.go @@ -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),