aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--defaults/linuxrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/defaults/linuxrc b/defaults/linuxrc
index 2d87c41..01f8328 100644
--- a/defaults/linuxrc
+++ b/defaults/linuxrc
@@ -790,7 +790,9 @@ do
# else not a good root and start over.
if [ "${mountret}" = '0' ]
then
- if [ -d ${NEW_ROOT}/dev -a -x "${NEW_ROOT}${REAL_INIT:-/sbin/init}" ] || [ "${REAL_ROOT}" = "/dev/nfs" ]
+ if [ -x "${NEW_ROOT}${REAL_INIT:-/sbin/init}" ] \
+ || [ -L "${NEW_ROOT}${REAL_INIT:-/sbin/init}" -o -x "${NEW_ROOT}/bin/sh" ] \
+ || [ "${REAL_ROOT}" = "/dev/nfs" ]
then
break
else