Skip to content

Use public packages to create dev/char symlinks#1819

Draft
elezar wants to merge 2 commits intoNVIDIA:mainfrom
elezar:use-nvdevices-for-dev-char-symlink-creation
Draft

Use public packages to create dev/char symlinks#1819
elezar wants to merge 2 commits intoNVIDIA:mainfrom
elezar:use-nvdevices-for-dev-char-symlink-creation

Conversation

@elezar
Copy link
Member

@elezar elezar commented Oct 22, 2025

This change switches to the nvdevices and nvmodules packages
from nvidia-container-toolkit to create symlinks in /dev/char
instead of importing the cmd package.

This depends on #1372
See NVIDIA/mig-parted#262 for related work.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This change switches to the nvdevices and nvmodules packages
from nvidia-container-toolkit to create symlinks in /dev/char
instead of importing the cmd package.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
nvmodules.WithRoot(driverRootCtrPath),
)
if err := modules.LoadAll(); err != nil {
return fmt.Errorf("failed to load NVIDIA kernel modules: %v", err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return fmt.Errorf("failed to load NVIDIA kernel modules: %v", err)
return fmt.Errorf("failed to load NVIDIA kernel modules: %w", err)

err = creator.CreateLinks()
if err != nil {
if err := devices.CreateNVIDIAControlDevices(); err != nil {
return fmt.Errorf("failed to create device nodes for NVIDIA control devices: %v", err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return fmt.Errorf("failed to create device nodes for NVIDIA control devices: %v", err)
return fmt.Errorf("failed to create device nodes for NVIDIA control devices: %w", err)

@github-actions
Copy link
Contributor

This PR is stale because it has been open 90 days with no activity. This PR will be closed in 30 days unless new comments are made or the stale label is removed. To skip these checks, apply the "lifecycle/frozen" label.

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 20, 2026
@rahulait rahulait removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants