diff options
author | Bertrand Marquis <bertrand.marquis@arm.com> | 2022-08-11 10:47:21 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-08-21 22:51:41 +0100 |
commit | 760cdeee7653bba30e1511f84b9a067e062fc7e9 (patch) | |
tree | d0597e0c3b78419d0063d865de360943824a4215 /meta/recipes-core | |
parent | 79f85d85cafc5c75b082e12eda34b39b930a47ea (diff) | |
download | poky-760cdeee7653bba30e1511f84b9a067e062fc7e9.tar.gz |
sysvinit-inittab/start_getty: Fix respawn too fast
When an entry in /dev does not exist, start_getty is returning directly.
As it is started from init in a respawn mode, it will loop infinitely.
In this case add a sleep inside start_getty to prevent the "Respawning
too fast" message popping up every 5 minutes.
This case is happening quite often when the system is started as an
hypervisor guest as the standard serial line is usually taken by it and
removed from the configuration.
This was triggered quite often running linux as dom0 on top of Xen on
arm as the serial line is taken by Xen and removed from the device tree.
Use the opportunity to replace one tab with spaces as the rest of the
file is using spaces.
(From OE-Core rev: 5a704d0ff4d95b6d3a67b80a0db2be66253e7d61)
Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/sysvinit/sysvinit-inittab/start_getty | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-core/sysvinit/sysvinit-inittab/start_getty b/meta/recipes-core/sysvinit/sysvinit-inittab/start_getty index 7106fb72fb..f60409eae3 100644 --- a/meta/recipes-core/sysvinit/sysvinit-inittab/start_getty +++ b/meta/recipes-core/sysvinit/sysvinit-inittab/start_getty | |||
@@ -15,4 +15,7 @@ esac | |||
15 | 15 | ||
16 | if [ -e /sys/class/tty/$2 -a -c /dev/$2 ]; then | 16 | if [ -e /sys/class/tty/$2 -a -c /dev/$2 ]; then |
17 | ${setsid:-} ${getty} ${options:-} -L $1 $2 $3 | 17 | ${setsid:-} ${getty} ${options:-} -L $1 $2 $3 |
18 | else | ||
19 | # Prevent respawning to fast error if /dev entry does not exist | ||
20 | sleep 1000 | ||
18 | fi | 21 | fi |