Merge "libsnapshot: Cleanup temp metadata during rollback" into main
This commit is contained in:
commit
326534aace
1 changed files with 3 additions and 0 deletions
|
|
@ -2404,6 +2404,9 @@ bool SnapshotManager::NeedSnapshotsInFirstStageMount() {
|
||||||
PLOG(ERROR) << "Unable to write rollback indicator: " << path;
|
PLOG(ERROR) << "Unable to write rollback indicator: " << path;
|
||||||
} else {
|
} else {
|
||||||
LOG(INFO) << "Rollback detected, writing rollback indicator to " << path;
|
LOG(INFO) << "Rollback detected, writing rollback indicator to " << path;
|
||||||
|
if (device_->IsTempMetadata()) {
|
||||||
|
CleanupScratchOtaMetadataIfPresent();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
LOG(INFO) << "Not booting from new slot. Will not mount snapshots.";
|
LOG(INFO) << "Not booting from new slot. Will not mount snapshots.";
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue