summaryrefslogtreecommitdiff
path: root/src/user/bootstrap/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/bootstrap/main.c')
-rw-r--r--src/user/bootstrap/main.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/user/bootstrap/main.c b/src/user/bootstrap/main.c
index 348486c..d27da39 100644
--- a/src/user/bootstrap/main.c
+++ b/src/user/bootstrap/main.c
@@ -18,8 +18,16 @@ int main(void) {
setprogname("bootstrap");
_sys_mount(HANDLE_PROCFS, "/proc/", strlen("/proc/"));
- MOUNT_AT("/") { fs_dirinject("/proc/"); }
- MOUNT_AT("/init/") { tar_driver(&_initrd); }
+ MOUNT_AT("/") {
+ fs_dirinject2((const char*[]) {
+ "/proc/",
+ "/init/",
+ NULL
+ });
+ }
+ MOUNT_AT("/init/") {
+ tar_driver(&_initrd);
+ }
const char *initpath = "bin/amd64/init";
char *initargv[] = {"init", NULL};