Skip to content

Commit

Permalink
Merge pull request kata-containers#3735 from fidencio/wip/kata-deploy…
Browse files Browse the repository at this point in the history
…-use-kata-with-qemu-as-the-default-shim-v2-binary

kata-deploy: Use (kata with) qemu as the default shim-v2 binary
  • Loading branch information
fidencio authored Feb 21, 2022
2 parents 1e9f3c8 + 11220f0 commit e604f83
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tools/packaging/kata-deploy/scripts/kata-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ shims=(
"clh"
)

default_shim="qemu"

# If we fail for any reason a message will be displayed
die() {
msg="$*"
Expand Down Expand Up @@ -97,6 +99,11 @@ function configure_different_shims_base() {
KATA_CONF_FILE=/opt/kata/share/defaults/kata-containers/configuration-${shim}.toml /opt/kata/bin/containerd-shim-kata-v2 "\$@"
EOT
chmod +x "$shim_file"

if [ "${shim}" == "${default_shim}" ]; then
echo "Creating the default shim-v2 binary"
ln -sf "${shim_file}" /usr/local/bin/containerd-shim-kata-v2
fi
done
}

Expand All @@ -112,6 +119,8 @@ function cleanup_different_shims_base() {
mv "$shim_backup" "$shim_file"
fi
done

rm /usr/local/bin/containerd-shim-kata-v2
}

function configure_crio_runtime() {
Expand Down

0 comments on commit e604f83

Please sign in to comment.