From ebd3fe2248a6221f441dcf4d3ea39c55b2182994 Mon Sep 17 00:00:00 2001 From: Erin Date: Mon, 9 Jan 2023 15:27:10 +0100 Subject: [PATCH] added option to override firmware path --- repbuild/src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/repbuild/src/main.rs b/repbuild/src/main.rs index 5b0ca4f..f3f596e 100644 --- a/repbuild/src/main.rs +++ b/repbuild/src/main.rs @@ -120,7 +120,10 @@ fn run() -> Result<(), Error> { #[rustfmt::skip] com.args([ - "-bios", "/usr/share/OVMF/OVMF_CODE.fd", + "-bios", + std::env::var("REPBUILD_QEMU_FIRMWARE_PATH") + .as_deref() + .unwrap_or("/usr/share/OVMF/OVMF_CODE.fd"), "-drive", "file=target/disk.img,format=raw", "-m", "4G", "-serial", "stdio",