summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMichael Halstead <mhalstead@linuxfoundation.org>2018-11-05 09:10:48 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-11-07 23:08:55 +0000
commita73ea9411351e21e005d5fb33491e35618f6e105 (patch)
tree4b78a8f19fda3454d264e54cf4b0c5018bf844fc /scripts
parent92027161b5a4cb22e8f3f7fb5bd1bdd1babd2cfc (diff)
downloadpoky-a73ea9411351e21e005d5fb33491e35618f6e105.tar.gz
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 <mhalstead@linuxfoundation.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/autobuilder-worker-prereq-tests9
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
34 echo "Bitbake parsing failed" 34 echo "Bitbake parsing failed"
35 exit 1 35 exit 1
36fi 36fi
37WATCHES=`sysctl fs.inotify.max_user_watches -n` 37
38if (( $WATCHES < 100000 )); then 38WATCHES=$(PATH="/sbin:/usr/sbin:$PATH" sysctl fs.inotify.max_user_watches -n)
39 echo 'Need to increase watches (echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf' 39if (( $WATCHES < 65000 )); then
40 #exit 1 40 echo 'Need to increase watches (echo fs.inotify.max_user_watches=65536 | sudo tee -a /etc/sysctl.conf'
41 exit 1
41fi 42fi
42mkdir -p tmp/deploy/images/qemux86-64 43mkdir -p tmp/deploy/images/qemux86-64
43pushd tmp/deploy/images/qemux86-64 44pushd tmp/deploy/images/qemux86-64