summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/init.c')
-rw-r--r--mdk-stage1/init.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mdk-stage1/init.c b/mdk-stage1/init.c
index 21b220c1a..509dc2cb4 100644
--- a/mdk-stage1/init.c
+++ b/mdk-stage1/init.c
@@ -416,8 +416,10 @@ int main(int argc, char **argv)
fatal_error("Unable to mount proc filesystem");
if (mount("none", "/sys", "sysfs", 0, NULL))
fatal_error("Unable to mount sysfs filesystem");
- if (mount("none", "/sys/kernel/debug", "debugfs", 0, NULL))
+ if (mount("none", "/sys/kernel/debug", "debugfs", 0, "mode=0755,nosuid"))
fatal_error("Unable to mount debugfs filesystem");
+ if (mount("none", "/dev", "devtmpfs", 0, NULL))
+ fatal_error("Unable to mount dev filesystem");
}