mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 15:11:19 +02:00
build_kernel_image: use key-value args for verity.
BUG=chromium-os:15772 TEST=Adhoc Ran build_image. Change-Id: I1a745076dfb0242e76f65c5e24d72a1119f29008 Signed-off-by: Elly Jones <ellyjones@chromium.org> Reviewed-on: http://gerrit.chromium.org/gerrit/1740
This commit is contained in:
parent
b4c138244f
commit
5e7a430a55
@ -100,11 +100,11 @@ if [[ -n "${FLAGS_rootfs_image}" && -n "${FLAGS_rootfs_hash}" ]]; then
|
||||
info "Generating root fs hash tree."
|
||||
# Runs as sudo in case the image is a block device.
|
||||
# First argument to verity is reserved/unused and MUST be 0
|
||||
table=$(sudo verity create 0 \
|
||||
${FLAGS_verity_hash_alg} \
|
||||
${FLAGS_rootfs_image} \
|
||||
${root_fs_blocks} \
|
||||
${FLAGS_rootfs_hash})
|
||||
table=$(sudo verity mode=create \
|
||||
alg=${FLAGS_verity_hash_alg} \
|
||||
payload=${FLAGS_rootfs_image} \
|
||||
payload_blocks=${root_fs_blocks} \
|
||||
hashtree=${FLAGS_rootfs_hash})
|
||||
if [[ -f "${FLAGS_rootfs_hash}" ]]; then
|
||||
sudo chmod a+r "${FLAGS_rootfs_hash}"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user