[PATCH] boot: fix systemd watchdog command line argument
Ahmad Fatoum
a.fatoum at pengutronix.de
Thu Feb 20 04:06:53 PST 2025
On 20.02.25 10:17, Sascha Hauer wrote:
> The kernel command line option to specify the watchdog to use is
> "systemd.watchdog_device" as specified in [1], not
> "systemd.watchdog-device"
>
> [1] https://www.freedesktop.org/software/systemd/man/latest/kernel-command-line.html#systemd.watchdog_sec=
>
> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
Please also include the typo fix in the common/Kconfig help text for
CONFIG_SYSTEMD_OF_WATCHDOG.
With that squashed:
Reviewed-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
I could swear I have tested this with two watchdogs back then...
Anyways, I have submitted a fix to the systemd documentation here:
https://github.com/systemd/systemd/pull/36453
Thanks,
Ahmad
> ---
> common/oftree.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/common/oftree.c b/common/oftree.c
> index 4afe955719..2ebde791c7 100644
> --- a/common/oftree.c
> +++ b/common/oftree.c
> @@ -172,7 +172,7 @@ static void watchdog_build_bootargs(struct watchdog *watchdog, struct device_nod
> if (alias_id < 0)
> return;
>
> - buf = basprintf("systemd.watchdog-device=/dev/watchdog%d", alias_id);
> + buf = basprintf("systemd.watchdog_device=/dev/watchdog%d", alias_id);
> if (!buf)
> return;
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list