manager: Fix HW watchdog when systemd starts before driver loaded
When manager_{set|override}_watchdog is called, set the watchdog timeout regardless of whether the hardware watchdog was successfully initialized. If the watchdog was requested but could not be initialized, then instead of pinging it, attempt to initialize it again. This ensures that the hardware watchdog is initialized even if the kernel module for it isn't loaded when systemd starts (which is quite likely, unless it is compiled in). This builds on work by @danc86 in https://github.com/systemd/systemd/pull/17460, but fixes the issue of not updating the watchdog timeout with the actual value from the hardware. Fixes https://github.com/systemd/systemd/issues/17838 Co-authored-by:Dan Callaghan <djc@djc.id.au> Co-authored-by:
Michael Marley <michael@michaelmarley.com>
Loading
Please register or sign in to comment