Skip to content

Commit

Permalink
Restore NVME support
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalybuka authored Apr 20, 2023
1 parent 9a627c6 commit 26afa5f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions buildbot/start_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 26afa5f

Please sign in to comment.