Commit Graph

7 Commits

Author SHA1 Message Date
Jaewon Lee
f1e768dfdf sysvinit-inittab_xen: Using getty wrapper to minimize console messages
Previously the following message was printed on the console every 5
minutes:
INIT: Id "X0" respawning too fast: disabled for 5 minutes

Installing and using a getty-wrapper that will check for the hypervisor
(hvc0) device and if not present, will call sleep

Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com>
Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2020-03-30 10:37:05 -04:00
Bruce Ashfield
abcdb5841d Revert "sysvinit-inittab_xen.inc: fix hypervisor console"
Temporarily reverting this commit, since it has broken some Xen boot
usecases. We'll revisit this in the future.

This reverts commit 50cdecca7b.
2019-04-12 10:53:56 -04:00
Manjukumar Matha
50cdecca7b 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.

Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-03-24 23:14:04 -04:00
Armin Kuster
7d2ee2dfa2 sysvinit: fix DISTRO decode
the yocto-check-layer failed with:

      Dependency on variable DISTRO_FEATURES_LIBC was added
      Variable do_install value changed:
      @@ -32,3 +32,7 @@
               done
               echo "" >> ${D}${sysconfdir}/inittab
           fi
      +	if echo "${DISTRO_FEATURES}" | grep -q 'xen'; then
      +		echo "" >> ${D}${sysconfdir}/inittab
      +		echo "X0:12345:respawn:/sbin/getty 115200 hvc0" >> ${D}${sysconfdir}/inittab
      +	fi

used idea from meta-selinux

Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2018-04-17 13:57:28 -04:00
Mark Asselstine
2522803277 bbappend: switch to use a wildcard beyond major version
Using a wildcard will simplify things when using meta-virtualization
against different yocto or oe branches and prevent having to make
future updates to keep in step with package uprevs.

The changes found within these bbappend tend to be generic and
non-version specific, thus safe for 'porting' via wildcard.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2015-09-08 09:59:36 -04:00
Riku Voipio
8e7d3cc8ae fix inittab install when Xen not in DISTRO_FEATURES
With the latest patch, OE builds may file like:

https://ci.linaro.org/jenkins/job/openembedded-armv7ab-rootfs/gcc_version=4.8,label=oe_persistent_cloud,rootfs=minimal/127/consoleText

By having the "failing" grep within the if block, set -e
in shell code will not bite configurations where meta-virtualization
is included but xen is not in DISTRO_FEATURES.

Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
2013-11-13 12:52:46 -05:00
Philip Tricca
38a09562ec 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>
2013-11-07 15:31:05 -05:00