diff options
author | Yifan Hong <elsk@google.com> | 2019-09-03 20:29:45 -0700 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2019-09-23 19:38:27 -0700 |
commit | a33bca41ec30bab21322f1c555eb054b324c92ed (patch) | |
tree | f276799b2851a0a9acc9b1320774ba38cf53b5c2 /dynamic_partition_control_interface.h | |
parent | 420db9b98a0b0ace6d412c1a52cfd9a0f326a3e0 (diff) |
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
Diffstat (limited to 'dynamic_partition_control_interface.h')
-rw-r--r-- | dynamic_partition_control_interface.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dynamic_partition_control_interface.h b/dynamic_partition_control_interface.h index a4dc5765..0ccfcd6b 100644 --- a/dynamic_partition_control_interface.h +++ b/dynamic_partition_control_interface.h @@ -103,6 +103,8 @@ class DynamicPartitionControlInterface { // 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 |