Merge "libsnapshot: Cleanup temp metadata during rollback" into main

This commit is contained in:
Treehugger Robot 2024-12-02 22:31:01 +00:00 committed by Gerrit Code Review
commit 326534aace

View file

@ -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.";