modules.d/99base/init.sh: check for a valid init in case INIT is a symlink.

Obviously we have to test if it's executable with the PATH to NEWROOT.
master
Juan RP 2012-05-28 16:14:35 +02:00 committed by Harald Hoyer
parent 982d59afea
commit cfede42fc3
1 changed files with 1 additions and 1 deletions

View File

@ -237,7 +237,7 @@ for i in "$(getarg real_init=)" "$(getarg init=)" $(getargs rd.distroinit=) /sbi
[ -n "$i" ] || continue

__p=$(readlink -f "${NEWROOT}/${i}")
if [ -x "$__p" ]; then
if [ -x "$__p" -o -x "${NEWROOT}/${__p}" ]; then
INIT="$i"
break
fi