Check for file from real_init=FILE rather than /sbin/init (bug #437080)

cleanup-cruft
Dustin Frisch 12 years ago committed by Sebastian Pipping
parent 255c8e8498
commit d89f3d59e8

@ -5,6 +5,10 @@
# Distributed under the GPL v2 # Distributed under the GPL v2
# $Id$ # $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: 23 Sep 2012; Sebastian Pipping <sping@gentoo.org> gen_initramfs.sh:
Append e2fsck and mke2fs to initramfs. Original patch by Rick Farina Append e2fsck and mke2fs to initramfs. Original patch by Rick Farina

@ -623,7 +623,7 @@ do
# else not a good root and start over. # else not a good root and start over.
if [ "$?" = '0' ] if [ "$?" = '0' ]
then 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 then
break break
else else

Loading…
Cancel
Save