Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Rollback support #5

Merged
merged 2 commits into from
May 3, 2024
Merged

Conversation

cakre
Copy link

@cakre cakre commented May 2, 2024

This PR does:

  • Reduce retry_count to 1 so the new slot failes directly if it's not verified after reboot
  • Make nv_update_verifier.service not verify the bootet slot if we are currently updating (mender commit will do that)
  • Move nv_update_verifier.service earlier in the boot process (before basic.target) to mitigate potential breakage of the bootslot by running reboot to early
  • Add state scripts to handle verifying the current bootchain on commit and aborting the capsule update in case we are rolling back before a reboot

cakre added 2 commits May 2, 2024 12:00
Signed-off-by: Carlo Kretzschmann <kretzschmann@3dvisionlabs.com>
When a rollback was started before rebooting the update capsule was still installed
on the next reboot and the boot chain was switched. We want to stay on the current chain
after a failed install though.

Signed-off-by: Carlo Kretzschmann <kretzschmann@3dvisionlabs.com>
@cakre
Copy link
Author

cakre commented May 2, 2024

One thing to note:
A powerloss after rebooting from an update will not trigger a rollback because cold boots do not decrease the retry counter of a slot. I don't think there is much we can do about that though

@mwest90 mwest90 merged commit 4b8cdde into mwest90:working-jetson-orin May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants