1
0
Fork 0
forked from koniifer/ableos

added option to override firmware path

This commit is contained in:
Erin 2023-01-09 15:27:10 +01:00 committed by ondra05
parent 72c4aabbcc
commit ebd3fe2248

View file

@ -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",