mirror of
https://github.com/siderolabs/talos.git
synced 2026-01-10 11:11:16 +01:00
In the tracking of the `reset --reboot`, `reboot` and `upgrade` lifecycle commands, verify that the node was actually rebooted in the post check by comparing the pre- and post-check boot IDs. In the `reset --reboot` post-check, try both maintenance and normal mode, since the reset might be issued to only remove `EPHEMERAL` partition, which will not put the node into the maintenance mode. Fixes siderolabs/talos#7009. Additionally, if an action tracking fails, return the error instead of swallowing it. This way the command erminates with a non-zero exit code. Suppress the re-printing this error after the command was run. Fixes siderolabs/talos#6966. Signed-off-by: Utku Ozdemir <utku.ozdemir@siderolabs.com> (cherry picked from commit c3a595d5b7d3c7c3091229caef6b2553416edb56)