Skip to content

Commit

Permalink
Fixes #37693 - Add check for ipv6.disable=1 in /proc/cmdline
Browse files Browse the repository at this point in the history
When a system has ipv6.disable=1 in /proc/cmdline then it doesn't have
::1 but some of our services (most notably, Redis) listen on it and
cause problems. Adding a check prevents users from installing in the
first place.

This check is based on definitions/checks/check_ipv6_disable.rb in
foreman_maintain. Biggest reason to add it here is to also guard it on
fresh installations.
ekohl authored and ehelms committed Jul 30, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 9883362 commit 9d4ea59
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions checks/ipv6
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

if grep -q "ipv6.disable=1" /proc/cmdline ; then
echo "The kernel contains ipv6.disable=1 which is known to break installation and upgrade." >&2
echo "Remove and reboot before continuining." >&2
exit 2
fi

0 comments on commit 9d4ea59

Please sign in to comment.