Add getty to inittab for login on Xen serial console.
PATCH 1/1 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.
--- recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend new file +7 -0
@@ -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 +}
Signature · 1 line
1.7.10.4
Quoted 3 lines · Philip Tricca
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.
merged (with a minor tweak to the shortlog).
Bruce
Quoted 27 lines
Signed-off-by Philip Tricca <[email protected]>--- recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappendrecipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend new file +7
-1@@ -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 +} --1.7.10.4
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization
Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"
Thanks, handy!
Quoted 50 lines · Bruce Ashfield
Quoted 3 lines · Philip Tricca
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.
merged (with a minor tweak to the shortlog).
Bruce
Quoted 6 lines
Signed-off-by Philip Tricca <[email protected]>--- recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
Review
Quoted 2 lines
(quoted diff) +0
-0b/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend line 5
Quoted 10 lines
new file mode 100644
index 0000000..2edbedfrecipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend new file +5
-0@@ -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
Quoted 9 lines
recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend new file +2
-1+ fi +} --1.7.10.4
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end"
_______________________________________________
meta-virtualization mailing list [email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization
Quoted 1 line · Chris Patterson
Thanks, handy!
Similarly handy if you're building Xen guest VMs is throwing
USE_VT = "0"SERIAL_CONSOLES = ""
into one of your conf files (I'm using a distro conf) to keep your machine config from putting a physical serial device that your VM won't have in the inittab. Messages about init sleeping for 30 seconds on account of gettys restarting too quickly get old fast.
- Philip
Quoted 60 lines
On Thu, Nov 7, 2013 at 3:32 PM, Bruce Ashfield <[email protected] <mailto:[email protected]>> wrote:
On Tue, Nov 5, 2013 at 9:54 PM, Philip Tricca <[email protected] <mailto:[email protected]>> wrote: > 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. merged (with a minor tweak to the shortlog). Bruce > > Signed-off-by: Philip Tricca <[email protected] <mailto:[email protected]>> > --- > recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend | 7 +++++++ > 1 file changed, 7 insertions(+) > create mode 100644 recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend > > diff --git a/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend b/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend > new file mode 100644 > index 0000000..2edbedf > --- /dev/null > +++ b/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend > @@ -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 > +} > -- > 1.7.10.4 > > _______________________________________________ > meta-virtualization mailing list > [email protected] <mailto:[email protected]> > https://lists.yoctoproject.org/listinfo/meta-virtualization -- "Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end" _______________________________________________ meta-virtualization mailing list [email protected] <mailto:[email protected]> https://lists.yoctoproject.org/listinfo/meta-virtualization