From e490dc507154ff1b24ec8b172769d032d1565bbb Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Tue, 12 Nov 2024 20:44:32 +0000 Subject: [PATCH] cni: make cnitool more readily available Having cnitool available on the path helps usability. Signed-off-by: Bruce Ashfield --- recipes-networking/cni/cni_git.bb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes-networking/cni/cni_git.bb b/recipes-networking/cni/cni_git.bb index cc07a0d5..0ba70746 100644 --- a/recipes-networking/cni/cni_git.bb +++ b/recipes-networking/cni/cni_git.bb @@ -94,6 +94,10 @@ do_install() { install -m 755 ${S}/src/import/cnitool/cnitool ${D}/${localbindir} install -m 755 -D ${B}/plugins/bin/* ${D}/${localbindir} + # make cnitool more available on the path + install -d ${D}${bindir} + ln -sr ${D}/${localbindir}/cnitool ${D}/${bindir} + # Parts of k8s expect the cni binaries to be available in /opt/cni install -d ${D}/opt/cni ln -sf ${libexecdir}/cni/ ${D}/opt/cni/bin