summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/NEWS1
-rw-r--r--mdk-stage1/init.c4
2 files changed, 4 insertions, 1 deletions
diff --git a/mdk-stage1/NEWS b/mdk-stage1/NEWS
index 1ad920aa0..8024c2a2a 100644
--- a/mdk-stage1/NEWS
+++ b/mdk-stage1/NEWS
@@ -1,3 +1,4 @@
+- mount /dev as devtmpfs (pok, mdv)
- rely on /sys being created in images
1.69
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");
}