xen: Add getty to inittab for login on Xen serial console.

It's not pretty but the mechanisms in sysvinit-inittab assume the
console device name is tty*. The Xen console device doesn't meet
this criteria.

Signed-off-by: Philip Tricca <flihp@twobit.us>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
This commit is contained in:
Philip Tricca 2013-11-06 02:54:51 +00:00 committed by Bruce Ashfield
parent 6c021c05d0
commit 38a09562ec

View File

@ -0,0 +1,7 @@
do_install_append() {
echo "${DISTRO_FEATURES}" | grep -q 'xen'
if [ $? -eq 0 ]; then
echo "" >> ${D}${sysconfdir}/inittab
echo "X0:12345:respawn:/sbin/getty 115200 hvc0" >> ${D}${sysconfdir}/inittab
fi
}