From: Victor Lowther Date: Thu, 12 Mar 2009 11:30:14 +0000 (-0500) Subject: do not use grep to test if sysroot is mounted X-Git-Tag: 0.1~282^2~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=37dcb40001a992df19f88ca75f51a32cf3976adf;p=thirdparty%2Fdracut.git do not use grep to test if sysroot is mounted --- diff --git a/modules.d/99base/init b/modules.d/99base/init index 8f0ece16a..39dd21aa1 100755 --- a/modules.d/99base/init +++ b/modules.d/99base/init @@ -107,7 +107,7 @@ getarg 'break=mount' && emergency_shell # be sourced any number of times. As soon as one suceeds, no more are sourced. i=0 while :; do - grep -q '/sysroot' /proc/mounts && break; + [ -d "$NEWROOT/proc" ] && break; for f in /mount/*.sh; do [ -x "$f" ] && . "$f";