• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 "${CI_JOB_JWT_FILE}" "${rootfs_dst}${CI_JOB_JWT_FILE}"
17
18date +'%F %T'
19
20cp $CI_COMMON/capture-devcoredump.sh $rootfs_dst/
21cp $CI_COMMON/intel-gpu-freq.sh $rootfs_dst/
22cp $CI_COMMON/kdl.sh $rootfs_dst/
23cp "$SCRIPTS_DIR/setup-test-env.sh" "$rootfs_dst/"
24
25set +x
26
27# Pass through relevant env vars from the gitlab job to the baremetal init script
28echo "Variables passed through:"
29"$CI_COMMON"/generate-env.sh | tee $rootfs_dst/set-job-env-vars.sh
30
31set -x
32
33# Add the Mesa drivers we built, and make a consistent symlink to them.
34mkdir -p $rootfs_dst/$CI_PROJECT_DIR
35rsync -aH --delete $CI_PROJECT_DIR/install/ $rootfs_dst/$CI_PROJECT_DIR/install/
36
37date +'%F %T'
38