diff --git a/buildbot/start_script.sh b/buildbot/start_script.sh index c53393fca..3009deb11 100755 --- a/buildbot/start_script.sh +++ b/buildbot/start_script.sh @@ -34,14 +34,14 @@ mountpoint /tmp || mount -o nosuid -t tmpfs tmpfs /tmp || $ON_ERROR ${SCRIPT_DIR}/install_deps.sh mkdir -p $BOT_DIR -#if [[ "$(arch)" == "x86_64" ]]; then -# # Format and mount scratch drive. -# [[ -e /dev/md0 ]] || { -# yes | mdadm --create /dev/md0 --level=0 -q -f --raid-devices=$(ls /dev/nvme*n* | wc -l) /dev/nvme*n* -# mkfs.xfs /dev/md0 -# } -# mountpoint $BOT_DIR || mount -o nosuid /dev/md0 $BOT_DIR || $ON_ERROR -#fi +if [[ "$(arch)" == "x86_64" ]]; then + # Format and mount scratch drive. + [[ -e /dev/md0 ]] || { + yes | mdadm --create /dev/md0 --level=0 -q -f --raid-devices=$(ls /dev/nvme*n* | wc -l) /dev/nvme*n* + mkfs.xfs /dev/md0 + } + mountpoint $BOT_DIR || mount -o nosuid /dev/md0 $BOT_DIR || $ON_ERROR +fi # Move home to the scratch drive. usermod -d $BOT_DIR buildbot