浏览代码

busybox-inittab: add -L flag for getty

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.

(From OE-Core rev: 2a9a5b275f067585275e53931ae5f0548bfaac53)

Signed-off-by: Raphael Schlarb <r.schlarb@instar.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Raphael Schlarb 2 月之前
父节点
当前提交
ff5f922004
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      meta/recipes-core/busybox/busybox-inittab_1.37.0.bb

+ 1 - 1
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