cos-kernel: Reimplement unlock using cos-set-dev-mode

The existing cos-set-dev-mode script from
project-lakitu/dev-util/cos-dev-tools is much simpler to use than the
pair of scripts that was previously used.

We also simplify the gcloud compute ssh wrapper by using a general retry
pattern, and we move the unlock library functions to pkg/kernel to
more cleanly separate them from the command logic.

BUG=b/527929696
TEST=presubmit, `./cos_kernel unlock kpberry-cos-kernel-test`

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