Skip to contentSkip to conversation

sysvinit-inittab_xen.inc: fix hypervisor console

PATCH In review Manjukumar Matha 2 participants 2 messages Mar 23, 2019 – Mar 25, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sysvinit-inittab_xen.inc: fix hypervisor console

This commit switches over to using existing SERIAL_CONSOLES mechanism for hvc0 inittab entry generation. This then results in /bin/start_getty wrapper being used, which avoids the getty failure seen when running a xen capable rootfs natively on linux.

---
 recipes-core/sysvinit/sysvinit-inittab_xen.inc | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
recipes-core/sysvinit/sysvinit-inittab_xen.inc +1 -4
index 9d0589c..4d56806 100644
@@ -1,4 +1 @@
-do_install_append() {
-                echo "" >> ${D}${sysconfdir}/inittab
-                echo "X0:12345:respawn:/sbin/getty 115200 hvc0" >> ${D}${sysconfdir}/inittab
-}
+SERIAL_CONSOLES_append = "${@bb.utils.contains('DISTRO_FEATURES', 'xen', ' 115200;hvc0', '', d)}"
Signature · 1 line
2.7.4
#1 lore raw
Quoted 5 lines · Manjukumar Matha

This commit switches over to using existing SERIAL_CONSOLES mechanism for hvc0 inittab entry generation. This then results in /bin/start_getty wrapper being used, which avoids the getty failure seen when running a xen capable rootfs natively on linux.

merged.

Bruce

Quoted 24 lines
---
 recipes-core/sysvinit/sysvinit-inittab_xen.inc | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
recipes-core/sysvinit/sysvinit-inittab_xen.inc +1 -5
index 9d0589c..4d56806 100644
@@ -1,4 +1 @@
-do_install_append() {
-                echo "" >> ${D}${sysconfdir}/inittab
-                echo "X0:12345:respawn:/sbin/getty 115200 hvc0" >> ${D}${sysconfdir}/inittab
-}
+SERIAL_CONSOLES_append = "${@bb.utils.contains('DISTRO_FEATURES', 'xen', ' 115200;hvc0', '', d)}"
--

2.7.4

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II