File disable_not_relevant_checks_bnc_828453.patch of Package cobbler

Index: cobbler-2.8.2/cobbler/action_check.py
===================================================================
--- cobbler-2.8.2.orig/cobbler/action_check.py
+++ cobbler-2.8.2/cobbler/action_check.py
@@ -99,7 +99,7 @@ class BootCheck:
        return status
 
    def check_for_ksvalidator(self, status):
-       if self.checked_dist in ["debian", "ubuntu"]:
+       if self.checked_dist in ["debian", "ubuntu", "suse"]:
           return
 
        if not os.path.exists("/usr/bin/ksvalidator"):
@@ -108,6 +108,9 @@ class BootCheck:
        return True
 
    def check_for_cman(self, status):
+       if self.checked_dist == "suse":
+          return
+
        # not doing rpm -q here to be cross-distro friendly
        if not os.path.exists("/sbin/fence_ilo") and not os.path.exists("/usr/sbin/fence_ilo"):
            status.append("fencing tools were not found, and are required to use the (optional) power management features. install cman or fence-agents to use them")
@@ -175,6 +178,9 @@ class BootCheck:
            status.append(_("yumdownloader is not installed, install yum-utils or dnf-plugins-core"))
 
    def check_debmirror(self,status):
+       if self.checked_dist == "suse":
+          return
+
        if not os.path.exists("/usr/bin/debmirror"):
            status.append(_("debmirror package is not installed, it will be required to manage debian deployments and repositories"))
        if os.path.exists("/etc/debmirror.conf"):
@@ -213,6 +219,9 @@ class BootCheck:
            status.append(_("SELinux is enabled. Please review the following wiki page for details on ensuring cobbler works correctly in your SELinux environment:\n    https://github.com/cobbler/cobbler/wiki/Selinux"))
 
    def check_for_default_password(self,status):
+       if self.checked_dist == "suse":
+          return
+
        default_pass = self.settings.default_password_crypted
        if default_pass == "$1$mF86/UHC$WvcIcX2t6crBz2onWxyac.":
            status.append(_("The default password used by the sample templates for newly installed machines (default_password_crypted in /etc/cobbler/settings) is still set to 'cobbler' and should be changed, try: \"openssl passwd -1 -salt 'random-phrase-here' 'your-password-here'\" to generate new one"))
openSUSE Build Service is sponsored by