diff options
author | dzwdz | 2021-11-16 20:39:26 +0100 |
---|---|---|
committer | dzwdz | 2021-11-16 20:39:26 +0100 |
commit | ac88b6add9f26e71ed41ef0fbc61c96a25375095 (patch) | |
tree | 7b0e215d24d4d7a506836e424697b6727149d0fb /src/init/main.c | |
parent | fefca619c1b98f9fe27cfff0c32f39b751ee6a60 (diff) |
init: implement a halfassed passthrough fs
Diffstat (limited to 'src/init/main.c')
-rw-r--r-- | src/init/main.c | 10 |
1 files changed, 10 insertions, 0 deletions
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 <init/fs/misc.h> #include <init/shell.h> #include <init/stdlib.h> #include <init/tar.h> @@ -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")); } |