cos_gpu_installer: add kernel module parameters as input flags

Flag --module-arg can be used to specify kernel module parameters for
GPU driver installer to use when loading NVIDIA GPU kernel modules.

It can be used to specify multiple kernel modules and their parameters.

For instance
```
./cos_gpu_installer -- --module-arg
nvidia.NVreg_EnableGpuFirmware=0 --module-arg
nvidia.NVreg_OpenRmEnableUnsupportedGpus=1 --module-arg
nvidia_uvm.uvm_debug_prints=1
```

cos_gpu_installer uses insmod to load kernel modules and can pass module
options to insmod:

```
insmod [ filename ] [ module options... ]
```

Tested:
1. Installed using module args listed in example
2. Used /sys/modules/<mod>/parameters to validate parameter values

BUG=b/277614899

Change-Id: I9d167ecae0226b9ba37109c3794db33aa8dd73f6
Reviewed-on: https://cos-review.googlesource.com/c/cos/tools/+/51969
Cloud-Build: GCB Service account <228075978874@cloudbuild.gserviceaccount.com>
Reviewed-by: Oleksandr Tymoshenko <ovt@google.com>
Tested-by: Arnav Kansal <rnv@google.com>
7 files changed
tree: a1f27330d91e47036e68f381b9477e22b1c42af8
  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. README.md
  14. run_tests.sh
  15. 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.