-
Notifications
You must be signed in to change notification settings - Fork 18
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 user-initiated rollback #381
Conversation
3b57c51
to
2cc18d1
Compare
Still missing handling of bootloader rollback protection. If enabled, we should not allow rollback after update is finalized. |
LGTM, will test it a bit. |
2cc18d1
to
a974c91
Compare
src/liteclient.cc
Outdated
|
||
Uptane::Target rollback_target{Uptane::Target::Unknown()}; | ||
{ | ||
std::vector<Uptane::Target> installed_versions; | ||
storage->loadPrimaryInstallationLog(&installed_versions, | ||
true /* make sure that Target has been successfully installed */); | ||
true /* make sure that Target has been successfully installed */, false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same question about considering the current target as the target to rollback to under certain circumstances.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A change here is probably needed, to allow current depending if the latest install has finished or not. I'll adjust it tomorrow.
LGTM, the direction is fine. I just have two concerns:
|
3fec0a3
to
bba8f3f
Compare
ad34f29
to
e456ee7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I have just a few nitpicks apart of the test issue mentioned earlier.
2565cbb
to
1473d8b
Compare
1473d8b
to
52168f2
Compare
52168f2
to
3ffd0fd
Compare
This new operation marks the current target as a failing target, and proceeds to install the selected rollback target, which can be automatically selected (the most recent fully installed target), or explicitly defined by the caller of the function. A rollback can be initiated after an installation is completed, but also while finalization of system reboot is still pending. Signed-off-by: Andre Detsch <[email protected]>
Signed-off-by: Andre Detsch <[email protected]>
Signed-off-by: Andre Detsch <[email protected]>
3ffd0fd
to
4c0a1cd
Compare
No description provided.