From e356262f03ddf680ce6807c3cea361c390282a42 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Sun, 2 Dec 2018 19:14:13 -0700 Subject: [PATCH] Correct init path --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 21be726..13b2b7e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -131,7 +131,7 @@ static mut INIT_ENV: &[u8] = &[]; /// Initialize userspace by running the initfs:bin/init process /// This function will also set the CWD to initfs:bin and open debug: as stdio pub extern fn userspace_init() { - let path = b"/bin/init"; + let path = b"initfs:/bin/init"; let env = unsafe { INIT_ENV }; assert_eq!(syscall::chdir(b"initfs:"), Ok(0));