Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
cc: install_kata_image: Update to the Aug 1st kata-containers merge
Browse files Browse the repository at this point in the history
A few names must be changed, as we're using those as close from the
`main` as possible.

" sev-rootfs-initrd -> rootfs-initrd-sev
* tdx-rootfs-image -> rootfs-image-tdx

Depends-on: github.com/kata-containers/kata-containers#7513

Signed-off-by: Fabiano Fidêncio <[email protected]>
  • Loading branch information
fidencio committed Aug 3, 2023
1 parent 8f684d7 commit 5745a49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .ci/install_kata_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ build_image_for_cc () {
if [ "${TEE_TYPE}" != "sev" ] && [ "${TEE_TYPE}" != "snp" ]; then
die "SEV and SNP are the only TEE types that supports initrd"
fi
build_static_artifact_and_install "sev-rootfs-initrd"
build_static_artifact_and_install "rootfs-initrd-sev"
else
[ "${osbuilder_distro:-ubuntu}" == "ubuntu" ] || \
die "The only supported image for Confidential Containers is Ubuntu"
Expand All @@ -33,7 +33,7 @@ build_image_for_cc () {
# Cloud Hypervisor is still using `offline_fs_kbc`, so it has to
# use the generic image. QEMU, on the other hand, is using
# `cc_kbc` and it requires the `tdx-rootfs-image`.
build_static_artifact_and_install "tdx-rootfs-image"
build_static_artifact_and_install "rootfs-image-tdx"
elif [ "${TEE_TYPE}" == "se" ]; then
build_static_artifact_and_install "rootfs-initrd"
else
Expand All @@ -51,4 +51,4 @@ main() {
fi
}

main
main
2 changes: 1 addition & 1 deletion .ci/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ function build_static_artifact_and_install() {
# Use different target for Confidential Containers.
if [ "${KATA_BUILD_CC:-no}" == "yes" ]; then
case ${artifact} in
"tdx-td-shim"|"sev-rootfs-initrd"|"tdx-rootfs-image"|"rootfs-image"|"rootfs-initrd"|"se-image"|"shim-v2")
"tdx-td-shim"|"rootfs-image"|"rootfs-initrd"|"se-image"|"shim-v2")
info "${make_target} is being used with the component from the CCv0 branch"
make_target="cc-${make_target}"
tarball="kata-static-cc-${artifact}.tar.xz"
Expand Down

0 comments on commit 5745a49

Please sign in to comment.