summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-09-03 11:21:56 +0000
committerThierry Vignaud <tv@mageia.org>2012-09-03 11:21:56 +0000
commite6383c95c8910f98729642ee08f35ff4bc70c377 (patch)
tree8a90d825caed692a320caca0dc2eaa119045c47e /mdk-stage1
parent5758121daa7e4eba12eaa4ab56a6958709aa7baf (diff)
downloaddrakx-e6383c95c8910f98729642ee08f35ff4bc70c377.tar
drakx-e6383c95c8910f98729642ee08f35ff4bc70c377.tar.gz
drakx-e6383c95c8910f98729642ee08f35ff4bc70c377.tar.bz2
drakx-e6383c95c8910f98729642ee08f35ff4bc70c377.tar.xz
drakx-e6383c95c8910f98729642ee08f35ff4bc70c377.zip
mount /dev as devtmpfs earlier, in stage1 rather than in stage2
(based on pok's idead @mdv but fixed)
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");
}