From 5710b9e7e880b5079dba3c26a2cdb5340f2c9d13 Mon Sep 17 00:00:00 2001 From: Kevin Klues Date: Thu, 16 Feb 2023 11:53:36 +0000 Subject: [PATCH] Add globbing for mounting multiple GSP firmware files Newer drivers have split the GSP firmware into multiple files so a simple match against gsp.bin in the firmware directory is no longer possible. This patch adds globbing capabilitis to match any GSP firmware files of the form gsp*.bin and mount them all into the container. Signed-off-by: Kevin Klues --- pkg/nvcdi/driver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/nvcdi/driver.go b/pkg/nvcdi/driver.go index e939ee76..981ebda2 100644 --- a/pkg/nvcdi/driver.go +++ b/pkg/nvcdi/driver.go @@ -93,7 +93,7 @@ func NewDriverLibraryDiscoverer(logger *logrus.Logger, driverRoot string, nvidia // NewDriverFirmwareDiscoverer creates a discoverer for GSP firmware associated with the specified driver version. func NewDriverFirmwareDiscoverer(logger *logrus.Logger, driverRoot string, version string) discover.Discover { - gspFirmwarePath := filepath.Join("/lib/firmware/nvidia", version, "gsp.bin") + gspFirmwarePath := filepath.Join("/lib/firmware/nvidia", version, "gsp*.bin") return discover.NewMounts( logger, lookup.NewFileLocator(