aboutsummaryrefslogtreecommitdiff
path: root/libpod/runtime.go
diff options
context:
space:
mode:
authorSascha Grunert <sgrunert@suse.com>2019-07-29 10:09:52 +0200
committerSascha Grunert <sgrunert@suse.com>2019-07-30 12:59:11 +0200
commit52ae51c79fc8a373c37a922ad237229400dbd968 (patch)
treeb78aac854b55b67c3783b79b8dbc2d14ebaeca7e /libpod/runtime.go
parent2c98bd5398979109cf3ddc3cbe4e3400b67d74ac (diff)
downloadpodman-52ae51c79fc8a373c37a922ad237229400dbd968.tar.gz
podman-52ae51c79fc8a373c37a922ad237229400dbd968.tar.bz2
podman-52ae51c79fc8a373c37a922ad237229400dbd968.zip
Update libpod.conf to be NixOS friendly
NixOS links the current system state to `/run/current-system`, so we have to add these paths to the configuration files as well to work out of the box. Signed-off-by: Sascha Grunert <sgrunert@suse.com>
Diffstat (limited to 'libpod/runtime.go')
-rw-r--r--libpod/runtime.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/runtime.go b/libpod/runtime.go
index 28958e932..bb6bfbfcc 100644
--- a/libpod/runtime.go
+++ b/libpod/runtime.go
@@ -293,6 +293,7 @@ func defaultRuntimeConfig() (RuntimeConfig, error) {
"/sbin/runc",
"/bin/runc",
"/usr/lib/cri-o-runc/sbin/runc",
+ "/run/current-system/sw/bin/runc",
},
},
ConmonPath: []string{
@@ -302,6 +303,7 @@ func defaultRuntimeConfig() (RuntimeConfig, error) {
"/usr/sbin/conmon",
"/usr/local/bin/conmon",
"/usr/local/sbin/conmon",
+ "/run/current-system/sw/bin/conmon",
},
ConmonEnvVars: []string{
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",