Skip to content

Commit

Permalink
Add user path to runtimes search
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Savian <[email protected]>
  • Loading branch information
vitorsavian committed Oct 2, 2024
1 parent ab89363 commit 1ff43bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/agent/containerd/config_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

const (
socketPrefix = "unix://"
runtimesPath = "/usr/local/nvidia/toolkit:/opt/kwasm/bin:/usr/sbin:/usr/local/sbin:/usr/bin:/usr/local/bin"
runtimesPath = "/usr/local/nvidia/toolkit:/opt/kwasm/bin"
)

func getContainerdArgs(cfg *config.Node) []string {
Expand Down Expand Up @@ -55,10 +55,10 @@ func SetupContainerdConfig(cfg *config.Node) error {
cfg.AgentConfig.Systemd = !isRunningInUserNS && controllers["cpuset"] && os.Getenv("INVOCATION_ID") != ""
}

// set the path to include the runtimes and then remove the aditional path entries
// set the path to include the default runtimes and remove the aditional path entries
// that we added after finding the runtimes
originalPath := os.Getenv("PATH")
os.Setenv("PATH", runtimesPath)
os.Setenv("PATH", runtimesPath+string(os.PathListSeparator)+originalPath)
extraRuntimes := findContainerRuntimes()
os.Setenv("PATH", originalPath)

Expand Down

0 comments on commit 1ff43bf

Please sign in to comment.