dpolovinkin / rpms / anaconda

Forked from rpms/anaconda 3 years ago
Clone

Blame SOURCES/anaconda-centos-really-add-centos-install-class.patch

af328a
diff -aurp a/pyanaconda/installclasses/centos.py b/pyanaconda/installclasses/centos.py
af328a
--- a/pyanaconda/installclasses/centos.py	2019-05-31 19:04:29.202239897 -0300
af328a
+++ b/pyanaconda/installclasses/centos.py	2019-05-31 19:01:14.000000000 -0300
af328a
@@ -36,9 +36,9 @@ __all__ = ["RHELBaseInstallClass", "RHEL
af328a
 
af328a
 
af328a
 class RHELBaseInstallClass(BaseInstallClass):
af328a
-    name = "Red Hat Enterprise Linux"
af328a
-    sortPriority = 20000
af328a
-    if not productName.startswith("Red Hat "):
af328a
+    name = "CentOS Linux"
af328a
+    sortPriority = 20001
af328a
+    if not productName.startswith("CentOS"):
af328a
         hidden = True
af328a
     defaultFS = "xfs"
af328a
 
af328a
@@ -50,10 +50,10 @@ class RHELBaseInstallClass(BaseInstallCl
af328a
 
af328a
     _l10n_domain = "comps"
af328a
 
af328a
-    efi_dir = "redhat"
af328a
+    efi_dir = "centos"
af328a
 
af328a
-    help_placeholder = "RHEL7Placeholder.html"
af328a
-    help_placeholder_with_links = "RHEL7PlaceholderWithLinks.html"
af328a
+    help_placeholder = "CentOSPlaceholder.html"
af328a
+    help_placeholder_with_links = "CentOSPlaceholderWithLinks.html"
af328a
 
af328a
     def configure(self, anaconda):
af328a
         BaseInstallClass.configure(self, anaconda)
af328a
@@ -76,9 +76,9 @@ class RHELBaseInstallClass(BaseInstallCl
af328a
         BaseInstallClass.__init__(self)
af328a
 
af328a
 class RHELAtomicInstallClass(RHELBaseInstallClass):
af328a
-    name = "Red Hat Enterprise Linux Atomic Host"
af328a
-    sortPriority=21000
af328a
-    hidden = not productName.startswith(("RHEL Atomic Host", "Red Hat Enterprise Linux Atomic"))
af328a
+    name = "CentOS Atomic Host"
af328a
+    sortPriority=21001
af328a
+    hidden = not productName.startswith(("CentOS Atomic Host", "CentOS Linux Atomic"))
af328a
 
af328a
     def __init__(self):
af328a
         self.localemap = {} # loaded lazily