summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2009-07-02 11:59:46 +0200
committerHarald Hoyer <harald@redhat.com>2009-07-02 11:59:46 +0200
commite0364f95bc2812eddb711e5f1b171a48942de884 (patch)
treeb13b1a2fb2c3990e9d12a8eb3c9c108fc3efdb61
parent970e646b005d130ad7ad13e835388a53e195e49a (diff)
beautified devtmpfs mount0.3
-rwxr-xr-xmodules.d/99base/init5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules.d/99base/init b/modules.d/99base/init
index 0e29d76..701706d 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