siderolabs / talos

Talos Linux is a modern Linux distribution built for Kubernetes.
https://www.talos.dev
Mozilla Public License 2.0
6.63k stars 531 forks source link

SBC upgrade: block upgrades if no overlay is specified, but board is specified #8602

Closed smira closed 6 months ago

smira commented 6 months ago

When upgrading SBCs from Talos < 1.7 to Talos >=1.7.0, the installer with an overlay image is required.

In order to avoid simple mistakes, block the upgrade to 1.7 if the board argument is set, but no overlay is present in the installer.

smira commented 6 months ago

It is actually already implemented: https://github.com/siderolabs/talos/blob/e23af33b59f0ac020c77dd44ce0059cb9f93e375/cmd/installer/pkg/install/install.go#L85-L86