diff options
author | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2011-11-15 23:51:39 +0100 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2011-11-16 02:16:20 +0100 |
commit | 6ad8b6d7795a9701f2f5bcca3e1d685598f7102b (patch) | |
tree | 5a4a123670531457b063123c51be3aeb372adec8 /init | |
parent | 4578e9394c9dda73da418928f9a4658364effa59 (diff) | |
download | mkinitcpio-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-- | init | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 |