forked from AbleOS/ableos
added option to override firmware path
This commit is contained in:
parent
72c4aabbcc
commit
ebd3fe2248
|
@ -120,7 +120,10 @@ fn run() -> Result<(), Error> {
|
||||||
|
|
||||||
#[rustfmt::skip]
|
#[rustfmt::skip]
|
||||||
com.args([
|
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",
|
"-drive", "file=target/disk.img,format=raw",
|
||||||
"-m", "4G",
|
"-m", "4G",
|
||||||
"-serial", "stdio",
|
"-serial", "stdio",
|
||||||
|
|
Loading…
Reference in a new issue