From 3f5d4eac5f18af2a460b8a7cdc14bf8d13a2dd1b Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Wed, 16 Jul 2025 00:59:22 +0200 Subject: [PATCH] ci: abort init-stage2.sh early if install dir is missing Part-of: --- .gitlab-ci/common/init-stage2.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitlab-ci/common/init-stage2.sh b/.gitlab-ci/common/init-stage2.sh index 7173613dac6..73bbfe19bdc 100755 --- a/.gitlab-ci/common/init-stage2.sh +++ b/.gitlab-ci/common/init-stage2.sh @@ -97,6 +97,11 @@ if [ -n "$HWCI_ENABLE_X86_KVM" ]; then modprobe ${KVM_KERNEL_MODULE} fi +if ! [ -e /install/ ] && ! [ -e $CI_PROJECT_DIR/install/ ]; then + echo "Missing install/ dir" + exit 1 +fi + # Fix prefix confusion: the build installs to $CI_PROJECT_DIR, but we expect # it in /install ln -sf $CI_PROJECT_DIR/install /install