mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-22 12:50:35 +01:00
This unifies the behaviour between the LAVA, baremetal, and CI-Tron farms by ensuring every job has access and runs the same scripts. The init-* scripts are however still sourced from outside the build artifact, hopefully not for too long. Signed-off-by: Martin Roukala (né Peres) <martin.roukala@mupuf.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33026>
34 lines
869 B
Bash
34 lines
869 B
Bash
#!/usr/bin/env bash
|
|
# shellcheck disable=SC2086 # we want word splitting
|
|
|
|
rootfs_dst=$1
|
|
|
|
mkdir -p $rootfs_dst/results
|
|
|
|
# Set up the init script that brings up the system.
|
|
cp $BM/bm-init.sh $rootfs_dst/init
|
|
cp $CI_COMMON/init*.sh $rootfs_dst/
|
|
|
|
date +'%F %T'
|
|
|
|
# Make JWT token available as file in the bare-metal storage to enable access
|
|
# to MinIO
|
|
cp "${S3_JWT_FILE}" "${rootfs_dst}${S3_JWT_FILE}"
|
|
|
|
date +'%F %T'
|
|
|
|
cp "$SCRIPTS_DIR/setup-test-env.sh" "$rootfs_dst/"
|
|
|
|
set +x
|
|
|
|
# Pass through relevant env vars from the gitlab job to the baremetal init script
|
|
echo "Variables passed through:"
|
|
"$CI_COMMON"/generate-env.sh | tee $rootfs_dst/set-job-env-vars.sh
|
|
|
|
set -x
|
|
|
|
# Add the Mesa drivers we built, and make a consistent symlink to them.
|
|
mkdir -p $rootfs_dst/$CI_PROJECT_DIR
|
|
rsync -aH --delete $CI_PROJECT_DIR/install/ $rootfs_dst/$CI_PROJECT_DIR/install/
|
|
|
|
date +'%F %T'
|