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