summaryrefslogtreecommitdiffstats
path: root/bin/sbuild-qemu-boot
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sbuild-qemu-boot')
-rwxr-xr-xbin/sbuild-qemu-boot4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/sbuild-qemu-boot b/bin/sbuild-qemu-boot
index ae2ef1d..1fd93ae 100755
--- a/bin/sbuild-qemu-boot
+++ b/bin/sbuild-qemu-boot
@@ -148,7 +148,9 @@ def get_qemu_base_args(image, guest_arch=None, boot="auto"):
case "efi":
match guest_arch:
case 'amd64':
- eficode = "/usr/share/OVMF/OVMF_CODE.fd"
+ eficode = "/usr/share/OVMF/OVMF_CODE_4M.fd"
+ if not os.path.exists(eficode):
+ eficode = "/usr/share/OVMF/OVMF_CODE.fd"
case 'i386':
eficode = "/usr/share/OVMF/OVMF32_CODE_4M.secboot.fd"
case 'arm64':