From: Harald Hoyer Date: Tue, 30 Jun 2009 14:12:12 +0000 (+0200) Subject: prepare init to mount devtmpfs instead of tmpfs on /dev X-Git-Tag: 0.2~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3473f5d938ae8bc49053d58e4c562767bae625f0;p=thirdparty%2Fdracut.git prepare init to mount devtmpfs instead of tmpfs on /dev --- diff --git a/modules.d/99base/init b/modules.d/99base/init index 113b130ee..2acf27470 100755 --- a/modules.d/99base/init +++ b/modules.d/99base/init @@ -27,15 +27,20 @@ mknod /dev/null c 1 3 # mount some important things mount -t proc /proc /proc >/dev/null 2>&1 mount -t sysfs /sys /sys >/dev/null 2>&1 -mount -t tmpfs -omode=0755 udev /dev >/dev/null 2>&1 -getarg rdinitdebug && set -x -# Make some basic devices first, let udev handle the rest -mknod /dev/null c 1 3 -mknod /dev/ptmx c 5 2 -mknod /dev/console c 5 1 -mknod /dev/kmsg c 1 11 +if [ ! -c /dev/ptmx ]; then + if mount -t devtmpfs -omode=0755 udev /dev >/dev/null 2>&1; then + :; else + mount -t tmpfs -omode=0755 udev /dev >/dev/null 2>&1 + # Make some basic devices first, let udev handle the rest + mknod /dev/null c 1 3 + mknod /dev/ptmx c 5 2 + mknod /dev/console c 5 1 + mknod /dev/kmsg c 1 11 + fi +fi +getarg rdinitdebug && set -x mkdir /dev/shm mkdir /dev/pts mount -t devpts -o gid=5,mode=620 /dev/pts /dev/pts >/dev/null 2>&1