Skip to content

Commit

Permalink
Add more paths to crun runtime detection (#9086)
Browse files Browse the repository at this point in the history
* add usr/local paths for crun detection

Signed-off-by: Lex Rivera <me@lex.io>
  • Loading branch information
rlex committed Jan 5, 2024
1 parent c45524e commit 5fe074b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/agent/containerd/runtimes.go
Expand Up @@ -65,8 +65,10 @@ func findContainerRuntimes(root fs.FS) runtimeConfigs {
func findCRunContainerRuntime(root fs.FS, foundRuntimes runtimeConfigs) {
// Check these locations in order.
locationsToCheck := []string{
"usr/sbin", // Path when installing via package manager
"usr/bin", // Path when installing via package manager
"usr/sbin", // Path when installing via package manager
"usr/bin", // Path when installing via package manager
"usr/local/bin", // Path when installing manually
"usr/local/sbin", // Path when installing manually
}

// Fill in the binary location with just the name of the binary,
Expand Down

0 comments on commit 5fe074b

Please sign in to comment.