mirror of
https://github.com/pollen-robotics/microduck.git
synced 2026-12-03 02:47:45 +08:00
The boot check slept until 180 s after boot and looked once. On a Yocto board every member is up by 16 s, so a healthy boot waited nearly three minutes for a verdict nothing needed it to wait for — and the OS's own gate, which copies the deadline, held the OS update page on "rebooting" for as long. The timer now starts the script a second in, and it looks every 2 s until the first of: a member that did not come up (hand over at once; the predicate is unchanged), every member `active` for 10 s straight (the release came up — about 25 s in on a Yocto board), or the deadline. The deadline is `[update_gate] boot_deadline_s` in robotd.toml, 60 s by default. It is when a boot that never settles is judged, by restart count, and updaterd's 10 s RestartSec needs about 45 s to show a crash loop. The script clamps it to 20-300 rather than robotd-params refusing it, since every daemon reading the file exits on a refused value. `robotctl configure` says it applies at the next boot. `--dry-run` now exits 3 where it would have handed over, so microduck-slot-health can ask the same question instead of copying it. Assisted-by: Claude:claude-opus-5-5