diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2020-11-04 09:51:26 -0500 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2020-11-04 15:32:00 -0500 |
commit | 3daef2e82638a7bdae5037d4fc0d8918a57368e3 (patch) | |
tree | eb5f529c04a8878327ddbe32f640d1461497c265 /pkg | |
parent | 7699557b5d644c31b139b24eb2a260a6ec624b19 (diff) | |
download | podman-3daef2e82638a7bdae5037d4fc0d8918a57368e3.tar.gz podman-3daef2e82638a7bdae5037d4fc0d8918a57368e3.tar.bz2 podman-3daef2e82638a7bdae5037d4fc0d8918a57368e3.zip |
Use /tmp/podman-run-* for backup XDG_RUNTIME_DIR
We need to block systemd from cleaning up this directory
by dropping a /usr/lib/tmpfiles.d/podman.conf file in place.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/util/utils_supported.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/util/utils_supported.go b/pkg/util/utils_supported.go index e08fd6dda..2d636a7cb 100644 --- a/pkg/util/utils_supported.go +++ b/pkg/util/utils_supported.go @@ -38,7 +38,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.Debug(err) } |