Descriptionbuild_image, build_kernel_image, update_bootloaders: fix up rootfs_verification
This change adds
- --rootfs_hash_pad to specify the MBs reserved for the pad
- the implementation of the above flag
- check if total fs size + pad size exceeds the partition size
- hash appending in make_image_bootable()
Fixes:
- a style for ROOT_FS_HASH usage
- bad mount|grep
- bad bash subst for root devices in all boot paths
- fixed a typo in the update_bootloaders table creation
- disables verified usb for now
Adding the padding argument ensures that the generated hash tree for the root filesystem is appended to the image. Assuming the rootfs is _never_ mounted read-write
again, that hash tree will be valid and vboot will be able to proceed.
BUG=chromium-os:2693
TEST=manual build_image
Patch Set 1 #Patch Set 2 : fix bad mount|grep; fix bad device replacement in table #Patch Set 3 : fix up a cut and paste typo in update_bootloaders #Patch Set 4 : fix more subst errors; disable verified usb until we have initramfs or kernel supp #
Total comments: 4
Patch Set 5 : quick comment fix #
Messages
Total messages: 7 (0 generated)
|