Skip to content

Commit

Permalink
kata-deploy: fix install failing to chmod runtime-rs/bin/*
Browse files Browse the repository at this point in the history
The kata-deploy install method tried to `chmod +x /opt/kata/runtime-rs/bin/*` but it isn't
always true that /opt/kata/runtime-rs/bin/ exists. For example, the
s390x payload does not build the kernel-dragonball-experimental
artifacts. So let's ensure the dir exist before issuing the command.

Fixes #6494
Signed-off-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
  • Loading branch information
wainersm committed Mar 17, 2023
1 parent 09c4828 commit 4f0887c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/packaging/kata-deploy/scripts/kata-deploy.sh
Expand Up @@ -58,7 +58,8 @@ function install_artifacts() {
echo "copying kata artifacts onto host"
cp -au /opt/kata-artifacts/opt/kata/* /opt/kata/
chmod +x /opt/kata/bin/*
chmod +x /opt/kata/runtime-rs/bin/*
[ -d /opt/kata/runtime-rs/bin ] && \
chmod +x /opt/kata/runtime-rs/bin/*
}

function configure_cri_runtime() {
Expand Down

0 comments on commit 4f0887c

Please sign in to comment.