Skip to content

Commit

Permalink
torizon: Do not update if Lockbox is available at startup
Browse files Browse the repository at this point in the history
If Lockbox is available when aktualizr process starts, don't
proceed with an Offline Update. Instead only perform an Offline
Update if Lockbox becomes available while aktualizr is running.

Doing so prevents a possible boot loop that may occur on OS
rollback.

Signed-off-by: Jeremias Cordoba <[email protected]>
  • Loading branch information
jsrc27 committed May 29, 2022
1 parent 7c31a99 commit 9a730f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/libaktualizr/aktualizr.h
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ class Aktualizr {
SourceExistsNoContent,
SourceExists,
};
OffUpdSourceState offupd_source_state_{OffUpdSourceState::SourceDoesNotExist};
OffUpdSourceState offupd_source_state_{OffUpdSourceState::Unknown};

protected:
Aktualizr(Config config, std::shared_ptr<INvStorage> storage_in, const std::shared_ptr<HttpInterface>& http_in);
Expand Down

0 comments on commit 9a730f2

Please sign in to comment.