mod_image_for_recovery: Add hashes of multiple partitions

.. to recovery kernel boot args.

The hashes of partitions MiniOS A + B are calculated, compressed, and
base64 encoded. This encoded string is then added to the kernel command
line as the `cros_part_hash` argument, alongside `kern_b_hash`.

The format of `cros_part_hash` is
"<partnum>:base64(hextobin(<digest>)[,<partnum>:base64(hextobin(<digest>)]*"

BUG=b:426664945
TEST=Builders/CQ/local snippet runs
Cq-Depend: chrome-internal:8506137
Change-Id: Ibaed5162779661616f1e435caea998bfc4938c23
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosutils/+/6833628
Reviewed-by: Julius Werner <[email protected]>
Auto-Submit: Jae Hoon Kim <[email protected]>
Reviewed-by: Mike Frysinger <[email protected]>
Tested-by: Jae Hoon Kim <[email protected]>
Commit-Queue: Jae Hoon Kim <[email protected]>
1 file changed
tree: 03e79e77dd32a40b2cccbc9165b8003ee394f5c0
  1. bin/
  2. build_library/
  3. hooks/
  4. lib/
  5. mod_for_test_scripts/
  6. .gitignore
  7. build_kernel_image.sh
  8. common.sh
  9. cros_show_stacks
  10. DIR_METADATA
  11. image_to_vm.sh
  12. make_netboot.sh
  13. mod_image_for_recovery.sh
  14. mount_gpt_image.sh
  15. OWNERS
  16. PRESUBMIT.cfg
  17. README.md
  18. update_bootloaders.sh
  19. update_kernel.sh
README.md

src/scripts directory

This repository contains build tools and scripts written in shell (e.g., Bash). Historically, much of our build process was written in shell in this directory, however, we're currently in the process of migrating many scripts to Python in Chromite.

In general, we're not currently accepting new scripts in this directory.

If you want to host a script for yourself/local team, feel free to use the src/platform/dev/contrib/ directory instead.