summaryrefslogtreecommitdiff
path: root/src/init/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/init/main.c')
-rw-r--r--src/init/main.c10
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"));
}