projects
/
platform
/
upstream
/
dracut.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
970e646
)
beautified devtmpfs mount
0.3
author
Harald Hoyer
<harald@redhat.com>
Thu, 2 Jul 2009 09:59:46 +0000
(11:59 +0200)
committer
Harald Hoyer
<harald@redhat.com>
Thu, 2 Jul 2009 09:59:46 +0000
(11:59 +0200)
modules.d/99base/init
patch
|
blob
|
history
diff --git
a/modules.d/99base/init
b/modules.d/99base/init
index 0e29d7617f12e584f8daa1be45674f5d07d01f07..701706de4ee26f6380b21515a69650fece9f2659 100755
(executable)
--- 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