Merge pull request #7477 from fidencio/topic/CCv0-converge-build-and-payload-scripts-follow-up-7

CC | kata-deploy: Use different shim arrays for different arches
This commit is contained in:
Fabiano Fidêncio 2023-07-27 23:00:00 +02:00 committed by GitHub
commit 3b957c7ec3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@ crio_drop_in_conf_file="${crio_drop_in_conf_dir}/99-kata-deploy"
containerd_conf_file="/etc/containerd/config.toml"
containerd_conf_file_backup="${containerd_conf_file}.bak"
shims=(
shims_x86_64=(
"fc"
"qemu"
"qemu-nvidia-gpu"
@ -25,12 +25,31 @@ shims=(
)
# THOSE ARE NOT YET ON MAIN, PLEASE, MOVE THEM TO THE UPPDER LIST WHENEVER THEY MAKE THEIR WAY IN.
shims+=(
shims_x86_64+=(
"remote"
"qemu-se"
"clh-tdx"
)
shims_s390x=(
"qemu"
)
# THOSE ARE NOT YET ON MAIN, PLEASE, MOVE THEM TO THE UPPDER LIST WHENEVER THEY MAKE THEIR WAY IN.
shims_s390x+=(
"remote"
"qemu-se"
)
arch=$(uname -m)
if [[ "${arch}" == "x86_64" ]]; then
shims=${shims_x86_64[@]}
else if [[ "${arch}" == "s390x" ]]; then
shims=${shims_s390x[@]}
else
die "${arch} is a not supported architecture"
fi
default_shim="qemu"
# If we fail for any reason a message will be displayed