Cleanup path usage
This commit is contained in:
parent
941200b658
commit
9d879f95ed
|
@ -6,7 +6,6 @@
|
|||
/sbin/tcpd
|
||||
/sbin/udpd
|
||||
dhcpd -b
|
||||
httpd -b /ref
|
||||
getty display:2
|
||||
getty display:3
|
||||
stdio debug:
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
root;$argon2i$m=4096,t=10,p=1$Tnc4UVV0N00$ML9LIOujd3nmAfkAwEcSTMPqakWUF0OUiLWrIy0nGLk;0;0;root;file:root;file:bin/ion
|
||||
user;;1000;1000;user;file:home/user;file:bin/ion
|
||||
root;$argon2i$m=4096,t=10,p=1$Tnc4UVV0N00$ML9LIOujd3nmAfkAwEcSTMPqakWUF0OUiLWrIy0nGLk;0;0;root;/root;/bin/ion
|
||||
user;;1000;1000;user;/home/user;/bin/ion
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
initfs:bin/vesad T T T G
|
||||
export PATH initfs:/bin
|
||||
vesad T T T G
|
||||
stdio display:1
|
||||
initfs:bin/ps2d
|
||||
initfs:bin/pcid initfs:etc/pcid.toml
|
||||
initfs:bin/redoxfs disk:0
|
||||
ps2d
|
||||
pcid /etc/pcid.toml
|
||||
redoxfs disk:0
|
||||
cd file:
|
||||
export PATH file:bin
|
||||
run file:etc/init.rc
|
||||
export PATH file:/bin
|
||||
run /etc/init.rc
|
||||
|
|
|
@ -91,13 +91,13 @@ pub fn cpu_count() -> usize {
|
|||
/// 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() {
|
||||
assert_eq!(syscall::chdir(b"initfs:bin"), Ok(0));
|
||||
assert_eq!(syscall::chdir(b"initfs:"), Ok(0));
|
||||
|
||||
assert_eq!(syscall::open(b"debug:", syscall::flag::O_RDONLY).map(FileHandle::into), Ok(0));
|
||||
assert_eq!(syscall::open(b"debug:", syscall::flag::O_WRONLY).map(FileHandle::into), Ok(1));
|
||||
assert_eq!(syscall::open(b"debug:", syscall::flag::O_WRONLY).map(FileHandle::into), Ok(2));
|
||||
|
||||
syscall::exec(b"initfs:bin/init", &[]).expect("failed to execute initfs:init");
|
||||
syscall::exec(b"initfs:/bin/init", &[]).expect("failed to execute initfs:init");
|
||||
|
||||
panic!("initfs:init returned")
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit b526a29e35066a7a301f6a62e3cb336492cb8068
|
||||
Subproject commit f1073d0c4836ea76efe3bf3de2e0d9dc68d62354
|
Loading…
Reference in a new issue