summaryrefslogtreecommitdiff
path: root/payload_generator/ext2_filesystem_unittest.cc
diff options
context:
space:
mode:
authorAlex Deymo <deymo@google.com>2015-10-05 09:28:19 -0700
committerAlex Deymo <deymo@google.com>2015-10-09 17:07:51 -0700
commite5e5fe926e9ea45b1a381af1bee91a86643ffd72 (patch)
tree565bfeb73b56ae711ea976ad9756ef5a2f158ea2 /payload_generator/ext2_filesystem_unittest.cc
parent93417cd690867a8c5411b0dfadad525b02445355 (diff)
Move InstallPlan partitions to a list of partitions.
This patch changes the InstallPlan instance from having hard-coded rootfs and kernel paritions to have a list of partitions with a name, source and target information. The FilesystemVerifierAction, DeltaPerformer and PostInstallAction were adapter to use the list of partitions instead. In delta payloads (only supported in the current major version 1) the list of operations is still fixed: the rootfs first and the kernel. This list is now populated by the FilesystemVerifierAction including the size of these partitions, until the whole source partition hash checking is deprecated (b/23182225). The PostIntallAction now relies on the DeltaPerformer to populate the post-install information from the payload. This means that in rollback we won't run any device-specific post-install operation, and will simply flip the slots in the bootloader. Bug: 24667689 Test: Updated unittests. Tested on a dragonboard and a link. Change-Id: I8277e3190ac74e57832a58dc0730e3713f48af8a
Diffstat (limited to 'payload_generator/ext2_filesystem_unittest.cc')
0 files changed, 0 insertions, 0 deletions