kata-manager: Copy cni files under /opt/cni

nerdctl requires cni plugins to be installed in /opt/cni/bin
Without bridge plugin installed, it is not possible to run a
container with nerdctl.
The downloaded nerdctl tarball contains cni plugin files, but are
extracted under /usr/local/libexec.
Copy extracted tarball cni files under /usr/local/libexec
to /opt/cni/bin

Signed-off-by: Archana Shinde <archana.m.shinde@intel.com>
This commit is contained in:
Archana Shinde 2024-05-18 00:16:48 +00:00
parent 6ca0f09710
commit d23d58a484

View File

@ -584,6 +584,14 @@ install_nerdctl()
done
info "$project installed\n"
sudo mkdir -p /opt/cni/bin
# nerdctl requires cni plugins to be installed in /opt/cni/bin
# Copy extracted tarball cni files under /usr/local/libexec
sudo cp /usr/local/libexec/cni/* /opt/cni/bin/
info "cni plugins installed under /opt/cni/bin"
}
configure_containerd()