#14474·talos

Upgrades should always use the non active partition

Author: gsingh-dwaveCreated Sep 25, 2026Updated Sep 28, 2026

Bug Report

With the A/B partitioning, the expectation is that when an upgrade fails the other slot should boot up to previous working state. This works fine in the first upgrade failure, but a subsequent upgrade renders both slots un-bootable. To prevent this scenario, the upgrade should always target the partition that is not used for current bootup.

What happened? What did you expect?

  • A node is booted up from Partition A with Talos v1.13.8
  • An upgrade command is issued (to v1.13.9)
  • The upgrade is installed to Partition B, and for some reason the bootup is failing.
  • User manually selects the old version (i.e Partition A) in grub menu (`v1.13.8)
  • Node is back online and healthy
  • User attempts the upgrade again (to v1.13.10)
  • The upgrade failed again
  • Now both grub entries are for un-bootable version i.e v1.13.9 and v1.13.10
  • Node is unable to booth without re-imaging

Steps to reproduce

  • Upgrade a working node to a new image that has some kind of bootup failure. (In our case https://github.com/siderolabs/talos/issues/13065)
  • When the upgrade fails, use grub menu to select and boot previous working working
  • Issue the upgrade command one more time (this should also be to an image that results in bootup failure)
  • Now both entries in the grub are for non working image