mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 06:31:18 +02:00
Support signing kernel in update_kernel script.
This CL is separated from http://gerrit.chromium.org/gerrit/#change,1104 which is depends on the UUID replacement. In order to make update_kernel not break on officail ChromeOS firmware, this CL just signs the kernel and use the original cmdline approach, i.e. /dev/${devname}${rootpart}. TEST=./update_kernel --remote IP BUG=none Change-Id: I6a194da0ebb0b3f5a442b62ffb76186909eb4321 Reviewed-on: http://gerrit.chromium.org/gerrit/1538 Reviewed-by: Che-Liang Chiou <clchiou@chromium.org> Tested-by: Tom Wai-Hong Tam <waihong@chromium.org>
This commit is contained in:
parent
7052ae1732
commit
6b50a07f59
@ -84,20 +84,23 @@ function learn_partition_and_ro() {
|
||||
}
|
||||
|
||||
function make_kernelimage() {
|
||||
|
||||
local bootloader_path
|
||||
local kernel_image
|
||||
if [[ "${FLAGS_arch}" == "arm" ]]; then
|
||||
./build_kernel_image.sh --arch=arm \
|
||||
--root='/dev/${devname}${rootpart}' \
|
||||
--vmlinuz=/build/${FLAGS_board}/boot/vmlinux.uimg --to new_kern.bin
|
||||
bootloader_path="../build/images/${FLAGS_board}/latest/kernel.scr.uimg"
|
||||
kernel_image="/build/${FLAGS_board}/boot/vmlinux.uimg"
|
||||
else
|
||||
bootloader_path="/lib64/bootstub/bootstub.efi"
|
||||
kernel_image="/build/${FLAGS_board}/boot/vmlinuz"
|
||||
fi
|
||||
vbutil_kernel --pack new_kern.bin \
|
||||
--keyblock /usr/share/vboot/devkeys/kernel.keyblock \
|
||||
--signprivate /usr/share/vboot/devkeys/kernel_data_key.vbprivk \
|
||||
--version 1 \
|
||||
--config ../build/images/${FLAGS_board}/latest/config.txt \
|
||||
--bootloader /lib64/bootstub/bootstub.efi \
|
||||
--vmlinuz /build/${FLAGS_board}/boot/vmlinuz
|
||||
fi
|
||||
--bootloader "${bootloader_path}" \
|
||||
--vmlinuz "${kernel_image}" \
|
||||
--arch "${FLAGS_arch}"
|
||||
}
|
||||
|
||||
function copy_kernelimage() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user