Skip to content

How to revert to the previous slot if the new slot fails to boot successfully? #1237

Answered by ejoerns
tigerinus asked this question in Q&A
Discussion options

You must be logged in to vote

We use grub, does boot-attempts-primary=1 apply? how?

boot-attempts-primar is currently only supported for barebox and u-boot. But that's just a question of implementation (which should be quite fast-forward for other bootloaders).

#1074 should serve as a blueprint here.

I guess we can use some filepath under user data partition for state keeping - it's just not elegant enough to us.

A workaround could be to look into the status file and check if the currently booted slot group is the one with the most recent installation timestamp.

The elegant way is the one I outlined above. That would however still need a bit of implementation in RAUC.

Replies: 2 comments 3 replies

Comment options

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

Comment options

You must be logged in to vote
2 replies
@tigerinus
Comment options

@ejoerns
Comment options

Answer selected by tigerinus
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