]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
busybox: use ttyrun to run getty only if the terminal exists
authorRoss Burton <ross.burton@arm.com>
Fri, 6 Oct 2023 11:22:01 +0000 (12:22 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 9 Oct 2023 14:50:43 +0000 (15:50 +0100)
commit6c655441ff5cd0d8877891ff37f8cfa983363a2a
treebfdd1dba1754efe9b55e6c0744b343ca0620548b
parent8e48297621311116d3edd7e3aa0de1b8ef2431b1
busybox: use ttyrun to run getty only if the terminal exists

Wrap calls to start_getty with ttyrun, so that getty isn't started if
the device doesn't exist.  As we know start_getty is only called when
the device exists we can remove the partial workaround for this problem
in that scripts too.

This neatly obsoletes SERIAL_CONSOLES_CHECK, whose sole purpose was to
check what terminals are present at boot and rewrite inittab.  Notably,
this meant that SERIAL_CONSOLES_CHECK made using a read-only rootfs
impossible.

(From OE-Core rev: 950ecaabc04836efc346be0ac7e0331e2378872b)

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