From: Harald Hoyer Date: Thu, 2 Jul 2009 09:59:46 +0000 (+0200) Subject: beautified devtmpfs mount X-Git-Tag: 0.3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e0364f95bc2812eddb711e5f1b171a48942de884;p=thirdparty%2Fdracut.git beautified devtmpfs mount --- diff --git a/modules.d/99base/init b/modules.d/99base/init index 0e29d7617..701706de4 100755 --- a/modules.d/99base/init +++ b/modules.d/99base/init @@ -52,8 +52,9 @@ mount -t proc /proc /proc >/dev/null 2>&1 mount -t sysfs /sys /sys >/dev/null 2>&1 if [ ! -c /dev/ptmx ]; then - if mount -t devtmpfs -omode=0755 udev /dev >/dev/null 2>&1; then - :; else + # try to mount devtmpfs + if ! mount -t devtmpfs -omode=0755 udev /dev >/dev/null 2>&1; then + # if it failed fall back to normal tmpfs 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