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.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/user/bootstrap/main.c b/src/user/bootstrap/main.c
index e877b64..fc239cf 100644
--- a/src/user/bootstrap/main.c
+++ b/src/user/bootstrap/main.c
@@ -15,14 +15,16 @@ void _start(void) {
_syscall_memflag(&_bss_start, &_bss_end - &_bss_start, MEMFLAG_PRESENT);
/* move everything provided by the kernel to /kdev */
- MOUNT("/kdev/", fs_passthru(NULL));
- if (!fork2_n_mount("/")) {
+ MOUNT_AT("/kdev/") { fs_passthru(NULL); }
+ MOUNT_AT("/") {
const char *l[] = {"/kdev/", NULL};
fs_whitelist(l);
}
- if (!fork2_n_mount("/")) fs_dir_inject("/kdev/"); // TODO should be part of fs_whitelist
+ MOUNT_AT("/") {
+ fs_dir_inject("/kdev/"); // TODO should be part of fs_whitelist
+ }
- MOUNT("/init/", tar_driver(&_initrd));
+ MOUNT_AT("/init/") { tar_driver(&_initrd); }
void *init = tar_find("bin/init", 8, &_initrd, ~0) + 512;
if (init) {