From a1b0bc8b9ca8c66e39e01608fc47107d2188671a Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Thu, 13 Mar 2025 15:44:33 +0200 Subject: [PATCH] [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 --- cmd/nvidia-ctk-installer/toolkit/toolkit.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cmd/nvidia-ctk-installer/toolkit/toolkit.go b/cmd/nvidia-ctk-installer/toolkit/toolkit.go index 80e302db..f67d91d4 100644 --- a/cmd/nvidia-ctk-installer/toolkit/toolkit.go +++ b/cmd/nvidia-ctk-installer/toolkit/toolkit.go @@ -40,8 +40,7 @@ const ( nvidiaContainerCliSource = "/usr/bin/nvidia-container-cli" nvidiaContainerRuntimeHookSource = "/usr/bin/nvidia-container-runtime-hook" - nvidiaContainerToolkitConfigSource = "/etc/nvidia-container-runtime/config.toml" - configFilename = "config.toml" + configFilename = "config.toml" ) type cdiOptions struct { @@ -426,9 +425,7 @@ func (t *Installer) installLibrary(libName string, toolkitRoot string) error { func (t *Installer) installToolkitConfig(c *cli.Context, toolkitConfigPath string, nvidiaContainerCliExecutablePath string, nvidiaCTKPath string, nvidaContainerRuntimeHookPath string, opts *Options) error { t.logger.Infof("Installing NVIDIA container toolkit config '%v'", toolkitConfigPath) - 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) }