update_engine: Remove copy from source to destination partition.
Removes the copy of the old rootfs and kernel to the new rootfs and
kernel. This was initially done in FilesystemCopierAction, which is now
called FilesystemVerifierAction.
When FilesystemVerifierAction is given a source rootfs or kernel, it
calculates the hashes. When asked to verify the new rootfs or kernel, it
computes the hashes and compares them against the values in the manifest.
BUG=chromium:463562
TEST=Updates using `cros flash --src-image-to-delta` and unit tests.
CQ-DEPEND=CL:267360
Change-Id: I3c9ba60fa4af0c5381ba8a10883bd47dc40adb8c
Reviewed-on: https://chromium-review.googlesource.com/267554
Reviewed-by: Allie Wood <alliewood@chromium.org>
Commit-Queue: Allie Wood <alliewood@chromium.org>
Trybot-Ready: Allie Wood <alliewood@chromium.org>
Tested-by: Allie Wood <alliewood@chromium.org>
diff --git a/install_plan.h b/install_plan.h
index 1772a47..756822a 100644
--- a/install_plan.h
+++ b/install_plan.h
@@ -56,19 +56,21 @@
// The fields below are used for kernel and rootfs verification. The flow is:
//
- // 1. FilesystemCopierAction(verify_hash=false) computes and fills in the
- // source partition sizes and hashes.
+ // 1. FilesystemVerifierAction computes and fills in the source partition
+ // sizes and hashes.
//
// 2. DownloadAction verifies the source partition sizes and hashes against
// the expected values transmitted in the update manifest. It fills in the
// expected applied partition sizes and hashes based on the manifest.
//
- // 4. FilesystemCopierAction(verify_hashes=true) computes and verifies the
- // applied partition sizes and hashes against the expected values.
+ // 3. FilesystemVerifierAction computes and verifies the applied and source
+ // partition sizes and hashes against the expected values.
uint64_t kernel_size;
uint64_t rootfs_size;
chromeos::Blob kernel_hash;
chromeos::Blob rootfs_hash;
+ chromeos::Blob source_kernel_hash;
+ chromeos::Blob source_rootfs_hash;
// True if payload hash checks are mandatory based on the system state and
// the Omaha response.