mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 18:11:35 +00:00
Merge pull request #2534 from deitch/improve-mac-qemu-message
Better error message when running qemu on macOS when --fw not supplied
This commit is contained in:
commit
6fee5b6fa3
@ -359,6 +359,10 @@ func runQemuLocal(config QemuConfig) error {
|
||||
// Check for OVMF firmware before running
|
||||
if config.UEFI {
|
||||
if config.FWPath == "" {
|
||||
// there is no default on mac
|
||||
if runtime.GOOS == "darwin" {
|
||||
return fmt.Errorf("To run qemu with UEFI firmware on macOS, you must specify the path to locally installed OVMF firmware as `--fw <path>`. You can download OVMF from https://sourceforge.net/projects/edk2/files/OVMF/ ")
|
||||
}
|
||||
config.FWPath = defaultFWPath
|
||||
}
|
||||
if _, err := os.Stat(config.FWPath); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user