mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-05 11:36:56 +00:00
Since #11197 was merged, all confidential k8s e2e tests for s390x have been failing with the following errors: ``` attestation-agent: error while loading shared libraries: libcurl.so.4: cannot open shared object file libnghttp2.so.14: cannot open shared object file ``` In line with the update on x86_64, we need to upgrade the OS used in rootfs-{image,initrd} on s390x. This commit also bumps all 22.04 to 24.04 for all architectures. For s390x, this ensures the missing packages listed above are installed. Signed-off-by: Hyounggyu Choi <Hyounggyu.Choi@ibm.com>
35 lines
1.1 KiB
Bash
35 lines
1.1 KiB
Bash
#!/usr/bin/env bash
|
|
#
|
|
# Copyright (c) 2018 Yash Jain, 2022 IBM Corp.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
OS_NAME=ubuntu
|
|
# This should be Ubuntu's code name, e.g. "focal" (Focal Fossa) for 20.04
|
|
OS_VERSION=${OS_VERSION:-""}
|
|
[ -z "$OS_VERSION" ] && echo "OS_VERSION is required, but was not set" && exit 1
|
|
PACKAGES="chrony iptables dbus"
|
|
[ "$AGENT_INIT" = no ] && PACKAGES+=" init"
|
|
[ "$MEASURED_ROOTFS" = yes ] && PACKAGES+=" cryptsetup-bin e2fsprogs"
|
|
[ "$SECCOMP" = yes ] && PACKAGES+=" libseccomp2"
|
|
[ "$(uname -m)" = "s390x" ] && PACKAGES+=" libcurl4 libnghttp2-14"
|
|
REPO_COMPONENTS=${REPO_COMPONENTS:-main}
|
|
|
|
case "$ARCH" in
|
|
aarch64) DEB_ARCH=arm64;;
|
|
ppc64le) DEB_ARCH=ppc64el;;
|
|
s390x) DEB_ARCH="$ARCH";;
|
|
x86_64) DEB_ARCH=amd64; REPO_URL=${REPO_URL_X86_64:-${REPO_URL:-http://archive.ubuntu.com/ubuntu}};;
|
|
*) die "$ARCH not supported"
|
|
esac
|
|
REPO_URL=${REPO_URL:-http://ports.ubuntu.com}
|
|
|
|
if [ "$(uname -m)" != "$ARCH" ]; then
|
|
case "$ARCH" in
|
|
ppc64le) cc_arch=powerpc64le;;
|
|
x86_64) cc_arch=x86-64;;
|
|
*) cc_arch="$ARCH"
|
|
esac
|
|
export CC="$cc_arch-linux-gnu-gcc"
|
|
fi
|