From e6383c95c8910f98729642ee08f35ff4bc70c377 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 3 Sep 2012 11:21:56 +0000 Subject: mount /dev as devtmpfs earlier, in stage1 rather than in stage2 (based on pok's idead @mdv but fixed) --- mdk-stage1/init.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mdk-stage1/init.c') 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"); } -- cgit v1.2.1