From: Michael Halstead Date: Mon, 5 Nov 2018 17:10:48 +0000 (-0800) Subject: scripts/autobuilder-worker-prereq-tests: adjust max_user_watches X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a73ea9411351e21e005d5fb33491e35618f6e105;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. (From OE-Core rev: 2f86c3f1180ba8bf77301a0bc29c3b290bc28d91) Signed-off-by: Michael Halstead Signed-off-by: Richard Purdie --- diff --git a/scripts/autobuilder-worker-prereq-tests b/scripts/autobuilder-worker-prereq-tests index c0148fbce88..bb46c691353 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