1#!/usr/bin/env bash 2# shellcheck disable=SC2086 # we want word splitting 3 4rootfs_dst=$1 5 6mkdir -p $rootfs_dst/results 7 8# Set up the init script that brings up the system. 9cp $BM/bm-init.sh $rootfs_dst/init 10cp $CI_COMMON/init*.sh $rootfs_dst/ 11 12date +'%F %T' 13 14# Make JWT token available as file in the bare-metal storage to enable access 15# to MinIO 16cp "${S3_JWT_FILE}" "${rootfs_dst}${S3_JWT_FILE}" 17 18date +'%F %T' 19 20cp "$SCRIPTS_DIR/setup-test-env.sh" "$rootfs_dst/" 21 22set +x 23 24# Pass through relevant env vars from the gitlab job to the baremetal init script 25echo "Variables passed through:" 26"$CI_COMMON"/generate-env.sh | tee $rootfs_dst/set-job-env-vars.sh 27 28set -x 29 30# Add the Mesa drivers we built, and make a consistent symlink to them. 31mkdir -p $rootfs_dst/$CI_PROJECT_DIR 32rsync -aH --delete $CI_PROJECT_DIR/install/ $rootfs_dst/$CI_PROJECT_DIR/install/ 33 34date +'%F %T' 35