]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
99base/init: remove tmpfs on /dev
authorHarald Hoyer <harald@redhat.com>
Mon, 23 Jan 2012 15:08:46 +0000 (16:08 +0100)
committerHarald Hoyer <harald@redhat.com>
Mon, 23 Jan 2012 15:08:46 +0000 (16:08 +0100)
tmpfs on /dev is not supported anymore and devtmpfs is supported in
kernels for a long time.

modules.d/99base/init

index 33a73790d8455163673b4de686864b6ce294ddfb..abfa3c501ac01ca3b9da3bed9a039bcd97f97d82 100755 (executable)
@@ -110,16 +110,7 @@ if [ "$RD_DEBUG" = "yes" ]; then
 fi
 
 if ! ismounted /dev; then
-    # try to mount devtmpfs
-    if ! mount -t devtmpfs -o mode=0755,nosuid devtmpfs /dev >/dev/null 2>&1; then
-        # if it failed fall back to normal tmpfs
-        mount -t tmpfs -o mode=0755,nosuid tmpfs /dev >/dev/null 2>&1
-        # Make some basic devices first, let udev handle the rest
-        mknod -m 0666 /dev/null c 1 3
-        mknod -m 0666 /dev/ptmx c 5 2
-        mknod -m 0600 /dev/console c 5 1
-        mknod -m 0660 /dev/kmsg c 1 11
-    fi
+    mount -t devtmpfs -o mode=0755,nosuid devtmpfs /dev >/dev/null 2>&1
 fi
 
 # prepare the /dev directory