git.iko.soy/typeable/nixpkgs
on master help sign in
podman: Remove unconfigured runtime warnings

It doesn't make sense as we promote using the podman wrapper where runtime paths will vary because they are nix store paths.

commit304617494bc2066bae25e7ca221e638f81b28e5a authoradisbladis <adisbladis@gmail.com> dateSat 13 Feb 2021, 14:38 (6 years ago) parent28adb5b
2 files changed+27
pkgs/applications/virtualization/podman/default.nix+4 pkgs/applications/virtualization/podman/remove-unconfigured-runtime-warn.patch+23
pkgs/applications/virtualization/podman/default.nix+4
@@ -25,6 +25,10 @@ buildGoModule rec {
2525 sha256 = "141ii271w2azvhl8ragrgzmir9iq9npl8wmh5dr31kvq4z4syxw1";
2626 };
2727
28+ patches = [
29+ ./remove-unconfigured-runtime-warn.patch
30+ ];
31+
2832 vendorSha256 = null;
2933
3034 doCheck = false;
pkgs/applications/virtualization/podman/remove-unconfigured-runtime-warn.patchnew file+23
@@ -0,0 +1,23 @@
1+Remove warning "WARN[0000] Found default OCIruntime /nix/store/.../bin/crun path which is missing from [engine.runtimes] in containers.conf
2+
3+It doesn't make sense as we promote using the podman wrapper where runtime paths will vary because they are nix store paths.
4+---
5+ vendor/github.com/containers/common/pkg/config/config.go | 3 +--
6+ 1 file changed, 1 insertion(+), 2 deletions(-)
7+
8+diff --git a/vendor/github.com/containers/common/pkg/config/config.go b/vendor/github.com/containers/common/pkg/config/config.go
9+index 4a98c7e92..4a95a2a49 100644
10+--- a/vendor/github.com/containers/common/pkg/config/config.go
11++++ b/vendor/github.com/containers/common/pkg/config/config.go
12+@@ -605,8 +605,7 @@ func (c *EngineConfig) findRuntime() string {
13+ return name
14+ }
15+ }
16+- if path, err := exec.LookPath(name); err == nil {
17+- logrus.Warningf("Found default OCIruntime %s path which is missing from [engine.runtimes] in containers.conf", path)
18++ if _, err := exec.LookPath(name); err == nil {
19+ return name
20+ }
21+ }
22+--
23+2.30.0