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

Commit 326534aa authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents 85050a06 00a32314
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.";