Install kernel headers in /build/cos-tools in cos-gpu-installer-v1

GKE uses cos-gpu-installer-v1 for dependency caching, but
cos-gpu-installer-v2 for actual driver installation. Since
cos-gpu-installer-v2 now depends on the kernel headers, let's install
them into /build/cos-tools in cos-gpu-installer-v1.

cos-gpu-installer-v1 creates an "ld" symlink to use the correct linker,
but the signer never picked up this behavior. Also update
cos-gpu-installer-v2 to use the Debian linker for legacy linking, to
remain compatible with existing signatures.

BUG=b/200957688
TEST=Preload using cos-gpu-installer-v1; install driver using
cos-gpu-installer-v2. Tested on:
- Live cos-89 with production driver/signature
- Live cos-89 with new signature produced by cos-gpu-installer-v2

Change-Id: Ief20170ec00f9032a25924022bc9697bed670e69
Reviewed-on: https://cos-review.googlesource.com/c/cos/tools/+/23450
Tested-by: Robert Kolchmeyer <rkolchmeyer@google.com>
Reviewed-by: Arnav Kansal <rnv@google.com>
Reviewed-by: Ke Wu <mikewu@google.com>
Cloud-Build: GCB Service account <228075978874@cloudbuild.gserviceaccount.com>
2 files changed
tree: 15c96985be461c619b76d746c9f68f926bf54d7d
  1. release/
  2. src/
  3. testing/
  4. BUILD.bazel
  5. cloudbuild.yaml
  6. CONTRIBUTING.md
  7. deps.bzl
  8. go.mod
  9. go.sum
  10. LICENSE
  11. README.md
  12. run_tests.sh
  13. WORKSPACE
README.md

Tools for Container-Optimized OS

This is a repository of various tools developed for Container-Optimized OS. Examples include cos-gpu-installer, cos-toolbox, etc.

See CONTRIBUTING.md for how to contribute.