From 37dcb40001a992df19f88ca75f51a32cf3976adf Mon Sep 17 00:00:00 2001 From: Victor Lowther Date: Thu, 12 Mar 2009 06:30:14 -0500 Subject: [PATCH] do not use grep to test if sysroot is mounted --- modules.d/99base/init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- 2.47.3