cos-dkms: Undo actions when --force is passed

When --force is passed to Dell DKMS, the inverse of an action is
performed before attempting that action. Namely, Remove is performed
before calling Add, Unbuild is called before Build, and Uninstall is
called before Install. For consistency, we do the same.

BUG=None
TEST=presubmit

Change-Id: Ie2ae4a5093414bf25c71917b6e7e5bb3ad1836ef
Reviewed-on: https://cos-review.googlesource.com/c/cos/tools/+/110413
Cloud-Build: GCB Service account <228075978874@cloudbuild.gserviceaccount.com>
Tested-by: Kevin Berry <kpberry@google.com>
Reviewed-by: Angel Adetula <angeladetula@google.com>
3 files changed
tree: b149deacb9dbc06ec58cb0da951dd9d072db3b2e
  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.