Skip to content

Commit

Permalink
Merge pull request #3225 from kairveeehh/master
Browse files Browse the repository at this point in the history
Fix incorrect firmware path suggestion for aarch64 in qemu.go
  • Loading branch information
AkihiroSuda authored Feb 12, 2025
2 parents 188ebda + 4c29b82 commit b3c2590
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/qemu/qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,8 @@ func getFirmware(qemuExe string, arch limayaml.Arch) (string, error) {
}

if arch == limayaml.X8664 {
return "", fmt.Errorf("could not find firmware for %q (hint: try setting `firmware.legacyBIOS` to `true`)", qemuExe)
return "", fmt.Errorf("could not find firmware for %q (hint: try setting `firmware.legacyBIOS` to `true`)", arch)
}
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)
qemuArch := strings.TrimPrefix(filepath.Base(qemuExe), "qemu-system-")
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)
}

0 comments on commit b3c2590

Please sign in to comment.