From 1a218a9978e46fcbc8e0e90eab58002717495c63 Mon Sep 17 00:00:00 2001 From: pjht Date: Tue, 18 Jun 2024 16:37:34 -0500 Subject: [PATCH] Launch a test process using std APIs --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {