diff --git a/pkg/machine/qemu/options_darwin_arm64.go b/pkg/machine/qemu/options_darwin_arm64.go index e9c0c5ab42..d75237938a 100644 --- a/pkg/machine/qemu/options_darwin_arm64.go +++ b/pkg/machine/qemu/options_darwin_arm64.go @@ -46,23 +46,13 @@ func getOvmfDir(imagePath, vmName string) string { */ func getEdk2CodeFdPathFromQemuBinaryPath() string { cfg, err := config.Default() - if err != nil { - return "" - } - execPath, err := cfg.FindHelperBinary(QemuCommand, true) - if err != nil { - return "" - } - - sharePath := func(path string) string { - return filepath.Clean(filepath.Join(filepath.Dir(path), "..", "share", "qemu")) - } - - symlinkedPath, err := filepath.EvalSymlinks(execPath) - if err != nil { - return sharePath(execPath) + if err == nil { + execPath, err := cfg.FindHelperBinary(QemuCommand, true) + if err == nil { + return filepath.Clean(filepath.Join(filepath.Dir(execPath), "..", "share", "qemu")) + } } - return sharePath(symlinkedPath) + return "" } /*