From c39ac5fe99ad426bbd0fe8580cabdab81fea3cb5 Mon Sep 17 00:00:00 2001 From: Clayton Craft Date: Mon, 26 May 2025 15:15:43 -0700 Subject: [PATCH] pmb.qemu.run: fix x86_64 CPU check for EFI support (MR 2612) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- pmb/qemu/run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pmb/qemu/run.py b/pmb/qemu/run.py index cd0f19f8..f87ba866 100644 --- a/pmb/qemu/run.py +++ b/pmb/qemu/run.py @@ -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.")