# Distributed under the GPL v2
# $Id$
+ 03 Oct 2012; Dustin Frisch <dustin.frisch@gmail.com> defaults/linuxrc:
+ With boot parameter real_init=/foo look for ${NEW_ROOT}/foo, not
+ ${NEW_ROOT}/sbin/init (bug #437080)
+
23 Sep 2012; Sebastian Pipping <sping@gentoo.org> gen_initramfs.sh:
Append e2fsck and mke2fs to initramfs. Original patch by Rick Farina
# else not a good root and start over.
if [ "$?" = '0' ]
then
- if [ -d ${NEW_ROOT}/dev -a -x ${NEW_ROOT}/sbin/init ] || [ "${REAL_ROOT}" = "/dev/nfs" ]
+ if [ -d ${NEW_ROOT}/dev -a -x "${NEW_ROOT}${REAL_INIT:-/sbin/init}" ] || [ "${REAL_ROOT}" = "/dev/nfs" ]
then
break
else