]> code.ossystems Code Review - openembedded-core.git/commit
sysvinit-inittab: support non-busybox-getty on serial consoles
authorAndré Draszik <andre.draszik@jci.com>
Mon, 11 Feb 2019 11:21:06 +0000 (11:21 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 12 Feb 2019 14:04:24 +0000 (14:04 +0000)
commit37be77565d323fc543427ad47399996119f59ab1
treefb61f971ac7c7b8bff0d3e2772d620f1145c5119
parent2dbbf598192ae2b3aa488df042f56aa6c6634a00
sysvinit-inittab: support non-busybox-getty on serial consoles

Busybox' getty has code to try to make itself a session leader,
whereas util-linux' agetty doesn't. It expects this to happen
from outside.
When getty is not a session leader, many things don't work on
the serial console, e.g. setting the terminal process group,
job control doesn't work, etc.

Executing image tests also fails with AssertionErrors, because
    Feb  5 16:12:55 qemuarm getty[590]: /dev/ttyAMA1: cannot get controlling tty: Operation not permitted
    Feb  5 16:12:55 qemuarm getty[590]: /dev/ttyAMA1: cannot set process group: Inappropriate ioctl for device

Update the start_getty script to invoke getty via the setsid
utility if needed, i.e. if /sbin/getty is not busybox getty.

[YOCTO #13058]

Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/sysvinit/sysvinit-inittab/start_getty
meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb