[PATCH] startup: attempt poweroff if no shell and nothing to do
Sascha Hauer
s.hauer at pengutronix.de
Mon Jan 5 23:43:53 PST 2026
On Mon, 05 Jan 2026 09:21:14 +0100, Ahmad Fatoum wrote:
> For testing noshell configuration in virtual machines and sandbox,
> it's useful if the process would just exit instead of hanging
> indefinitely.
>
> This is usually handled with panic(), which can be customized to
> poweroff or reset, but in this case a panic with CONFIG_PANIC_RESET=y
> would just lead to a reboot loop.
>
> [...]
Applied, thanks!
[1/1] startup: attempt poweroff if no shell and nothing to do
https://git.pengutronix.de/cgit/barebox/commit/?id=09663fb38ffd (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list