git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@403
67a159dc-881f-0410-a524-
ba9dfbe2cb84
real_init\=*)
REAL_INIT=`parse_opt "${x}"`
;;
+ init_opts\=*)
+ INIT_OPTS=`parse_opt "${x}"`
+ ;;
# Livecd options
cdroot)
CDROOT=1
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