mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-22 09:49:35 +00:00
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:
commit
3b957c7ec3
@ -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="/etc/containerd/config.toml"
|
||||||
containerd_conf_file_backup="${containerd_conf_file}.bak"
|
containerd_conf_file_backup="${containerd_conf_file}.bak"
|
||||||
|
|
||||||
shims=(
|
shims_x86_64=(
|
||||||
"fc"
|
"fc"
|
||||||
"qemu"
|
"qemu"
|
||||||
"qemu-nvidia-gpu"
|
"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.
|
# THOSE ARE NOT YET ON MAIN, PLEASE, MOVE THEM TO THE UPPDER LIST WHENEVER THEY MAKE THEIR WAY IN.
|
||||||
shims+=(
|
shims_x86_64+=(
|
||||||
"remote"
|
"remote"
|
||||||
"qemu-se"
|
|
||||||
"clh-tdx"
|
"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"
|
default_shim="qemu"
|
||||||
|
|
||||||
# If we fail for any reason a message will be displayed
|
# If we fail for any reason a message will be displayed
|
||||||
|
Loading…
Reference in New Issue
Block a user