Verify sequence ops when finish writing InstallOps
This will happen after we write normal install ops, but before verity
kicks in. Since verity stuff is always written in REPLACE ops, they
don't participate in merge sequence anyway.
Test: th
Change-Id: I34dbc9b918fe9541945de21094bae305ea0d4ce0
diff --git a/payload_consumer/vabc_partition_writer.cc b/payload_consumer/vabc_partition_writer.cc
index 6ca94c1..1ae82b5 100644
--- a/payload_consumer/vabc_partition_writer.cc
+++ b/payload_consumer/vabc_partition_writer.cc
@@ -280,7 +280,9 @@
// Add a hardcoded magic label to indicate end of all install ops. This label
// is needed by filesystem verification, don't remove.
TEST_AND_RETURN_FALSE(cow_writer_ != nullptr);
- return cow_writer_->AddLabel(kEndOfInstallLabel);
+ TEST_AND_RETURN_FALSE(cow_writer_->AddLabel(kEndOfInstallLabel));
+ TEST_AND_RETURN_FALSE(cow_writer_->Finalize());
+ return cow_writer_->VerifyMergeOps();
}
VABCPartitionWriter::~VABCPartitionWriter() {