diff options
author | Nikita Ioffe <ioffe@google.com> | 2019-02-26 20:03:32 +0000 |
---|---|---|
committer | Nikita Ioffe <ioffe@google.com> | 2019-02-27 13:12:19 +0000 |
commit | 2f6936c9b33bdf1544639c442cba90ce78661143 (patch) | |
tree | 254e2790ee5684b0245d2d9b93f32faf05542a23 /apexer/apexer.py | |
parent | 6994eff232e047dd5bcd64f13c387334e57f76f7 (diff) |
apexd: if necessary resume rollback during boot sequence
This covers a scenario, in which device was rebooted during the
rollback. In this case, apexd will resume the rollback. It is safe to
resume it right after scanStagedSessionsDirAndStage, because
/data/apex/sessions will be empty making scanStagedSessionsDirAndStage a
no-op.
Since rename is an atomic operation, resuming a rollback is rather
straightforward:
* if /data/apex/backup exists -> do full rollback;
* otherwise just mark session as rolled back;
Bug: 123622800
Test: apex_e2e_tests, apexservice_test
Change-Id: Ia24e0deb42d77a73395f7f1146490622caead95d
Diffstat (limited to 'apexer/apexer.py')
0 files changed, 0 insertions, 0 deletions