diff options
| author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2024-11-12 20:44:32 +0000 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2024-11-15 19:50:00 +0000 |
| commit | e490dc507154ff1b24ec8b172769d032d1565bbb (patch) | |
| tree | 1406ec904829544e98a9f61b95ad34a5e443c030 | |
| parent | 87b0a869c65da3f098c16d5a208078bdb80267c3 (diff) | |
| download | meta-virtualization-e490dc507154ff1b24ec8b172769d032d1565bbb.tar.gz | |
cni: make cnitool more readily available
Having cnitool available on the path helps usability.
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
| -rw-r--r-- | recipes-networking/cni/cni_git.bb | 4 |
1 files changed, 4 insertions, 0 deletions
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() { | |||
| 94 | install -m 755 ${S}/src/import/cnitool/cnitool ${D}/${localbindir} | 94 | install -m 755 ${S}/src/import/cnitool/cnitool ${D}/${localbindir} |
| 95 | install -m 755 -D ${B}/plugins/bin/* ${D}/${localbindir} | 95 | install -m 755 -D ${B}/plugins/bin/* ${D}/${localbindir} |
| 96 | 96 | ||
| 97 | # make cnitool more available on the path | ||
| 98 | install -d ${D}${bindir} | ||
| 99 | ln -sr ${D}/${localbindir}/cnitool ${D}/${bindir} | ||
| 100 | |||
| 97 | # Parts of k8s expect the cni binaries to be available in /opt/cni | 101 | # Parts of k8s expect the cni binaries to be available in /opt/cni |
| 98 | install -d ${D}/opt/cni | 102 | install -d ${D}/opt/cni |
| 99 | ln -sf ${libexecdir}/cni/ ${D}/opt/cni/bin | 103 | ln -sf ${libexecdir}/cni/ ${D}/opt/cni/bin |
