[arch-projects] [PATCH] init: Remove grep usage
Gerardo Exequiel Pozzi
vmlinuz386 at yahoo.com.ar
Tue Nov 15 17:51:39 EST 2011
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.
---
init | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/init b/init
index c185375..25a51eb 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
--
1.7.7.3
More information about the arch-projects
mailing list