mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-31 08:28:34 +00:00
ubuntu: 20.04 is focal, not bionic
Let's use the correct OS version name for Ubuntu 20.04. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
@@ -26,7 +26,7 @@ if [ "${AA_KBC}" == "eaa_kbc" ] && [ "${ARCH}" == "x86_64" ]; then
|
||||
if [ "${VERSION_ID}" == "20.04" ]; then
|
||||
PACKAGES+=" apt gnupg"
|
||||
AA_KBC_EXTRAS="
|
||||
RUN echo 'deb [arch=amd64] http://mirrors.openanolis.cn/inclavare-containers/ubuntu${VERSION_ID} bionic main' \| tee /etc/apt/sources.list.d/inclavare-containers.list; \
|
||||
RUN echo 'deb [arch=amd64] http://mirrors.openanolis.cn/inclavare-containers/ubuntu${VERSION_ID} ${OS_VERSION} main' \| tee /etc/apt/sources.list.d/inclavare-containers.list; \
|
||||
curl -L http://mirrors.openanolis.cn/inclavare-containers/ubuntu${VERSION_ID}/DEB-GPG-KEY.key \| apt-key add -; \
|
||||
apt-get update; \
|
||||
apt-get install -y rats-tls
|
||||
|
@@ -39,7 +39,7 @@ EOF
|
||||
if [ "${VERSION_ID}" == "20.04" ]; then
|
||||
curl -L http://mirrors.openanolis.cn/inclavare-containers/ubuntu${VERSION_ID}/DEB-GPG-KEY.key | chroot "$rootfs_dir" apt-key add -
|
||||
cat << EOF | chroot "$rootfs_dir"
|
||||
echo 'deb [arch=amd64] http://mirrors.openanolis.cn/inclavare-containers/ubuntu${VERSION_ID} bionic main' | tee /etc/apt/sources.list.d/inclavare-containers.list
|
||||
echo 'deb [arch=amd64] http://mirrors.openanolis.cn/inclavare-containers/ubuntu${VERSION_ID} focal main' | tee /etc/apt/sources.list.d/inclavare-containers.list
|
||||
apt-get update
|
||||
apt-get install -y rats-tls
|
||||
EOF
|
||||
|
Reference in New Issue
Block a user