Skip to content

Commit

Permalink
Merge pull request #118 from m-lab/sandbox-soltesz-readme
Browse files Browse the repository at this point in the history
Fix symlink reference to files in pwd
  • Loading branch information
stephen-soltesz authored May 24, 2019
2 parents 13f2e98 + 9974bdf commit ee038c9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup_stage3_coreos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,13 @@ pushd $IMAGEDIR
# Install the cni binaries: bridge, flannel, host-local, ipvlan, loopback, and
# others.
mkdir -p squashfs-root/cni/bin
curl --location "https://github.com/containernetworking/plugins/releases/download/${CNI_VERSION}/cni-plugins-amd64-${CNI_VERSION}.tgz" | tar --directory=squashfs-root/cni/bin -xz
curl --location "https://github.com/containernetworking/plugins/releases/download/${CNI_VERSION}/cni-plugins-amd64-${CNI_VERSION}.tgz" \
| tar --directory=squashfs-root/cni/bin -xz

# Make all the shims so that network plugins can be debugged.
mkdir -p squashfs-root/shimcni/bin
pushd squashfs-root/shimcni/bin
for i in squashfs-root/cni/bin/*; do
for i in ${IMAGEDIR}/squashfs-root/cni/bin/*; do
# NOTE: the target path does not exist at this moment, but that's the file
# the symlink should reference in the final image filesystem.
ln -s /usr/shimcni/bin/shim.sh $(basename "$i")
Expand Down

0 comments on commit ee038c9

Please sign in to comment.