From 3808016fc8ba7e41b8fca0ab3c076379008545a7 Mon Sep 17 00:00:00 2001 From: pjht Date: Tue, 6 Aug 2024 19:46:57 -0500 Subject: [PATCH] Format --- build.rs | 8 ++++++-- src/main.rs | 9 +++++---- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/build.rs b/build.rs index 389c5be..8e7db89 100644 --- a/build.rs +++ b/build.rs @@ -1,8 +1,12 @@ -use std::{os::unix::ffi::OsStrExt, path::{Path, PathBuf}, process::Command}; +use std::{ + os::unix::ffi::OsStrExt, + path::{Path, PathBuf}, + process::Command, +}; extern crate bootloader; -use bootloader::{UefiBoot, BiosBoot}; +use bootloader::{BiosBoot, UefiBoot}; fn main() { println!("cargo:rerun-if-changed=sysroot"); diff --git a/src/main.rs b/src/main.rs index bb1318a..f8a638a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -13,10 +13,11 @@ fn main() { cmd.arg("-bios").arg(ovmf_prebuilt::ovmf_pure_efi()); cmd.arg("-drive") .arg(format!("format=raw,file={uefi_path},if=ide,index=0")); - // .arg(format!("format=raw,file={bios_path}")); - cmd.arg("-drive").arg("format=raw,file=ext2.img,if=ide,index=1"); - // cmd.arg("-s"); - // cmd.arg("-S"); + //.arg(format!("format=raw,file={bios_path}")); + cmd.arg("-drive") + .arg("format=raw,file=ext2.img,if=ide,index=1"); + //cmd.arg("-s"); + //cmd.arg("-S"); cmd.arg("-serial").arg("mon:stdio"); cmd.arg("-serial").arg("file:capture.pcapng"); let mut child = cmd.spawn().unwrap();