Refactor cos-gpu-installer part2 Purely structural cleanup with no functional or CLI behavior changes: - Extract shared userspace installation and .run extraction logic (DownloadToInstallDir, extractInstaller, installUserLibs, copyLibStdCpp,findDriverVersionManifestFile) from precompiled.go into internal/installer/userspace.go, deduplicating extraction with prebuilt.go. - Extract version.ParseLegacyDriverVersion from commands/list.go and version.ParseMajorVersion shared across resolver.go, firmware.go, and modules.go. - Remove unused transitional wrappers, dead v1 signing helpers, unused kernelOpen/test parameters and struct fields, and the redundant version.KernelModuleFlavor wrapper. - Hoist function-local regexp.MustCompile calls to package-level vars and replace deprecated io/ioutil and github.com/golang/protobuf/proto usages. - Enable the existing userParamSet assertions in TestSetCoherentGPUMemoryMode and update signature_test.go to cover DownloadDriverSignaturesV2. BUG=b/577289798 TEST=installed GPU drivers in VMs. Change-Id: Ibfed4ead7f35b6945fd3c70b3de33deb9eaa7d6f Reviewed-on: https://cos-review.googlesource.com/c/cos/tools/+/242606 Cloud-Build: 228075978874@cloudbuild.gserviceaccount.com <228075978874@cloudbuild.gserviceaccount.com> Tested-by: He Gao <hegao@google.com> AI-Review: cloud-image-release <cloud-image-release@prod.google.com> Reviewed-by: Chenglong Tang <chenglongtang@google.com>
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.