Browse files

init: Remove grep usage

The only downside is on systems where devtmpfs is not enabled
will see and error message, anyway /dev will be tmpfs as fallback like now.

Signed-off-by: Dave Reisner <>
  • Loading branch information...
1 parent 4578e93 commit 6ad8b6d7795a9701f2f5bcca3e1d685598f7102b Gerardo Exequiel Pozzi committed with falconindy Nov 15, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 init
3 init
@@ -8,8 +8,7 @@ PATH=/usr/sbin:/usr/bin:/sbin:/bin
mount -t proc proc /proc -o nosuid,noexec,nodev
mount -t sysfs sys /sys -o nosuid,noexec,nodev
-if grep -q devtmpfs /proc/filesystems; then
- mount -n -t devtmpfs udev /dev -o mode=0755,size=10M,nosuid
+if mount -n -t devtmpfs udev /dev -o mode=0755,size=10M,nosuid; then
mount -n -t tmpfs udev /dev -o mode=0755,size=10M,nosuid

0 comments on commit 6ad8b6d

Please sign in to comment.