qemu: use OVMF EFI firmware from chroot (MR 2252)

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2024-06-14 07:24:17 +02:00 committed by Oliver Smith
parent 7d85bb31d5
commit d1a86fe702
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -220,7 +220,7 @@ def command_qemu(args: PmbArgs, config: Config, arch: Arch, img_path, img_path_2
if args.efi:
command += ["-drive",
"if=pflash,format=raw,readonly=on,file=/usr/share/OVMF/OVMF.fd"]
f"if=pflash,format=raw,readonly=on,file={chroot_native.path}/usr/share/OVMF/OVMF.fd"]
# Kernel Virtual Machine (KVM) support
native = pmb.parse.deviceinfo().arch.is_native()