From: Harald Hoyer Date: Mon, 23 Jan 2012 15:08:46 +0000 (+0100) Subject: 99base/init: remove tmpfs on /dev X-Git-Tag: 015~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ba7fa583bf7fdc548e961f23d2801cb4e7d50aba;p=thirdparty%2Fdracut.git 99base/init: remove tmpfs on /dev tmpfs on /dev is not supported anymore and devtmpfs is supported in kernels for a long time. --- diff --git a/modules.d/99base/init b/modules.d/99base/init index 33a73790d..abfa3c501 100755 --- a/modules.d/99base/init +++ b/modules.d/99base/init @@ -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