mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-05 20:26:44 +02:00
update_kernel: Don't double-copy the kernel on ARM
On ARM we were copying the kernel twice: one next to the "copying kernel" message and once in copy_kernelimage() where we just copied vmlinux.uimg. Avoid the second copy. BUG=None TEST=On ARM with no verity, still found that the kernel got copied. Change-Id: I2a8124b47d018195c7e4b1657d6caf961d3d4d0b Reviewed-on: https://gerrit.chromium.org/gerrit/39391 Tested-by: Doug Anderson <dianders@chromium.org> Reviewed-by: Olof Johansson <olofj@chromium.org> Reviewed-by: Mike Frysinger <vapier@chromium.org> Reviewed-by: Mandeep Singh Baines <msb@chromium.org> Commit-Ready: Doug Anderson <dianders@chromium.org>
This commit is contained in:
parent
127416ae93
commit
61e0b6b6a5
@ -85,12 +85,7 @@ make_kernelimage() {
|
||||
}
|
||||
|
||||
copy_kernelimage() {
|
||||
if [ "${FLAGS_arch}" == "arm" -a ${REMOTE_VERITY} -eq ${FLAGS_FALSE} ]; then
|
||||
remote_cp_to /build/${FLAGS_board}/boot/vmlinux.uimg /boot
|
||||
fi
|
||||
|
||||
remote_cp_to $TMP/new_kern.bin /tmp
|
||||
|
||||
remote_sh dd if=/tmp/new_kern.bin of="${FLAGS_partition}"
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user