diff options
Diffstat (limited to '.gitlab-ci/bare-metal')
-rwxr-xr-x | .gitlab-ci/bare-metal/cros-servo.sh | 2 | ||||
-rwxr-xr-x | .gitlab-ci/bare-metal/fastboot.sh | 6 | ||||
-rw-r--r-- | .gitlab-ci/bare-metal/rootfs-setup.sh | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/.gitlab-ci/bare-metal/cros-servo.sh b/.gitlab-ci/bare-metal/cros-servo.sh index 6caff73bb93..0b978df73a3 100755 --- a/.gitlab-ci/bare-metal/cros-servo.sh +++ b/.gitlab-ci/bare-metal/cros-servo.sh @@ -49,7 +49,7 @@ set -ex # Create the rootfs in the NFS directory. rm to make sure it's in a pristine # state, since it's volume-mounted on the host. -rm -rf /nfs/* +rsync -a --delete $BM_ROOTFS/ /nfs/ mkdir -p /nfs/results . $BM/rootfs-setup.sh /nfs diff --git a/.gitlab-ci/bare-metal/fastboot.sh b/.gitlab-ci/bare-metal/fastboot.sh index f7db884c9f0..72d38b4d718 100755 --- a/.gitlab-ci/bare-metal/fastboot.sh +++ b/.gitlab-ci/bare-metal/fastboot.sh @@ -47,8 +47,10 @@ fi set -ex -# Create the rootfs in a temp dir -mkdir rootfs +# Copy the rootfs to a temporary for our setup, as I believe changes to the +# container can end up impacting future runs. +cp -Rp $BM_ROOTFS/ rootfs + . .gitlab-ci/bare-metal/rootfs-setup.sh rootfs # Finally, pack it up into a cpio rootfs. Skip the vulkan CTS since none of diff --git a/.gitlab-ci/bare-metal/rootfs-setup.sh b/.gitlab-ci/bare-metal/rootfs-setup.sh index 1187971a190..0181a4e8fac 100644 --- a/.gitlab-ci/bare-metal/rootfs-setup.sh +++ b/.gitlab-ci/bare-metal/rootfs-setup.sh @@ -2,9 +2,7 @@ rootfs_dst=$1 -# Copy the rootfs to a temporary for our setup, as I believe changes to the -# container can end up impacting future runs. -cp -Rp $BM_ROOTFS/. $rootfs_dst +mkdir -p $rootfs_dst/results # Set up the init script that brings up the system. cp $BM/init.sh $rootfs_dst/init |