summaryrefslogtreecommitdiffstats
path: root/install/snapshot_utils.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix SnapshotManager instantiation.David Anderson2021-02-051-2/+2
| | | | | | | | New() should be used instead of NewForFirstStageMount(). Bug: 168258606 Test: data wipe with VABC merge in progress Change-Id: Idf2b01a504b577766da303091721764242e99a69
* Mount snapshotted /system in Virtual A/B devicesAlessio Balsini2019-12-161-0/+25
| | | | | | | | | | | | | Mounting /system in Virtual A/B devices may require the creation of the associated snapshot devices. This patch performs all the required initializations prior to attempting the mount of /system. Bug: 139157327 Test: manual /system partition mount on VAB device during OTA Depends-on: I7337bdd38d7016d12d3ee42be1c7893b10e9116d Change-Id: I71a9dfc57e1a1354f1f1edc5d287aca93c0c8924 Signed-off-by: Alessio Balsini <balsini@google.com>
* Force merges to complete before wiping data or metadata.David Anderson2019-11-111-0/+49
After an OTA is applied, a wipe in recovery may overwrite components of dynamic partitions living in userdata. If the OTA has not yet begun merging, we mark the current slot unbootable. If the OTA has begun merging, we wait for the merge to complete. This logic is encapsulated in libsnapshot. Bug: 139156011 Test: manual test Change-Id: Id6544a1b8583afcbba11559d46214ec2e68ffa40