Compare commits
2 Commits
bf3923acd0
...
092004bab0
Author | SHA1 | Date | |
---|---|---|---|
092004bab0
|
|||
022ec27bd5
|
2
LICENSE
2
LICENSE
@@ -1,6 +1,6 @@
|
|||||||
MIT License
|
MIT License
|
||||||
|
|
||||||
Copyright (c) 2025 noah.knegt
|
Copyright (c) 2025 Noah Knegt <personal@noahknegt.com>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
||||||
associated documentation files (the "Software"), to deal in the Software without restriction, including
|
associated documentation files (the "Software"), to deal in the Software without restriction, including
|
||||||
|
@@ -11,10 +11,15 @@ fn main() {
|
|||||||
let mut cmd = std::process::Command::new("qemu-system-x86_64");
|
let mut cmd = std::process::Command::new("qemu-system-x86_64");
|
||||||
if uefi {
|
if uefi {
|
||||||
cmd.arg("-bios").arg(ovmf_prebuilt::ovmf_pure_efi());
|
cmd.arg("-bios").arg(ovmf_prebuilt::ovmf_pure_efi());
|
||||||
cmd.arg("-drive").arg(format!("format=raw,file={uefi_path}"));
|
cmd.arg("-drive")
|
||||||
|
.arg(format!("format=raw,file={uefi_path}"));
|
||||||
} else {
|
} else {
|
||||||
cmd.arg("-drive").arg(format!("format=raw,file={bios_path}"));
|
cmd.arg("-drive")
|
||||||
|
.arg(format!("format=raw,file={bios_path}"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cmd.arg("-serial").arg("stdio");
|
||||||
|
|
||||||
let mut child = cmd.spawn().unwrap();
|
let mut child = cmd.spawn().unwrap();
|
||||||
child.wait().unwrap();
|
child.wait().unwrap();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user