forked from Mirror/pmbootstrap
pmb.qemu.run: fix x86_64 CPU check for EFI support (MR 2612)
Apparently python reads uname for this value, the correct value for 64-bit intel/amd stuff is `x86_64` even though python's docs list `amd64` as an example of a value `platform.machine()` can return 🤷 fixes #2612 [ci:skip-build]: already built successfully in CI
This commit is contained in:
parent
63dea3993d
commit
c39ac5fe99
1 changed files with 2 additions and 2 deletions
|
@ -278,7 +278,7 @@ def command_qemu(
|
||||||
"-drive",
|
"-drive",
|
||||||
f"if=pflash,format=raw,readonly=on,file={chroot_native.path}/usr/share/AAVMF/AAVMF_CODE.fd",
|
f"if=pflash,format=raw,readonly=on,file={chroot_native.path}/usr/share/AAVMF/AAVMF_CODE.fd",
|
||||||
]
|
]
|
||||||
case "amd64":
|
case "x86_64":
|
||||||
command += [
|
command += [
|
||||||
"-drive",
|
"-drive",
|
||||||
f"if=pflash,format=raw,readonly=on,file={chroot_native.path}/usr/share/OVMF/OVMF.fd",
|
f"if=pflash,format=raw,readonly=on,file={chroot_native.path}/usr/share/OVMF/OVMF.fd",
|
||||||
|
@ -395,7 +395,7 @@ def install_depends(args: PmbArgs, arch: Arch) -> None:
|
||||||
match host_arch:
|
match host_arch:
|
||||||
case "aarch64":
|
case "aarch64":
|
||||||
depends.append("aavmf")
|
depends.append("aavmf")
|
||||||
case "amd64":
|
case "x86_64":
|
||||||
depends.append("ovmf")
|
depends.append("ovmf")
|
||||||
case _:
|
case _:
|
||||||
raise RuntimeError(f"Architecture {host_arch} not configured for EFI support.")
|
raise RuntimeError(f"Architecture {host_arch} not configured for EFI support.")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue