reboot-boot-verify skips a valid marker on RTC-less Pis (clock behind at boot) #26
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lab/machine-configs#26
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
pi-01, 2026-11-12: after kured rebooted it onto the #25 kernel,
reboot-boot-verifyloggedbut the marker (
/var/lib/reboot-marker/pending,marked-at: 2026-11-12T15:58:33Z, switched-generation nk85pjyb...) was armed before the reboot (~15:59). booted-system == switched-generation, so the reboot it asks for already happened and verify should have passed and cleared it.Likely cause: the Pis have no RTC. Early in boot the clock is behind until NTP steps it (known: pi-04 2026-11-03, modules/reboot-marker.nix already uses /proc/uptime for its own deadlines), so comparing
marked-atwith the boot time says "armed during this boot".Effect today: harmless (no sentinel, no reboot loop) but the marker is never cleared, and a stale marker can confuse the next deploy.
Fix idea: decide "armed during this boot" by boot_id (store
/proc/sys/kernel/random/boot_idin the marker when arming) instead of timestamps. pi-02..04 passed the same reboot window, so it is a race, not systematic.