diff options
| -rwxr-xr-x | scripts/autobuilder-worker-prereq-tests | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/autobuilder-worker-prereq-tests b/scripts/autobuilder-worker-prereq-tests index 3956349b30..572227dccd 100755 --- a/scripts/autobuilder-worker-prereq-tests +++ b/scripts/autobuilder-worker-prereq-tests | |||
| @@ -51,6 +51,21 @@ if (( $WATCHES < 65000 )); then | |||
| 51 | echo 'Need to increase watches (echo fs.inotify.max_user_watches=65536 | sudo tee -a /etc/sysctl.conf' | 51 | echo 'Need to increase watches (echo fs.inotify.max_user_watches=65536 | sudo tee -a /etc/sysctl.conf' |
| 52 | exit 1 | 52 | exit 1 |
| 53 | fi | 53 | fi |
| 54 | OPEN_FILES=$(ulimit -n) | ||
| 55 | if (( $OPEN_FILES < 65535 )); then | ||
| 56 | echo 'Increase maximum open files in /etc/security/limits.conf' | ||
| 57 | echo '* soft nofile 131072' | ||
| 58 | echo '* hard nofile 131072' | ||
| 59 | exit 1 | ||
| 60 | fi | ||
| 61 | MAX_PROCESSES=$(ulimit -u) | ||
| 62 | if (( $MAX_PROCESSES < 514542 )); then | ||
| 63 | echo 'Increase maximum user processes in /etc/security/limits.conf' | ||
| 64 | echo '* hard nproc 515294' | ||
| 65 | echo '* soft nproc 514543' | ||
| 66 | exit 1 | ||
| 67 | fi | ||
| 68 | |||
| 54 | mkdir -p tmp/deploy/images/qemux86-64 | 69 | mkdir -p tmp/deploy/images/qemux86-64 |
| 55 | pushd tmp/deploy/images/qemux86-64 | 70 | pushd tmp/deploy/images/qemux86-64 |
| 56 | if [ ! -e core-image-minimal-qemux86-64.ext4 ]; then | 71 | if [ ! -e core-image-minimal-qemux86-64.ext4 ]; then |
