mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-29 12:54:10 +00:00
Merge pull request #917 from bergwolf/fix-cloud_hypervisor_repo
packaging: fix missing cloud_hypervisor_repo
This commit is contained in:
commit
490f030e2a
@ -175,7 +175,7 @@ install_clh() {
|
|||||||
kata_version="${kata_version}" "${pkg_root_dir}/static-build/cloud-hypervisor/build-static-clh.sh"
|
kata_version="${kata_version}" "${pkg_root_dir}/static-build/cloud-hypervisor/build-static-clh.sh"
|
||||||
info "Install static cloud-hypervisor"
|
info "Install static cloud-hypervisor"
|
||||||
mkdir -p "${destdir}/opt/kata/bin/"
|
mkdir -p "${destdir}/opt/kata/bin/"
|
||||||
sudo install -D --owner root --group root --mode 0744 cloud-hypervisor "${destdir}/opt/kata/bin/cloud-hypervisor"
|
sudo install -D --owner root --group root --mode 0744 cloud-hypervisor/cloud-hypervisor "${destdir}/opt/kata/bin/cloud-hypervisor"
|
||||||
pushd "${destdir}"
|
pushd "${destdir}"
|
||||||
# create tarball for github release action
|
# create tarball for github release action
|
||||||
tar -czvf ../kata-static-clh.tar.gz *
|
tar -czvf ../kata-static-clh.tar.gz *
|
||||||
|
@ -13,8 +13,17 @@ kata_version="${kata_version:-}"
|
|||||||
|
|
||||||
source "${script_dir}/../../scripts/lib.sh"
|
source "${script_dir}/../../scripts/lib.sh"
|
||||||
|
|
||||||
|
cloud_hypervisor_repo="${cloud_hypervisor_repo:-}"
|
||||||
cloud_hypervisor_version="${cloud_hypervisor_version:-}"
|
cloud_hypervisor_version="${cloud_hypervisor_version:-}"
|
||||||
|
|
||||||
|
if [ -z "$cloud_hypervisor_repo" ]; then
|
||||||
|
info "Get cloud_hypervisor information from runtime versions.yaml"
|
||||||
|
cloud_hypervisor_url=$(get_from_kata_deps "assets.hypervisor.cloud_hypervisor.url" "${kata_version}")
|
||||||
|
[ -n "$cloud_hypervisor_url" ] || die "failed to get cloud_hypervisor url"
|
||||||
|
cloud_hypervisor_repo="${cloud_hypervisor_url}.git"
|
||||||
|
fi
|
||||||
|
[ -n "$cloud_hypervisor_repo" ] || die "failed to get cloud_hypervisor repo"
|
||||||
|
|
||||||
[ -n "$cloud_hypervisor_version" ] || cloud_hypervisor_version=$(get_from_kata_deps "assets.hypervisor.cloud_hypervisor.version" "${kata_version}")
|
[ -n "$cloud_hypervisor_version" ] || cloud_hypervisor_version=$(get_from_kata_deps "assets.hypervisor.cloud_hypervisor.version" "${kata_version}")
|
||||||
[ -n "$cloud_hypervisor_version" ] || die "failed to get cloud_hypervisor version"
|
[ -n "$cloud_hypervisor_version" ] || die "failed to get cloud_hypervisor version"
|
||||||
|
|
||||||
@ -22,7 +31,9 @@ pull_clh_released_binary() {
|
|||||||
info "Download cloud-hypervisor version: ${cloud_hypervisor_version}"
|
info "Download cloud-hypervisor version: ${cloud_hypervisor_version}"
|
||||||
cloud_hypervisor_binary="https://github.com/cloud-hypervisor/cloud-hypervisor/releases/download/${cloud_hypervisor_version}/cloud-hypervisor-static"
|
cloud_hypervisor_binary="https://github.com/cloud-hypervisor/cloud-hypervisor/releases/download/${cloud_hypervisor_version}/cloud-hypervisor-static"
|
||||||
|
|
||||||
curl --fail -L ${cloud_hypervisor_binary} -o cloud-hypervisor || return 1
|
curl --fail -L ${cloud_hypervisor_binary} -o cloud-hypervisor-static || return 1
|
||||||
|
mkdir -p cloud-hypervisor
|
||||||
|
mv -f cloud-hypervisor-static cloud-hypervisor/cloud-hypervisor
|
||||||
}
|
}
|
||||||
|
|
||||||
build_clh_from_source() {
|
build_clh_from_source() {
|
||||||
|
Loading…
Reference in New Issue
Block a user