diff options
author | Michael Halstead <mhalstead@linuxfoundation.org> | 2018-11-05 09:10:48 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-07 23:08:55 +0000 |
commit | a73ea9411351e21e005d5fb33491e35618f6e105 (patch) | |
tree | 4b78a8f19fda3454d264e54cf4b0c5018bf844fc | |
parent | 92027161b5a4cb22e8f3f7fb5bd1bdd1babd2cfc (diff) | |
download | poky-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>
-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 | |||
34 | echo "Bitbake parsing failed" | 34 | echo "Bitbake parsing failed" |
35 | exit 1 | 35 | exit 1 |
36 | fi | 36 | fi |
37 | WATCHES=`sysctl fs.inotify.max_user_watches -n` | 37 | |
38 | if (( $WATCHES < 100000 )); then | 38 | WATCHES=$(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' | 39 | if (( $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 | ||
41 | fi | 42 | fi |
42 | mkdir -p tmp/deploy/images/qemux86-64 | 43 | mkdir -p tmp/deploy/images/qemux86-64 |
43 | pushd tmp/deploy/images/qemux86-64 | 44 | pushd tmp/deploy/images/qemux86-64 |