mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
Enable nf_conntrack_tcp_be_liberal for Ubuntu 22.04 until kernel update (#7860)
This commit is contained in:
@@ -36,6 +36,13 @@ echo 'vm.max_map_count=262144' | tee -a /etc/sysctl.conf
|
|||||||
echo 'fs.inotify.max_user_watches=655360' | tee -a /etc/sysctl.conf
|
echo 'fs.inotify.max_user_watches=655360' | tee -a /etc/sysctl.conf
|
||||||
echo 'fs.inotify.max_user_instances=1280' | tee -a /etc/sysctl.conf
|
echo 'fs.inotify.max_user_instances=1280' | tee -a /etc/sysctl.conf
|
||||||
|
|
||||||
|
# https://github.com/actions/runner-images/pull/7860
|
||||||
|
netfilter_rule='/etc/udev/rules.d/50-netfilter.rules'
|
||||||
|
rulesd="$(dirname "${netfilter_rule}")"
|
||||||
|
mkdir -p $rulesd
|
||||||
|
touch $netfilter_rule
|
||||||
|
echo 'ACTION=="add", SUBSYSTEM=="module", KERNEL=="nf_conntrack", RUN+="/usr/sbin/sysctl net.netfilter.nf_conntrack_tcp_be_liberal=1"' | tee -a $netfilter_rule
|
||||||
|
|
||||||
# Create symlink for tests running
|
# Create symlink for tests running
|
||||||
chmod +x $HELPER_SCRIPTS/invoke-tests.sh
|
chmod +x $HELPER_SCRIPTS/invoke-tests.sh
|
||||||
ln -s $HELPER_SCRIPTS/invoke-tests.sh /usr/local/bin/invoke_tests
|
ln -s $HELPER_SCRIPTS/invoke-tests.sh /usr/local/bin/invoke_tests
|
||||||
|
|||||||
Reference in New Issue
Block a user