Added a patch allowing arguments to be passed to init by real_init=...; this closes...
authorTim Yamin <plasmaroo@gentoo.org>
Sat, 3 Jul 2004 20:12:58 +0000 (20:12 +0000)
committerTim Yamin <plasmaroo@gentoo.org>
Sat, 3 Jul 2004 20:12:58 +0000 (20:12 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@109 67a159dc-881f-0410-a524-ba9dfbe2cb84

generic/linuxrc

index 5c3e307f35d5aa9b9ac5c14fe9d68a3f275a9391..5d702a2e01740783a0434975e1d6031473efc166 100644 (file)
@@ -45,6 +45,9 @@ do
                looptype\=*)
                        LOOPTYPE=`parse_opt "${x}"`
                ;;
+               real_init\=*)
+                       REAL_INIT=`parse_opt "${x}"`
+               ;;
                *)
                ;;
        esac
@@ -351,7 +354,7 @@ echo '.'
 exec chroot . /bin/sh <<- EOF
        umount /tmp/.initrd || echo "*: Failed to unmount the initrd!"
        /sbin/blockdev --flushbufs /dev/ram0 >/dev/null 2>&1
-       exec /sbin/init
+       exec /sbin/init ${REAL_INIT}
 EOF
 
 echo 'A fatal error has probably occured since /sbin/init did not'