Skip to content

Commit 9068b05

Browse files
elezarkarthikvetrivel
authored andcommitted
Merge pull request #1505 from jfroy/propagate-driver-root
Pass driver root to nvinfo.New in device plugin main Signed-off-by: Karthik Vetrivel <[email protected]>
2 parents 799d7ca + 7ecfe53 commit 9068b05

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/scripts/backport.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ for (const targetBranch of branches) {
7070
const commitMessage = commit.commit.message.split('\n')[0];
7171
core.info(`Cherry-picking commit ${i + 1}/${commits.length}: ${commitSha.substring(0, 7)} - ${commitMessage}`);
7272
try {
73-
execSync(`git cherry-pick -x ${commitSha}`, {
73+
execSync(`git cherry-pick -m 1 -x ${commitSha}`, {
7474
encoding: 'utf-8',
7575
stdio: 'pipe'
7676
});

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)