]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
initramfs-framework: support force reboot if fatal error occurs
authorIgor Opaniuk <igor.opaniuk@foundries.io>
Tue, 21 May 2024 13:52:45 +0000 (15:52 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 28 May 2024 08:38:20 +0000 (09:38 +0100)
commit6990855e91f2d5891e95995f3f4a1c3b5891c619
tree858f718de6efb1b6a5b27c6bf849559cbae80514
parent3ed0a2fab5dbc37dd352ead8846da6aae5de5c20
initramfs-framework: support force reboot if fatal error occurs

Add support for force reboot in the case of fatal error. In some cases
it's better to force reboot (especially when hw watchdog is not
engaged) instead of waiting for 3600 seconds, for example in order to
trigger some recovery procedure during next boot procedure
(after unsuccessful OTA update etc).

ALso fix indendation issues in the fatal() function implementation.

Signed-off-by: Igor Opaniuk <igor.opaniuk@foundries.io>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/initrdscripts/initramfs-framework/init