base/init: honor old "real_init="
authorHarald Hoyer <harald@redhat.com>
Fri, 19 Nov 2010 12:37:17 +0000 (13:37 +0100)
committerHarald Hoyer <harald@redhat.com>
Fri, 19 Nov 2010 12:37:17 +0000 (13:37 +0100)
modules.d/99base/init

index f79d102..6557cf4 100755 (executable)
@@ -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