Merge "libsnapshot: Cleanup temp metadata during rollback" into main am: 326534aace
Original change: https://android-review.googlesource.com/c/platform/system/core/+/3388019 Change-Id: I49676341c3d86b8ad52c44dd2cc08653d0725b4a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
f670036b82
1 changed files with 3 additions and 0 deletions
|
|
@ -2404,6 +2404,9 @@ bool SnapshotManager::NeedSnapshotsInFirstStageMount() {
|
|||
PLOG(ERROR) << "Unable to write rollback indicator: " << path;
|
||||
} else {
|
||||
LOG(INFO) << "Rollback detected, writing rollback indicator to " << path;
|
||||
if (device_->IsTempMetadata()) {
|
||||
CleanupScratchOtaMetadataIfPresent();
|
||||
}
|
||||
}
|
||||
}
|
||||
LOG(INFO) << "Not booting from new slot. Will not mount snapshots.";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue