Skip to content

Commit ab9d80c

Browse files
Merge pull request #1528 from elezar/backport-propagate-driver-root
Pass driver root to nvinfo.New in device plugin main
2 parents e319017 + 081baa5 commit ab9d80c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/nvidia-device-plugin/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ func startPlugins(c *cli.Context, o *options) ([]plugin.Interface, bool, error)
338338
)
339339
devicelib := device.New(nvmllib)
340340
infolib := nvinfo.New(
341+
nvinfo.WithRoot(string(driverRoot)),
341342
nvinfo.WithNvmlLib(nvmllib),
342343
nvinfo.WithDeviceLib(devicelib),
343344
)

0 commit comments

Comments
 (0)