diff mbox series

[2/2] busybox-inittab: add -L flag for getty

Message ID 20250806142019.3453612-2-r.schlarb@instar.de
State New
Headers show
Series [1/2] busybox-inittab: remove unused label variable | expand

Commit Message

Raphael Schlarb Aug. 6, 2025, 2:20 p.m. UTC
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>
---
 meta/recipes-core/busybox/busybox-inittab_1.37.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-core/busybox/busybox-inittab_1.37.0.bb b/meta/recipes-core/busybox/busybox-inittab_1.37.0.bb
index 5e6c44a2e3..8cc907726f 100644
--- a/meta/recipes-core/busybox/busybox-inittab_1.37.0.bb
+++ b/meta/recipes-core/busybox/busybox-inittab_1.37.0.bb
@@ -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