summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/cmd/init/init.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cmd/init/init.c b/src/cmd/init/init.c
index 9875306..7851c9c 100644
--- a/src/cmd/init/init.c
+++ b/src/cmd/init/init.c
@@ -52,6 +52,18 @@ main(void)
printf("init: failed to mount tmpfs\n");
}
+ error = mount(
+ NULL,
+ "/dev",
+ MOUNT_DEVFS,
+ 0,
+ NULL
+ );
+
+ if (error < 0) {
+ printf("init: failed to mount devfs\n");
+ }
+
spawn(login_path, argv_dmmy);
for (;;);
}