Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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 <dreisner@archlinux.org>
  • Loading branch information...
commit 6ad8b6d7795a9701f2f5bcca3e1d685598f7102b 1 parent 4578e93
Gerardo Exequiel Pozzi authored falconindy committed
Showing with 1 addition and 2 deletions.
  1. +1 −2  init
View
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
devtmpfs_mounted=1
else
mount -n -t tmpfs udev /dev -o mode=0755,size=10M,nosuid
Please sign in to comment.
Something went wrong with that request. Please try again.