mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 12:50:22 +02:00

The base inittab recipe is creating inittab entries for consoles listed in SERIAL_CONSOLES. For qemu, this contains "115200,hvc0" so an entry is created in inittab for it. Prevent to create a second entry if hvc0 is present in SERIAL_CONSOLES. On qemuarm, this solves issues with the console when starting on top of Xen as dom0. Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
11 lines
338 B
PHP
11 lines
338 B
PHP
|
|
|
|
do_install:append() {
|
|
# if SERIAL_CONSOLES contains hvc0, it is already added in inittab so do
|
|
# not add it twice
|
|
if echo "${SERIAL_CONSOLES}" | grep -vq "hvc0"; then
|
|
echo "" >> ${D}${sysconfdir}/inittab
|
|
echo "X0:12345:respawn:${base_sbindir}/getty-wrapper 115200 hvc0" >> ${D}${sysconfdir}/inittab
|
|
fi
|
|
}
|