Work around a known failure that sudo is not expected to be present in
container images. Prepare to handle a failure to set a sysctl param.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
fi
local aiomax="$((65536 * procs))"
if [ "$(/sbin/sysctl -n fs.aio-max-nr )" -lt "${aiomax}" ]; then
- $DRY_RUN sudo /sbin/sysctl -q -w fs.aio-max-nr="${aiomax}"
+ wrap_sudo
+ $DRY_RUN $SUDO /sbin/sysctl -q -w fs.aio-max-nr="${aiomax}" || true
fi
CHECK_MAKEOPTS=${CHECK_MAKEOPTS:-$DEFAULT_MAKEOPTS}