cosboot: Add functionality for determining boot path

For now the boot path can either be grub or UKI. Currently we just use
if the bootx64.efi is the shim. More analysis is possible, but is not
necessary right now. Non-EFI boot paths are not considered.

BUG=b/465210631
TEST=unit tests

Change-Id: Ia9973459958c1d99223607ccf6b5e82b2512b7f1
Reviewed-on: https://cos-review.googlesource.com/c/cos/tools/+/130161
Tested-by: Robert Kolchmeyer <rkolchmeyer@google.com>
Reviewed-by: Kevin Berry <kpberry@google.com>
Cloud-Build: GCB Service account <228075978874@cloudbuild.gserviceaccount.com>
Reviewed-by: He Gao <hegao@google.com>
7 files changed
tree: c756f1dac7629e030af7936f0f4207505d82c670
  1. coverage/
  2. release/
  3. src/
  4. testing/
  5. .gitignore
  6. BUILD.bazel
  7. cloudbuild.yaml
  8. CONTRIBUTING.md
  9. deps.bzl
  10. go.mod
  11. go.sum
  12. LICENSE
  13. postsubmit-cloudbuild.yaml
  14. README.md
  15. run_builds.sh
  16. run_unit_tests.sh
  17. 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.