1
0
Fork 1
mirror of https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git synced 2025-07-12 19:09:56 +03:00

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

(cherry picked from commit c39ac5fe99)
This commit is contained in:
Clayton Craft 2025-05-26 15:15:43 -07:00 committed by Newbyte
parent 5783d1c507
commit 6f28877dab
No known key found for this signature in database
GPG key ID: ACD854892B38D898

View file

@ -278,7 +278,7 @@ def command_qemu(
"-drive",
f"if=pflash,format=raw,readonly=on,file={chroot_native.path}/usr/share/AAVMF/AAVMF_CODE.fd",
]
case "amd64":
case "x86_64":
command += [
"-drive",
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:
case "aarch64":
depends.append("aavmf")
case "amd64":
case "x86_64":
depends.append("ovmf")
case _:
raise RuntimeError(f"Architecture {host_arch} not configured for EFI support.")