From ac88b6add9f26e71ed41ef0fbc61c96a25375095 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 16 Nov 2021 20:39:26 +0100 Subject: init: implement a halfassed passthrough fs --- src/init/main.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/init/main.c') diff --git a/src/init/main.c b/src/init/main.c index 795e2ac..8ddbe6d 100644 --- a/src/init/main.c +++ b/src/init/main.c @@ -1,3 +1,4 @@ +#include #include #include #include @@ -41,4 +42,13 @@ void fs_prep(void) { /* the trailing slash should be ignored by mount() * TODO actually write tests */ _syscall_mount(front, argify("/init/")); + + + /* passthrough fs */ + front = _syscall_fs_fork2(); + if (!front) { + fs_passthru(); + _syscall_exit(1); /* unreachable */ + } + _syscall_mount(front, argify("/2nd")); } -- cgit v1.2.3