]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
busybox-inittab: add -L flag for getty
authorRaphael Schlarb <r.schlarb@instar.de>
Wed, 6 Aug 2025 14:20:19 +0000 (16:20 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 11 Aug 2025 17:03:13 +0000 (18:03 +0100)
The -L (force local line) flag is almost always required for serial consoles,
otherwise the terminal might hang.

In sysvinit-inittab this flag is added through start_getty.
Adding it here makes things more consistent.

This was likely just overlooked when start_getty was replaced
by getty in commit 7120278.

Signed-off-by: Raphael Schlarb <r.schlarb@instar.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
meta/recipes-core/busybox/busybox-inittab_1.37.0.bb

index 5e6c44a2e33e3cd70d17ac1d50c26b0845a27c29..8cc907726fe04328fe3ae8c1646c955c386edcc0 100644 (file)
@@ -22,7 +22,7 @@ do_install() {
         speed=$(echo $s | cut -d\; -f 1)
         device=$(echo $s | cut -d\; -f 2)
 
-        echo "$device::respawn:${sbindir}/ttyrun $device ${base_sbindir}/getty $speed $device" >> ${D}${sysconfdir}/inittab
+        echo "$device::respawn:${sbindir}/ttyrun $device ${base_sbindir}/getty -L $speed $device" >> ${D}${sysconfdir}/inittab
     done
 
        if [ "${USE_VT}" = "1" ]; then