mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 04:04:45 +00:00
clh: correct cloud-hypervisor installation
Currently, there is cloud hypervisor binary released only for x86, thus we must build from source code when install cloud hypervisor on arm64. Fixes: #2410 Signed-off-by: Jianyong Wu <jianyong.wu@arm.com>
This commit is contained in:
parent
e07a9fea79
commit
f981fc6456
@ -8,6 +8,11 @@ set -o errexit
|
|||||||
set -o nounset
|
set -o nounset
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
|
ARCH=$(uname -m)
|
||||||
|
|
||||||
|
# Currently, Cloud Hypervisor only support arm64 and x86_64
|
||||||
|
[ "${ARCH}" != "aarch64" ] && [ "${ARCH}" != "x86_64" ] && exit
|
||||||
|
|
||||||
script_dir=$(dirname $(readlink -f "$0"))
|
script_dir=$(dirname $(readlink -f "$0"))
|
||||||
kata_version="${kata_version:-}"
|
kata_version="${kata_version:-}"
|
||||||
|
|
||||||
@ -50,7 +55,7 @@ build_clh_from_source() {
|
|||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
if ! pull_clh_released_binary; then
|
if [ ${ARCH} == "aarch64" ] || ! pull_clh_released_binary; then
|
||||||
info "failed to pull cloud-hypervisor released binary, trying to build from source"
|
info "arch is aarch64 or failed to pull cloud-hypervisor released binary on x86_64, trying to build from source"
|
||||||
build_clh_from_source
|
build_clh_from_source
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user