Skip to content

Commit b3c2590

Browse files
authored
Merge pull request #3225 from kairveeehh/master
Fix incorrect firmware path suggestion for aarch64 in qemu.go
2 parents 188ebda + 4c29b82 commit b3c2590

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: pkg/qemu/qemu.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,8 @@ func getFirmware(qemuExe string, arch limayaml.Arch) (string, error) {
11591159
}
11601160

11611161
if arch == limayaml.X8664 {
1162-
return "", fmt.Errorf("could not find firmware for %q (hint: try setting `firmware.legacyBIOS` to `true`)", qemuExe)
1162+
return "", fmt.Errorf("could not find firmware for %q (hint: try setting `firmware.legacyBIOS` to `true`)", arch)
11631163
}
1164-
return "", fmt.Errorf("could not find firmware for %q (hint: try copying the \"edk-%s-code.fd\" firmware to $HOME/.local/share/qemu/)", arch, qemuExe)
1164+
qemuArch := strings.TrimPrefix(filepath.Base(qemuExe), "qemu-system-")
1165+
return "", fmt.Errorf("could not find firmware for %q (hint: try copying the \"edk-%s-code.fd\" firmware to $HOME/.local/share/qemu/)", arch, qemuArch)
11651166
}

0 commit comments

Comments
 (0)