Compare commits
2 Commits
developmen
...
add-serial
Author | SHA1 | Date | |
---|---|---|---|
092004bab0
|
|||
022ec27bd5
|
2
LICENSE
2
LICENSE
@@ -1,6 +1,6 @@
|
||||
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
|
||||
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");
|
||||
if uefi {
|
||||
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 {
|
||||
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();
|
||||
child.wait().unwrap();
|
||||
}
|
||||
|
Reference in New Issue
Block a user