summaryrefslogtreecommitdiff
path: root/src/init/main.c
diff options
context:
space:
mode:
authordzwdz2021-11-16 20:45:13 +0100
committerdzwdz2021-11-16 20:45:13 +0100
commitf9f1795a754c57d6d148e202dbc7864576cf2d47 (patch)
tree3b6129be8262164b4b2273187797601d5d18b469 /src/init/main.c
parentf2591b500c19cddee59edcf80a5ccdffc3ba3585 (diff)
init: implement fork2_n_mount
Diffstat (limited to 'src/init/main.c')
-rw-r--r--src/init/main.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/init/main.c b/src/init/main.c
index 8ddbe6d..f0c9779 100644
--- a/src/init/main.c
+++ b/src/init/main.c
@@ -43,12 +43,9 @@ void fs_prep(void) {
* TODO actually write tests */
_syscall_mount(front, argify("/init/"));
+ /* from here on i'll just use the helper func fork2_n_mount */
/* passthrough fs */
- front = _syscall_fs_fork2();
- if (!front) {
+ if (!fork2_n_mount("/2nd"))
fs_passthru();
- _syscall_exit(1); /* unreachable */
- }
- _syscall_mount(front, argify("/2nd"));
}