Skip to content
Snippets Groups Projects
Commit c8b74031 authored by Denis Pynkin's avatar Denis Pynkin
Browse files

ota-api: check if there is no rollback after successful update

In case if bootloader behave incorrectly and ignore the upgrade state
it can trigger rollback even after successful upgrade.
With working `apertis-update-complete` service this state is masked
since AUM rewrite the bootcounter file on every successful boot.

However in case if the system is interrupted 3 times in a raw before
re-marking update as "successful", the bootloader may start the rollback
procedure. For instance in case of sequential power failure or user's
interruption.

Added the test emulating failure of the boot process prior starting the
mark service after successful upgrade by failing this service. Check if
no rollback happens after several boots in a raw.

See: https://phabricator.apertis.org/T7239



Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
parent 4856a8de
No related branches found
No related tags found
1 merge request!26T7239: test of bootloader's bootcounter mechanism
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment