Browse Source

Add more paths to crun runtime detection (#9086)

* add usr/local paths for crun detection

Signed-off-by: Lex Rivera <me@lex.io>
pull/6874/head
Lex Rivera 11 months ago committed by GitHub
parent
commit
5fe074b540
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      pkg/agent/containerd/runtimes.go

6
pkg/agent/containerd/runtimes.go

@ -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,

Loading…
Cancel
Save