]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
busybox-inittab: fix console handling
authorRoss Burton <ross.burton@arm.com>
Tue, 10 Oct 2023 12:54:57 +0000 (13:54 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 11 Oct 2023 08:42:01 +0000 (09:42 +0100)
commit71202782a06ed1f0a17e00072b74b21195f2f5f9
treea1370e9fe8cad87e28f4ea43553763f506c8dd37
parent8a1060952f8b6956acf747f3853401ac8a981fc3
busybox-inittab: fix console handling

A testing failure meant that the inittab changes made in 6c65544 didn't
actually work.

A copy-paste problems meant that start_getty was being invoked instead
of getty, but start_getty is sysvinit-inittab-specific. Revert this
inittab to calling getty directly.

Remove the terminal type, this wasn't specified in the original inittab.

Busybox's init has non-standard behaviour for the inittab's ID field.
With SysV this is a four-character identifier and nothing more, but with
busybox init this is the controlling terminal (minus /dev).  If the
terminal doesn't exist then busybox doesn't gracefully handle the
failure but instead repeatedly fails to spawn.

As getty will immediately issue a setsid() this isn't needed for getty
entries, so the ID can be empty and ttyrun does the terminal detection.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/busybox/busybox-inittab_1.36.1.bb