mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 19:54:35 +00:00
cache-components: Fix TDVF caching
TDVF caching is not working as the tarball name is incorrect. The result expected is kata-static-tdvf.tar.xz, but it's looking for kata-static-tdx.tar.xz. This happens as a logic to convert tdx -> tdvf has been added as part of the building scripts, but I missed doing this as part of the caching scripts. Fixes: #6669 Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
parent
80e3a2d408
commit
3fa0890e5e
@ -44,8 +44,9 @@ cache_nydus_artifacts() {
|
||||
}
|
||||
|
||||
cache_ovmf_artifacts() {
|
||||
local ovmf_tarball_name="kata-static-${OVMF_FLAVOUR}.tar.xz"
|
||||
local current_ovmf_version="$(get_from_kata_deps "externals.ovmf.${OVMF_FLAVOUR}.version")"
|
||||
[ "${OVMF_FLAVOUR}" == "tdx" ] && OVMF_FLAVOUR="tdvf"
|
||||
local ovmf_tarball_name="kata-static-${OVMF_FLAVOUR}.tar.xz"
|
||||
local current_ovmf_image="$(get_ovmf_image_name)"
|
||||
create_cache_asset "${ovmf_tarball_name}" "${current_ovmf_version}" "${current_ovmf_image}"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user