A set of tools to gather troubleshooting information from a system
Johnny Hughes
2018-05-14 c102a78f751449cb847ae6294015ef000ae7be82
Manual CentOS Debranding
1 files modified
1 files added
59 ■■■■■ changed files
SOURCES/sos-3.4-centos-branding.patch 57 ●●●●● patch | view | raw | blame | history
SPECS/sos.spec 2 ●●● patch | view | raw | blame | history
SOURCES/sos-3.4-centos-branding.patch
New file
@@ -0,0 +1,57 @@
diff -uNrp sos-3.4.orig/sos/policies/redhat.py sos-3.4/sos/policies/redhat.py
--- sos-3.4.orig/sos/policies/redhat.py    2017-08-09 22:26:42.179358997 +0000
+++ sos-3.4/sos/policies/redhat.py    2017-08-09 22:33:25.371349658 +0000
@@ -34,9 +34,9 @@ except:
 class RedHatPolicy(LinuxPolicy):
-    distro = "Red Hat"
-    vendor = "Red Hat"
-    vendor_url = "http://www.redhat.com/"
+    distro = "CentOS"
+    vendor = "CentOS"
+    vendor_url = "http://www.centos.org/"
     _redhat_release = '/etc/redhat-release'
     _tmp_dir = "/var/tmp"
     _rpmq_cmd = 'rpm -qa --queryformat "%{NAME}|%{VERSION}\\n"'
@@ -82,9 +82,9 @@ class RedHatPolicy(LinuxPolicy):
     @classmethod
     def check(cls):
-        """This method checks to see if we are running on Red Hat. It must be
+        """This method checks to see if we are running on CentOS. It must be
         overriden by concrete subclasses to return True when running on a
-        Fedora, RHEL or other Red Hat distribution or False otherwise."""
+        Fedora, RHEL or other CentOS distribution or False otherwise."""
         return False
     def _container_init(self):
@@ -132,15 +132,15 @@ class RedHatPolicy(LinuxPolicy):
     def get_local_name(self):
         return self.host_name()
-# Container environment variables on Red Hat systems.
+# Container environment variables on CentOS systems.
 ENV_CONTAINER = 'container'
 ENV_HOST_SYSROOT = 'HOST'
 class RHELPolicy(RedHatPolicy):
-    distro = "Red Hat Enterprise Linux"
-    vendor = "Red Hat"
-    vendor_url = "https://access.redhat.com/support/"
+    distro = "CentOS Linux"
+    vendor = "CentOS"
+    vendor_url = "https://wiki.centos.org/"
     msg = _("""\
 This command will collect diagnostic and configuration \
 information from this %(distro)s system and installed \
@@ -204,7 +204,7 @@ No changes will be made to system config
 class RedHatAtomicPolicy(RHELPolicy):
-    distro = "Red Hat Atomic Host"
+    distro = "CentOS Atomic Host"
     msg = _("""\
 This command will collect diagnostic and configuration \
 information from this %(distro)s system.
SPECS/sos.spec
@@ -32,7 +32,7 @@
Patch13: sos-bz1568960-ovirt-provider-ovn.patch
Patch14: sos-bz1568884-kernel-dont-collect-timer.patch
Patch15: sos-bz1568882-openstack-octavia-plugin.patch
Patch16: sos-centos-branding.patch
Patch16: sos-3.4-centos-branding.patch
%description