diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/sbuild-qemu-boot | 4 | ||||
-rwxr-xr-x | bin/sbuild-qemu-update | 4 |
2 files changed, 6 insertions, 2 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': diff --git a/bin/sbuild-qemu-update b/bin/sbuild-qemu-update index af5c31c..6e08274 100755 --- a/bin/sbuild-qemu-update +++ b/bin/sbuild-qemu-update @@ -146,7 +146,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': |