From 66fee592b112e40e7a9178d2f39ed48994cf0c9c Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Wed, 8 Sep 2021 14:22:05 +0200 Subject: [PATCH] Fix the fallback runtime path Podman should not use `/tmp/run-...`. The Podman PR#8241 changed the path to `/tmp/podman-run-...` and added systemd tmpfile config to make sure the path is not removed. However the tmpDir is set in c/common and was never changed. Fixes containers/podman#11478 Signed-off-by: Paul Holzinger --- pkg/config/util_supported.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/config/util_supported.go b/pkg/config/util_supported.go index 417e3a375..33e4a9e8f 100644 --- a/pkg/config/util_supported.go +++ b/pkg/config/util_supported.go @@ -48,7 +48,7 @@ func getRuntimeDir() (string, error) { } } if runtimeDir == "" { - tmpDir := filepath.Join(os.TempDir(), fmt.Sprintf("run-%s", uid)) + tmpDir := filepath.Join(os.TempDir(), fmt.Sprintf("podman-run-%s", uid)) if err := os.MkdirAll(tmpDir, 0700); err != nil { logrus.Debugf("unable to make temp dir %v", err) }