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

question about mender install/commit and this repo #16

Closed
arrow53 opened this issue Nov 23, 2020 · 2 comments
Closed

question about mender install/commit and this repo #16

arrow53 opened this issue Nov 23, 2020 · 2 comments

Comments

@arrow53
Copy link

arrow53 commented Nov 23, 2020

@dwalkes This isn't really so much an issue as a question about the wiki

https://github.com/OE4T/tegra-demo-distro/wiki/Mender-Integration-Tests

Is it true that upon a success mender -install that nvbootctrl will always just switch to the opposite active boot slot from the one it is currently in? So, basically the last good update becomes the new "golden/fallback" image?

From the wiki I see that if the install is interrupted (loss of power) mender will stay in the current slot.

Is it necessary to ever issue mender -commit?

@dwalkes
Copy link
Member

dwalkes commented Nov 23, 2020

@arrow53

This isn't really so much an issue as a question about the wiki https://github.com/OE4T/tegra-demo-distro/wiki/Mender-Integration-Tests

I was proposing those tests as a way to resolve sighthoundinc/meta-mender-community#1 - however these aren't ready to go upstream yet. I've edited to make it clear those instructions are work in progress.

Is it true that upon a success mender -install that nvbootctrl will always just switch to the opposite active boot slot from the one it is currently in? So, basically the last good update becomes the new "golden/fallback" image?

Yes.

Is it necessary to ever issue mender -commit?

Yes, assuming you don't have the changes in sighthoundinc/meta-mender-community#1 and you are using uboot. I was proposing adding something in sighthoundinc/meta-mender-community#1 for auto-commit, which is especially important for u-boot because there's a possibility to mismatch your boot and root filesystem slots if rollback happens, and rollback will happen automatically if you reboot without -commit on u-boot platforms. On cboot platforms rollback from mender will happen, however it won't actually do anything since it's not used. See OE4T/meta-mender-community#8 and discussion at OE4T/meta-mender-community#8 (comment) for more details.

@arrow53
Copy link
Author

arrow53 commented Nov 30, 2020

@dwalkes sorry. I read this and it was very helpful. Forgot to comment/close.

@arrow53 arrow53 closed this as completed Nov 30, 2020
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

No branches or pull requests

2 participants