Skip to content

Commit

Permalink
init: Remove grep usage
Browse files Browse the repository at this point in the history
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 <dreisner@archlinux.org>
  • Loading branch information
Gerardo Exequiel Pozzi authored and falconindy committed Nov 16, 2011
1 parent 4578e93 commit 6ad8b6d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions init
Expand Up @@ -8,8 +8,7 @@ PATH=/usr/sbin:/usr/bin:/sbin:/bin


mount -t proc proc /proc -o nosuid,noexec,nodev mount -t proc proc /proc -o nosuid,noexec,nodev
mount -t sysfs sys /sys -o nosuid,noexec,nodev mount -t sysfs sys /sys -o nosuid,noexec,nodev
if grep -q devtmpfs /proc/filesystems; then if mount -n -t devtmpfs udev /dev -o mode=0755,size=10M,nosuid; then
mount -n -t devtmpfs udev /dev -o mode=0755,size=10M,nosuid
devtmpfs_mounted=1 devtmpfs_mounted=1
else else
mount -n -t tmpfs udev /dev -o mode=0755,size=10M,nosuid mount -n -t tmpfs udev /dev -o mode=0755,size=10M,nosuid
Expand Down

0 comments on commit 6ad8b6d

Please sign in to comment.