• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3rootfs_dst=$1
4
5mkdir -p $rootfs_dst/results
6
7# Set up the init script that brings up the system.
8cp $BM/bm-init.sh $rootfs_dst/init
9cp $CI_COMMON/init*.sh $rootfs_dst/
10
11# Make JWT token available as file in the bare-metal storage to enable access
12# to MinIO
13cp "${CI_JOB_JWT_FILE}" "${rootfs_dst}${CI_JOB_JWT_FILE}"
14
15cp $CI_COMMON/capture-devcoredump.sh $rootfs_dst/
16cp $CI_COMMON/intel-gpu-freq.sh $rootfs_dst/
17
18set +x
19
20# Pass through relevant env vars from the gitlab job to the baremetal init script
21"$CI_COMMON"/generate-env.sh > $rootfs_dst/set-job-env-vars.sh
22chmod +x $rootfs_dst/set-job-env-vars.sh
23echo "Variables passed through:"
24cat $rootfs_dst/set-job-env-vars.sh
25
26set -x
27
28# Add the Mesa drivers we built, and make a consistent symlink to them.
29mkdir -p $rootfs_dst/$CI_PROJECT_DIR
30rsync -aH --delete $CI_PROJECT_DIR/install/ $rootfs_dst/$CI_PROJECT_DIR/install/
31