talos-rpi5/patches/siderolabs/talos
Mathias Beaulieu-Duncan 40bfac268d patches: add 0007 acquire.go wait for STATE on slow-init disks (CM5 eMMC)
After upgrade kexec into v1.13.2, CM5 eMMC takes ~2m13s between the SDHCI
controller registering and mmc0 actually becoming usable. The Talos config
acquire state machine (`acquire.go::stateDisk`) checks STATE in the first
seconds of boot, sees `VolumePhaseMissing`, and transitions one-way to
`stateEmbedded` -> `stateMaintenanceEnter`. When STATE later becomes
ready, the state machine doesn't re-enter `stateDisk`, so the node stays
in maintenance forever despite the on-disk config.yaml being intact.

This patch makes stateDisk tolerate transient phase=missing for up to
5 minutes (stateMissingDiskTimeout) before falling through to embedded.
A 5-second ticker on the outer Run loop ensures the timeout can fire
even when no further volume-status events arrive (e.g. truly missing
STATE on a fresh install).

Validated 2026-05-25 via canonical 3-CP rolling upgrade on a freshly
flashed v1.12.4 home-test cluster: all 3 blades upgraded sequentially
to v1.13.2-7 (this patch), each came back stage=running with config
loaded automatically and k8s Ready within ~5 min, no manual remediation.
See doc-compute-blade-kubernetes/talos-upgrade-validation/session-2026-05-25/E2E-VALIDATED.md.

Fast-init hardware sees no change — STATE reaches ready within seconds
and the existing path runs.
2026-05-25 20:04:30 -04:00
..
0001-Replace-modules-arm64.txt-with-RPi-6.12.47-module-se.patch talos: restore modules-arm64.txt patch; metal step needs --network=host 2026-05-18 19:03:12 -04:00
0002-Skip-NVRAM-writes-for-GRUB-on-arm64.patch Add GRUB bootloader patches for talosctl upgrade on RPi5/CM5 2026-02-13 19:20:18 -05:00
0003-Force-GRUB-bootloader-on-arm64.patch Fix GRUB patch: skip sd-boot probe on arm64 for first upgrade 2026-02-16 13:50:42 -05:00
0004-Fallback-to-classic-bind-mounts-on-kernels-without-o.patch Add opentree fallback patch for RPi downstream kernel (<6.15) 2026-02-14 14:25:03 -05:00
0005-Handle-missing-BOOT-partition-for-GRUB-on-SBC-layout.patch Bump to Talos v1.13.2 / pkgs v1.13.0 2026-05-18 17:20:29 -04:00
0006-grub-EFI-at-boot-fallback-for-BOOT-less-SBC-layout-i.patch patches: restore 0006 grub EFI-at-/boot fallback for BOOT-less SBC Upgrade 2026-05-25 20:04:17 -04:00
0007-Wait-for-STATE-volume-on-slow-init-disks-in-config-a.patch patches: add 0007 acquire.go wait for STATE on slow-init disks (CM5 eMMC) 2026-05-25 20:04:30 -04:00