Skip to content

Where does A/B swapping logic reside? #1638

Answered by Itxaka
Koseng asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Koseng !

You can check our boot assessment config here: https://github.com/kairos-io/kairos/blob/master/overlay/files/system/oem/08_grub.yaml

It mainly makes it so after an upgrade, if we boot to fail from the active image, we reboot and try to boot from the passive one.

As Kairos is an immutable system, the only way to broke the system is to have a broken upgrade, you cannot break the currently running system unless you go out of your way to do so (enabling debug RW mode for example) so that is the only moment the boot assessment comes into play.

So if we are unable to boot active (A) after an upgrade, it will automatically reboot and set the default boot to the passive image (B).

N…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Koseng
Comment options

Answer selected by Koseng
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants