mirror of
https://github.com/containers/podman.git
synced 2025-05-17 23:26:08 +08:00
23 lines
491 B
Go
23 lines
491 B
Go
//go:build !darwin
|
|
|
|
package qemu
|
|
|
|
import (
|
|
"github.com/containers/common/pkg/config"
|
|
)
|
|
|
|
// setNewMachineCMDOpts are options needed to pass
|
|
// into setting up the qemu command line. long term, this need
|
|
// should be eliminated
|
|
// TODO Podman5
|
|
type setNewMachineCMDOpts struct{}
|
|
|
|
// findQEMUBinary locates and returns the QEMU binary
|
|
func findQEMUBinary() (string, error) {
|
|
cfg, err := config.Default()
|
|
if err != nil {
|
|
return "", err
|
|
}
|
|
return cfg.FindHelperBinary(QemuCommand, true)
|
|
}
|