Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 00a32314 authored by Akilesh Kailash's avatar Akilesh Kailash
Browse files

libsnapshot: Cleanup temp metadata during rollback



Bug: 380471512
Test: Test rollback and check metadata is cleared
Change-Id: I4ebd5d9842409fa32c58bb482ffc0066817a5a05
Signed-off-by: default avatarAkilesh Kailash <akailash@google.com>
parent db809532
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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.";