Changed real_init to init_opts to be more accurate, and added a proper real_init...
authorChris Gianelloni <wolf31o2@gentoo.org>
Fri, 9 Jun 2006 13:43:17 +0000 (13:43 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Fri, 9 Jun 2006 13:43:17 +0000 (13:43 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@403 67a159dc-881f-0410-a524-ba9dfbe2cb84

generic/linuxrc

index 7e2975df97282c5a47c9bfcbeb312212059f4845..f83d1e072122e03a9101466e5e52a7d3f982c54b 100644 (file)
@@ -63,6 +63,9 @@ do
                real_init\=*)
                        REAL_INIT=`parse_opt "${x}"`
                ;;
+               init_opts\=*)
+                       INIT_OPTS=`parse_opt "${x}"`
+               ;;
                # Livecd options
                cdroot)
                        CDROOT=1
@@ -687,7 +690,7 @@ then
        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 ${REAL_INIT}
+               exec ${REAL_INIT:-/sbin/init} ${INIT_OPTS}
 EOF
 elif [ "$0" = '/init' ]
 then