summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2011-11-15 23:51:39 +0100
committerDave Reisner <dreisner@archlinux.org>2011-11-16 02:16:20 +0100
commit6ad8b6d7795a9701f2f5bcca3e1d685598f7102b (patch)
tree5a4a123670531457b063123c51be3aeb372adec8 /init
parent4578e9394c9dda73da418928f9a4658364effa59 (diff)
downloadmkinitcpio-6ad8b6d7795a9701f2f5bcca3e1d685598f7102b.tar.gz
mkinitcpio-6ad8b6d7795a9701f2f5bcca3e1d685598f7102b.tar.xz
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>
Diffstat (limited to 'init')
-rw-r--r--init3
1 files changed, 1 insertions, 2 deletions
diff --git a/init b/init
index aa296c7..8fd467c 100644
--- a/init
+++ b/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