-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
class Checks::CheckIpv6Disable < ForemanMaintain::Check | ||
metadata do | ||
label :check_ipv6_disable | ||
description 'Check if ipv6.disable=1 is set at kernel level' | ||
end | ||
|
||
def run | ||
grub_file = File.read('/etc/default/grub') | ||
|
||
assert( | ||
!grub_file.include?("ipv6.disable=1"), | ||
"The kernel contains ipv6.disable=1 which is known to break installation and upgrade, remove and reboot before continuining." | ||
) | ||
end | ||
|
||
def error_message | ||
base = "The kernel contains ipv6.disable=1 which is known to break installation and upgrade, remove and reboot before continuining." | ||
|
||
if feature(:instance).downstream | ||
base += "See https://access.redhat.com/solutions/5045841 for more details." | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters