]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
sysvinit-inittab/start_getty: Fix respawn too fast
authorBertrand Marquis <bertrand.marquis@arm.com>
Thu, 11 Aug 2022 09:47:21 +0000 (10:47 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 21 Aug 2022 21:51:38 +0000 (22:51 +0100)
commit5a704d0ff4d95b6d3a67b80a0db2be66253e7d61
tree293bf94d36a9d1f505135238da4b2a96cc10ebf8
parent9f2dbfc51ef2faf1b6154856adb69ca9f764573b
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.

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>
meta/recipes-core/sysvinit/sysvinit-inittab/start_getty