mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-17 15:38:00 +00:00
tools: Improve cached artifacts for qemu
This PR improves the cached artifacts for qemu components. Fixes #5670 Signed-off-by: Gabriela Cervantes <gabriela.cervantes.tellez@intel.com>
This commit is contained in:
parent
4ba26bf86a
commit
3e325f8da7
@ -42,14 +42,6 @@ cache_clh_artifacts() {
|
|||||||
create_cache_asset() {
|
create_cache_asset() {
|
||||||
local component_name="$1"
|
local component_name="$1"
|
||||||
local component_version="$2"
|
local component_version="$2"
|
||||||
local verify_qemu=$(echo "${component_name}" | grep qemu || true)
|
|
||||||
local verify_clh=$(echo "${component_name}" | grep cloud || true)
|
|
||||||
|
|
||||||
if [ ! -z "${verify_qemu}" ]; then
|
|
||||||
local qemu_cc_tarball_path=$(sudo find / -iname "${qemu_cc_tarball_name}")
|
|
||||||
info "qemu cc tarball_path ${qemu_cc_tarball_path}"
|
|
||||||
cp -a "${qemu_cc_tarball_path}" .
|
|
||||||
fi
|
|
||||||
|
|
||||||
sudo chown -R "${USER}:${USER}" .
|
sudo chown -R "${USER}:${USER}" .
|
||||||
sha256sum "${component_name}" > "sha256sum-${component_name}"
|
sha256sum "${component_name}" > "sha256sum-${component_name}"
|
||||||
|
Loading…
Reference in New Issue
Block a user