Repository navigation
Tags
Tags
pkg/watchdog: update watchdog daemon to 5.16
Watchdog 5.15 measures both the touch-file age and the error retry
timer with the wall clock (time(NULL) - st_mtime). Devices without a
battery-backed RTC, or with an RTC that does not keep real time, boot
with the clock in 1970 and step it forward when chrony reaches NTP.
After that step every touch file looks decades old, and any retry
window that was already open expires at once ("Retry timed-out at
1794394698 seconds"). The device is rebooted even though all agents
are healthy.
On EVE-k this hits baseosmgr: while it waits for the k3s containerd it
touches its file only about once a minute, so a retry window is often
open when the clock is stepped. When this happens on the first boot of
a new image, the update is rolled back, and the base OS update fails
every time.
Upstream fixed this in 5.16 with "Use monotonic clock for time
measurements" (c342ccb) and "Use monotonic clock for file mtime
monitoring" (461d27f). The daemon now only watches whether a file's
mtime changes, and times it with the monotonic clock, so clock steps
in either direction are ignored.
The release tarball's src/ and include/ match the upstream 5.16 tag.
The ifdown.c patch is dropped because 5.16 no longer has src/ifdown.c.
The other local patches apply unchanged.
Signed-off-by: Renê de Souza Pinto <rene@renesp.com.br>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit df1592a)
PreviousNext