diff options
| author | Stefan Agner <stefan.agner@toradex.com> | 2019-09-20 09:18:05 +0200 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2019-10-02 14:13:35 -0400 |
| commit | aa509c629e1f623ff63ae2f685f5605b309a0e3d (patch) | |
| tree | c6b024b78f0f4ecf97b8ec60e9be668b949dcc4e /recipes-networking/cni | |
| parent | 05db2367ccc54fb04fd1abe20a39c6114a482817 (diff) | |
| download | meta-virtualization-aa509c629e1f623ff63ae2f685f5605b309a0e3d.tar.gz | |
cni: move cni tools to /usr/libexec/cni
Use a standard location to store the cni tools and plugins. This
is more in line how other distributions package cni. Keep a symlink
to /opt/cni/bin for backward compatibility.
Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-networking/cni')
| -rw-r--r-- | recipes-networking/cni/cni_git.bb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/recipes-networking/cni/cni_git.bb b/recipes-networking/cni/cni_git.bb index 5348b953..b8adf886 100644 --- a/recipes-networking/cni/cni_git.bb +++ b/recipes-networking/cni/cni_git.bb | |||
| @@ -63,16 +63,20 @@ do_compile() { | |||
| 63 | } | 63 | } |
| 64 | 64 | ||
| 65 | do_install() { | 65 | do_install() { |
| 66 | localbindir="/opt/cni/bin" | 66 | localbindir="${libexecdir}/cni/" |
| 67 | 67 | ||
| 68 | install -d ${D}${localbindir} | 68 | install -d ${D}${localbindir} |
| 69 | install -d ${D}/${sysconfdir}/cni/net.d | 69 | install -d ${D}/${sysconfdir}/cni/net.d |
| 70 | 70 | ||
| 71 | install -m 755 ${S}/src/import/cnitool/cnitool ${D}/${localbindir} | 71 | install -m 755 ${S}/src/import/cnitool/cnitool ${D}/${localbindir} |
| 72 | install -m 755 -D ${WORKDIR}/plugins/bin/* ${D}/${localbindir} | 72 | install -m 755 -D ${WORKDIR}/plugins/bin/* ${D}/${localbindir} |
| 73 | |||
| 74 | # Parts of k8s expect the cni binaries to be available in /opt/cni | ||
| 75 | install -d ${D}/opt/cni | ||
| 76 | ln -sf ${libexecdir}/cni/ ${D}/opt/cni/bin | ||
| 73 | } | 77 | } |
| 74 | 78 | ||
| 75 | FILES_${PN} += "/opt/cni/bin/*" | 79 | FILES_${PN} += "${libexecdir}/cni/* /opt/cni/bin" |
| 76 | 80 | ||
| 77 | INSANE_SKIP_${PN} += "ldflags already-stripped" | 81 | INSANE_SKIP_${PN} += "ldflags already-stripped" |
| 78 | 82 | ||
