cache: Use "initrd" as initrd_type to build rootfs-initrd

We've been defaulting to "", which would lead to a mismatch with the
latest version from the cache, causing a miss, and finally having to
build the rootfs-initrd as part of the tests, every single time.

Fixes: #6917

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
Fabiano Fidêncio 2023-05-22 10:05:28 +02:00
parent a28cefd538
commit b7341cd968

View File

@ -159,7 +159,7 @@ install_image() {
#Install guest initrd
install_initrd() {
local initrd_type="${1:-""}"
local initrd_type="${1:-"initrd"}"
local initrd_suffix="${2:-""}"
local jenkins="${jenkins_url}/job/kata-containers-main-rootfs-${initrd_type}-$(uname -m)/${cached_artifacts_path}"
local component="rootfs-${initrd_type}"