diff options
author | Michael Halstead <mhalstead@linuxfoundation.org> | 2018-11-05 09:10:48 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-06 12:14:05 +0000 |
commit | 2f86c3f1180ba8bf77301a0bc29c3b290bc28d91 (patch) | |
tree | a340d068ff2017fc4020b6a334992bffc28f965a | |
parent | 185918234a07cb506d7d7464a49ac33972c7d963 (diff) | |
download | openembedded-core-2f86c3f1180ba8bf77301a0bc29c3b290bc28d91.tar.gz openembedded-core-2f86c3f1180ba8bf77301a0bc29c3b290bc28d91.tar.bz2 openembedded-core-2f86c3f1180ba8bf77301a0bc29c3b290bc28d91.zip |
scripts/autobuilder-worker-prereq-tests: adjust max_user_watches
Temporarily modify path to run as non-privileged user on more distros.
Change the recommended value to match what we use on the autobuilder.
Signed-off-by: Michael Halstead <mhalstead@linuxfoundation.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | scripts/autobuilder-worker-prereq-tests | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/autobuilder-worker-prereq-tests b/scripts/autobuilder-worker-prereq-tests index c0148fbce8..bb46c69135 100755 --- a/scripts/autobuilder-worker-prereq-tests +++ b/scripts/autobuilder-worker-prereq-tests @@ -34,10 +34,11 @@ if [ "$?" != "0" ]; then echo "Bitbake parsing failed" exit 1 fi -WATCHES=`sysctl fs.inotify.max_user_watches -n` -if (( $WATCHES < 100000 )); then - echo 'Need to increase watches (echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf' - #exit 1 + +WATCHES=$(PATH="/sbin:/usr/sbin:$PATH" sysctl fs.inotify.max_user_watches -n) +if (( $WATCHES < 65000 )); then + echo 'Need to increase watches (echo fs.inotify.max_user_watches=65536 | sudo tee -a /etc/sysctl.conf' + exit 1 fi mkdir -p tmp/deploy/images/qemux86-64 pushd tmp/deploy/images/qemux86-64 |