• 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
11cp $CI_COMMON/capture-devcoredump.sh $rootfs_dst/
12
13set +x
14# Pass through relevant env vars from the gitlab job to the baremetal init script
15"$CI_COMMON"/generate-env.sh > $rootfs_dst/set-job-env-vars.sh
16chmod +x $rootfs_dst/set-job-env-vars.sh
17echo "Variables passed through:"
18cat $rootfs_dst/set-job-env-vars.sh
19echo "export CI_JOB_JWT=${CI_JOB_JWT@Q}" >> $rootfs_dst/set-job-env-vars.sh
20set -x
21
22# Add the Mesa drivers we built, and make a consistent symlink to them.
23mkdir -p $rootfs_dst/$CI_PROJECT_DIR
24rsync -aH --delete $CI_PROJECT_DIR/install/ $rootfs_dst/$CI_PROJECT_DIR/install/
25