diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2021-01-07 05:37:24 -0500 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2021-01-07 05:37:24 -0500 |
commit | d9ebbbfe5b6a22e61091fe764ae2875aa0bf8064 (patch) | |
tree | 525e61c3bef7d9c3c3d93e2532edab937ac7e593 /libpod/networking_linux.go | |
parent | 68c9e02df72cbdfb2d239fb1de020bc1e0dabad3 (diff) | |
download | podman-d9ebbbfe5b6a22e61091fe764ae2875aa0bf8064.tar.gz podman-d9ebbbfe5b6a22e61091fe764ae2875aa0bf8064.tar.bz2 podman-d9ebbbfe5b6a22e61091fe764ae2875aa0bf8064.zip |
Switch references of /var/run -> /run
Systemd is now complaining or mentioning /var/run as a legacy directory.
It has been many years where /var/run is a symlink to /run on all
most distributions, make the change to the default.
Partial fix for https://github.com/containers/podman/issues/8369
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'libpod/networking_linux.go')
-rw-r--r-- | libpod/networking_linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/networking_linux.go b/libpod/networking_linux.go index be6867399..addf1814c 100644 --- a/libpod/networking_linux.go +++ b/libpod/networking_linux.go @@ -685,7 +685,7 @@ func (r *Runtime) setupNetNS(ctr *Container) error { return errors.Wrapf(err, "failed to generate random netns name") } - nsPath := fmt.Sprintf("/var/run/netns/cni-%x-%x-%x-%x-%x", b[0:4], b[4:6], b[6:8], b[8:10], b[10:]) + nsPath := fmt.Sprintf("/run/netns/cni-%x-%x-%x-%x-%x", b[0:4], b[4:6], b[6:8], b[8:10], b[10:]) if err := os.MkdirAll(filepath.Dir(nsPath), 0711); err != nil { return err |