mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-31 08:28:34 +00:00
cc: cache: shim-v2: Allow root_hashes to be downloaded
We should not return, in case cache is not used, before actually downloading the root_hash_*.txt provided by the other components, otherwise the job used to do the caching will always fail. Fixes: #7422 Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
@@ -175,10 +175,6 @@ install_cached_cc_shim_v2() {
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ "${USE_CACHE}" != "yes" ]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
local component="${1}"
|
||||
local jenkins_build_url="${2}"
|
||||
local current_version="${3}"
|
||||
@@ -222,6 +218,10 @@ install_cached_cc_shim_v2() {
|
||||
wget "${jenkins_build_url}/root_hash_tdx.txt" -O "shim_v2_root_hash_tdx.txt" || return 1
|
||||
diff "${root_hash_tdx}" "shim_v2_root_hash_tdx.txt" > /dev/null || return 1
|
||||
|
||||
if [ "${USE_CACHE}" != "yes" ]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
install_cached_tarball_component \
|
||||
"${component}" \
|
||||
"${jenkins_build_url}" \
|
||||
|
Reference in New Issue
Block a user