diff options
author | Paul Holzinger <pholzing@redhat.com> | 2021-07-06 13:47:28 +0200 |
---|---|---|
committer | Paul Holzinger <pholzing@redhat.com> | 2021-07-15 18:13:16 +0200 |
commit | 1469af265a197e1ede25eab2ba8faf1e3f3396da (patch) | |
tree | 68dd97da6fe2b73496b4d0a34d388bb430122f17 /test/build | |
parent | 4136f8bdc92d26ed9779d43de71743f578e3ead9 (diff) | |
download | podman-1469af265a197e1ede25eab2ba8faf1e3f3396da.tar.gz podman-1469af265a197e1ede25eab2ba8faf1e3f3396da.tar.bz2 podman-1469af265a197e1ede25eab2ba8faf1e3f3396da.zip |
Make rootless-cni setup more robust
The rootless cni namespace needs a valid /etc/resolv.conf file. On some
distros is a symlink to somewhere under /run. Because the kernel will
follow the symlink before mounting, it is not possible to mount a file
at exactly /etc/resolv.conf. We have to ensure that the link target will
be available in the rootless cni mount ns.
Fixes #10855
Also fixed a bug in the /var/lib/cni directory lookup logic. It used
`filepath.Base` instead of `filepath.Dir` and thus looping infinitely.
Fixes #10857
[NO TESTS NEEDED]
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'test/build')
0 files changed, 0 insertions, 0 deletions