diff options
author | Devin Moore <devinmoore@google.com> | 2022-01-06 01:11:23 +0000 |
---|---|---|
committer | Devin Moore <devinmoore@google.com> | 2022-01-06 22:33:19 +0000 |
commit | 1af1202fbdf03d309c0d56df1e93341a8d863daf (patch) | |
tree | 4799b2cf46891900be255ab181177c02d7e987c6 /fastboot/fastboot.cpp | |
parent | dd1eb8733dbae94958a9327e9247d9400815a5ba (diff) |
fastboot: copy AVB footer from init_boot.img to end of partition
Similar to GKI boot.img, init_boot.img is released as a specific size
and should be able to be flashed into partitions that have different
sizes. So the AVB footer is moved from the end of the init_boot.img to
the end of the partition in the case that the partition is larger than
the image.
Bug: 203698939
Test: m
Change-Id: Ib5a63a7bf1b4be4eba4941972750f12e3edb3a17
Diffstat (limited to 'fastboot/fastboot.cpp')
-rw-r--r-- | fastboot/fastboot.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp index 32a22bbf5..ab429df50 100644 --- a/fastboot/fastboot.cpp +++ b/fastboot/fastboot.cpp @@ -1076,7 +1076,8 @@ static void flash_buf(const std::string& partition, struct fastboot_buffer *buf) { sparse_file** s; - if (partition == "boot" || partition == "boot_a" || partition == "boot_b") { + if (partition == "boot" || partition == "boot_a" || partition == "boot_b" || + partition == "init_boot" || partition == "init_boot_a" || partition == "init_boot_b") { copy_boot_avb_footer(partition, buf); } |