linuxrc: do not look for ${REAL_INIT} inside the mounted partition

If ${REAL_INIT} is on a separate partition, the check will erroneously
fail. Don't try to be too smart and fix bug #479730
master
Fabio Erculiani 12 years ago
parent af1f319509
commit 3bb6c62bd9

@ -499,15 +499,8 @@ do
# If mount is successful break out of the loop
# else not a good root and start over.
if [ "$?" = '0' ]
then
if [ -d ${NEW_ROOT}/dev -a -x "${NEW_ROOT}${REAL_INIT:-/sbin/init}" ] || [ "${REAL_ROOT}" = "/dev/nfs" ]
then
break
else
bad_msg "The filesystem mounted at ${REAL_ROOT} does not appear to be a valid /, try again"
got_good_root=0
REAL_ROOT=''
fi
else
bad_msg "Could not mount specified ROOT, try again"
got_good_root=0

Loading…
Cancel
Save