From 3bb6c62bd9bb7f9a4c88b8f030ec5723432cb141 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Mon, 5 Aug 2013 22:52:28 +0200 Subject: [PATCH] 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 --- defaults/linuxrc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/defaults/linuxrc b/defaults/linuxrc index 68e6817..9967ffa 100644 --- a/defaults/linuxrc +++ b/defaults/linuxrc @@ -500,14 +500,7 @@ do # 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 + break else bad_msg "Could not mount specified ROOT, try again" got_good_root=0