Cleanup dangling mount on update_engine start
If update_engine crashed during postintall, the snapshotted partition
would still be mounted at /postinstall. Therefore cleanup on startup.
Test: th
Change-Id: Ieaa327422bd242231466eedcb1d274d239340847
diff --git a/payload_consumer/postinstall_runner_action.h b/payload_consumer/postinstall_runner_action.h
index 41be201..66721af 100644
--- a/payload_consumer/postinstall_runner_action.h
+++ b/payload_consumer/postinstall_runner_action.h
@@ -70,6 +70,7 @@
// exposed for testing purposes only
void SetMountDir(std::string dir) { fs_mount_dir_ = std::move(dir); }
+ void EnsureUnmounted();
void PerformPartitionPostinstall();
[[nodiscard]] bool MountPartition(