Skip to content

Commit

Permalink
fix: copy CNI plugins to /opt (#284)
Browse files Browse the repository at this point in the history
Copy CNI plugins to /opt
  • Loading branch information
p5 authored Aug 11, 2024
1 parent 17d48e1 commit af15dea
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lumina/scripts/_base/015-firecracker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ install -c -m 0755 /tmp/release-${LATEST_VERSION}-$(uname -m)/jailer-${LATEST_VE


curl -Lo /tmp/cni-plugins.tgz $(curl https://api.github.com/repos/containernetworking/plugins/releases/latest | jq -r '.assets[] | select(.name| test("cni-plugins-linux-amd64-v.*.tgz$")).browser_download_url')
mkdir -p /tmp/cni-plugins
tar -xzf /tmp/cni-plugins.tgz -C /tmp/cni-plugins
mkdir -p /usr/cni/bin
mv /tmp/cni-plugins/* /usr/cni/bin
tar -xzf /tmp/cni-plugins.tgz -C /usr/cni/bin

cat >/usr/lib/tmpfiles.d/eternal-cni.conf <<EOF
C /opt/cni/bin 0755 root root - /usr/cni/bin
EOF

0 comments on commit af15dea

Please sign in to comment.