You need to sign in or sign up before continuing.
Commit 1ff43bf0 authored by Vitor Savian's avatar Vitor Savian

Add user path to runtimes search

parent ab89363e
...@@ -24,7 +24,7 @@ import ( ...@@ -24,7 +24,7 @@ import (
const ( const (
socketPrefix = "unix://" 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 { func getContainerdArgs(cfg *config.Node) []string {
...@@ -55,10 +55,10 @@ func SetupContainerdConfig(cfg *config.Node) error { ...@@ -55,10 +55,10 @@ func SetupContainerdConfig(cfg *config.Node) error {
cfg.AgentConfig.Systemd = !isRunningInUserNS && controllers["cpuset"] && os.Getenv("INVOCATION_ID") != "" 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 // that we added after finding the runtimes
originalPath := os.Getenv("PATH") originalPath := os.Getenv("PATH")
os.Setenv("PATH", runtimesPath) os.Setenv("PATH", runtimesPath+string(os.PathListSeparator)+originalPath)
extraRuntimes := findContainerRuntimes() extraRuntimes := findContainerRuntimes()
os.Setenv("PATH", originalPath) os.Setenv("PATH", originalPath)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment