From: Harald Hoyer Date: Fri, 19 Nov 2010 12:37:17 +0000 (+0100) Subject: base/init: honor old "real_init=" X-Git-Tag: 008~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=770b796e52f2b84bcca0c78ddc9975d6b91e41de;p=thirdparty%2Fdracut.git base/init: honor old "real_init=" --- diff --git a/modules.d/99base/init b/modules.d/99base/init index f79d102ac..6557cf4f8 100755 --- a/modules.d/99base/init +++ b/modules.d/99base/init @@ -251,7 +251,7 @@ source_all pre-pivot # by the time we get here, the root filesystem should be mounted. # Try to find init. -for i in "$(getarg init=)" /sbin/init /etc/init /init /bin/sh; do +for i in "$(getarg real_init=)" "$(getarg init=)" /sbin/init /etc/init /init /bin/sh; do [ -n "$i" ] || continue [ -d "$NEWROOT$i" ] || [ -L "$NEWROOT$i" -o -x "$NEWROOT$i" ] && { INIT="$i"; break; } done