From c8684fd231b717ee866a9b86e073db1714c8fc04 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Fri, 13 Jan 2012 00:57:38 +0100 Subject: init: drop support for non-devtmpfs udev does not support this as of udev-176, so there is no point in pretending it will work. This also drops devtmpfs_mounted=1, so any custom hooks that use this would have to be updated (no official hooks are affected). Signed-off-by: Tom Gundersen --- init | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/init b/init index 8cf90b1..86a954b 100644 --- a/init +++ b/init @@ -5,18 +5,7 @@ PATH=/usr/bin mount -t proc proc /proc -o nosuid,noexec,nodev mount -t sysfs sys /sys -o nosuid,noexec,nodev -if mount -n -t devtmpfs udev /dev -o mode=0755,nosuid; then - devtmpfs_mounted=1 -else - mount -n -t tmpfs udev /dev -o mode=0755,nosuid - devtmpfs_mounted=0 - # We don't have devtmpfs, so add the most important standard devices - mknod /dev/null c 1 3 - mknod /dev/zero c 1 5 - mknod /dev/console c 5 1 - # /dev/mem is needed if we want to load uvesafb before triggering uevents - mknod /dev/mem c 1 1 -fi +mount -t devtmpfs dev /dev -o mode=0755,nosuid mount -t tmpfs run /run -o nosuid,nodev,mode=0755 mkdir -m755 /run/initramfs -- cgit v1.2.3-24-g4f1b