diff --git a/src/main.rs b/src/main.rs index 7ecd258..5edbf3c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,6 +4,7 @@ use std::os::mikros::loader::Loader; use std::os::mikros::syscalls::{get_initrd, new_process}; use std::path::Path; +use std::process::Command; use tar_no_std::TarArchiveRef; fn main() { @@ -29,8 +30,7 @@ fn main() { } } println!("[INIT] Mounted initrd as root"); - println!("/test_file.txt:"); - print!("{}", std::fs::read_to_string("/test_file.txt").unwrap()) + Command::new("/bin/load_test").spawn().unwrap(); } fn run_initrd_proc(initrd: &TarArchiveRef, path: &str) -> u64 {