mirror of
https://github.com/containers/podman.git
synced 2025-06-28 14:29:04 +08:00
Do not set the network config dir to cni plugin dir
I do not know why this code was added but it is wrong. We should never use a plugin dir as config dir. Also this will fail for netavark. The correct default will be set in c/common so podman should not touch it. [NO NEW TESTS NEEDED] Ref #13183 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -81,11 +81,6 @@ func newPodmanConfig() {
|
|||||||
mode = entities.TunnelMode
|
mode = entities.TunnelMode
|
||||||
}
|
}
|
||||||
|
|
||||||
cfg.Network.NetworkConfigDir = cfg.Network.CNIPluginDirs[0]
|
|
||||||
if rootless.IsRootless() {
|
|
||||||
cfg.Network.NetworkConfigDir = ""
|
|
||||||
}
|
|
||||||
|
|
||||||
podmanOptions = entities.PodmanConfig{Config: cfg, EngineMode: mode}
|
podmanOptions = entities.PodmanConfig{Config: cfg, EngineMode: mode}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user