2019-08-22 12:19:49 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
HERE="$(dirname "$0")"
|
|
|
|
|
2020-04-20 16:43:13 -07:00
|
|
|
# shellcheck source=ci/setup-new-buildkite-agent/utils.sh
|
2019-08-22 12:19:49 -07:00
|
|
|
source "$HERE"/utils.sh
|
|
|
|
|
|
|
|
ensure_env || exit 1
|
|
|
|
|
2020-04-20 16:43:13 -07:00
|
|
|
set -ex
|
2019-08-22 12:19:49 -07:00
|
|
|
|
2019-09-03 07:45:20 -07:00
|
|
|
"$HERE"/disable-nouveau.sh
|
2019-08-22 12:19:49 -07:00
|
|
|
"$HERE"/disable-networkd-wait.sh
|
|
|
|
"$HERE"/setup-grub.sh
|
|
|
|
"$HERE"/setup-cuda.sh
|
2019-09-03 07:45:20 -07:00
|
|
|
"$HERE"/setup-procfs-knobs.sh
|
|
|
|
"$HERE"/setup-limits.sh
|
2019-08-22 12:19:49 -07:00
|
|
|
|
|
|
|
PASSWORD="$(dd if=/dev/urandom bs=1 count=9 status=none | base64)"
|
|
|
|
echo "$PASSWORD"
|
|
|
|
chpasswd <<< "solana:$PASSWORD"
|
|
|
|
|