cos-kernel: Use root disk p12 as EFI partition

If a second boot disk has been mounted, the
/dev/disk/bypartlabel/EFI-SYSTEM link can be overwritten. On COS,
it's more reliable to use partition 12 of the root disk instead,
which should always be the actual EFI partition.

BUG=b/567952125
TEST=presubmit, unlock and deploy kernel on x86 and arm64

Change-Id: If44102e4f85ca14ef1b1a5667024568b43fe0afe
Reviewed-on: https://cos-review.googlesource.com/c/cos/tools/+/219608
Reviewed-by: Derek Taylor <ddtaylor@google.com>
Cloud-Build: 228075978874@cloudbuild.gserviceaccount.com <228075978874@cloudbuild.gserviceaccount.com>
Tested-by: Kevin Berry <kpberry@google.com>
2 files changed
tree: 6eae3847f26f612116f9930c8091bbba25cc8723
  1. coverage/
  2. release/
  3. src/
  4. testing/
  5. vendor/
  6. .bazelignore
  7. .bazelrc
  8. .gitignore
  9. BUILD.bazel
  10. cloudbuild.yaml
  11. CONTRIBUTING.md
  12. go.mod
  13. go.sum
  14. LICENSE
  15. MODULE.bazel
  16. postsubmit-cloudbuild.yaml
  17. README.md
  18. run_builds.sh
  19. run_unit_tests.sh
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.