update_kernel: Fix BuildID Check for manatee.
It was comparing hypervisor kernel BuildId against the live CrOS kernel.
BUG=b:219653335
TEST=./update_kernel.sh --remote localhost --ssh_port 2230 \
--ab_update --bootonce --board=volteer-manatee
Change-Id: I3f53051479194d73e3a02d85a7e849168950bddf
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosutils/+/3466676
Tested-by: Junichi Uekawa <uekawa@chromium.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Commit-Queue: Junichi Uekawa <uekawa@chromium.org>
diff --git a/update_kernel.sh b/update_kernel.sh
index 382a1b0..c72e548 100755
--- a/update_kernel.sh
+++ b/update_kernel.sh
@@ -204,14 +204,7 @@
}
check_buildid() {
- local vmlinux
- local boot_path="/build/${FLAGS_board}"
- if [[ ${FLAGS_hv} -eq ${FLAGS_TRUE} && \
- -d "${boot_path}/build/manatee/boot" ]]; then
- boot_path+="/build/manatee"
- fi
- boot_path+="/usr/lib/debug/boot"
- vmlinux="${boot_path}/vmlinux"
+ local vmlinux="/build/${FLAGS_board}/usr/lib/debug/boot/vmlinux"
if [[ ! -f "${vmlinux}" ]]; then
warn "Can't find vmlinux. Skipping buildid check."
return