Workaround CentOS 8-stream bug until fixed

Recent iputils release in CentOS 8-stream causing
ping failures with non root user. This needs a fix
in systemd package as mentioned in the Related Bugs,
until it's fixed and is in 8-stream mirrors let's
workaround it by setting net.ipv4.ping_group_range
setting manually.

Related-Bug: #1957941
Related-Bug: rhbz#2037807
Change-Id: I0d8dac910647968b625020c2a94e626ba5255058
This commit is contained in:
yatinkarel 2022-01-17 12:04:16 +05:30 committed by yatin
parent b6656b7b38
commit d5d0bed479

View File

@ -83,6 +83,11 @@ function fixup_fedora {
if is_package_installed python3-setuptools; then if is_package_installed python3-setuptools; then
sudo dnf reinstall -y python3-setuptools sudo dnf reinstall -y python3-setuptools
fi fi
# Workaround CentOS 8-stream iputils and systemd Bug
# https://bugzilla.redhat.com/show_bug.cgi?id=2037807
if [[ $os_VENDOR == "CentOSStream" && $os_RELEASE -eq 8 ]]; then
sudo sysctl -w net.ipv4.ping_group_range='0 2147483647'
fi
} }
function fixup_suse { function fixup_suse {