From c093a09660bf528e83dfc8626d59dd0447540a96 Mon Sep 17 00:00:00 2001 From: Valentine Burley Date: Thu, 8 May 2025 10:44:52 +0200 Subject: [PATCH] ci/baremetal: Fix rootfs URL detection The previous check used a directory path without the filename, causing `curl` to return 404 and always fall back to the fork's URL. Add the rootfs filename to ensure the check works as intended. Fixes: 13db56320bb ("ci/baremetal: Use container rootfs") Signed-off-by: Valentine Burley Part-of: --- .gitlab-ci/container/baremetal_build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci/container/baremetal_build.sh b/.gitlab-ci/container/baremetal_build.sh index 9abf8912ca8..8deadb970df 100644 --- a/.gitlab-ci/container/baremetal_build.sh +++ b/.gitlab-ci/container/baremetal_build.sh @@ -9,7 +9,7 @@ set -o xtrace S3_PATH="https://${S3_HOST}/${S3_KERNEL_BUCKET}" -if curl -L --retry 3 -f --retry-delay 10 -s --head "${S3_PATH}/${FDO_UPSTREAM_REPO}/${LAVA_DISTRIBUTION_TAG}"; then +if curl -L --retry 3 -f --retry-delay 10 -s --head "${S3_PATH}/${FDO_UPSTREAM_REPO}/${LAVA_DISTRIBUTION_TAG}/lava-rootfs.tar.zst"; then ARTIFACTS_URL="${S3_PATH}/${FDO_UPSTREAM_REPO}/${LAVA_DISTRIBUTION_TAG}" else ARTIFACTS_URL="${S3_PATH}/${CI_PROJECT_PATH}/${LAVA_DISTRIBUTION_TAG}"