Call SnapshotManager::FinishedSnapshotWrites
... when the update has finished. This allows SnapshotManager
to conclude the update and prepare for reboot.
Test: builds
Test: apply OTA on Virtual A/B device, then check
/metadata/ota/snapshot-boot exists, then reboot
Bug: 138816109
Change-Id: I2a4699865b09358ef018313bed64e34617a78e3c
diff --git a/dynamic_partition_control_interface.h b/dynamic_partition_control_interface.h
index a4dc576..0ccfcd6 100644
--- a/dynamic_partition_control_interface.h
+++ b/dynamic_partition_control_interface.h
@@ -103,6 +103,8 @@
// Return the name of the super partition (which stores super partition
// metadata) for a given slot.
virtual std::string GetSuperPartitionName(uint32_t slot) = 0;
+
+ virtual bool FinishUpdate() = 0;
};
} // namespace chromeos_update_engine