[no-relnote] Explicitly use blank config

Since this is running in a contianer the contents of the
/etc/nvidia-container-runtime/config.toml file is equivalent to the
default config. This change makes it explicit.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2025-03-13 15:44:33 +02:00
parent 20a97882d2
commit 15d6c5edef
No known key found for this signature in database
2 changed files with 1 additions and 5 deletions

View File

@ -50,9 +50,7 @@ func (t *Installer) installToolkitConfig(c *cli.Context, opts *Options) error {
nvidiaCTKPath := filepath.Join(t.toolkitRoot, "nvidia-ctk")
nvidiaContainerRuntimeHookPath := filepath.Join(t.toolkitRoot, "nvidia-container-runtime-hook")
cfg, err := config.New(
config.WithConfigFile(nvidiaContainerToolkitConfigSource),
)
cfg, err := config.New()
if err != nil {
return fmt.Errorf("could not open source config file: %v", err)
}

View File

@ -35,8 +35,6 @@ import (
const (
// DefaultNvidiaDriverRoot specifies the default NVIDIA driver run directory
DefaultNvidiaDriverRoot = "/run/nvidia/driver"
nvidiaContainerToolkitConfigSource = "/etc/nvidia-container-runtime/config.toml"
)
type cdiOptions struct {