[PATCH rhel7-branch] Take "RHEL Atomic Host" as rhel installclass.

Radek Vykydal rvykydal at redhat.com
Tue Oct 7 12:04:01 UTC 2014


Atomic is using this product name that does not match "Red Hat " prefix,
due to lorax length limita on the name (32 chars?).

In near future we'll want to configure different default autopartitioning for
Atomic. I'm inclined to do it by updating fedora and rhel installclasses for
atomic case. If we wanted to go more classy, perhaps using mixin would be ok.
Maybe we'll need to rework installclasses for other new products anyway, Seems
like a place deserving clever cleanup.
---
 pyanaconda/installclasses/rhel.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/installclasses/rhel.py b/pyanaconda/installclasses/rhel.py
index b1e4375..de5608d 100644
--- a/pyanaconda/installclasses/rhel.py
+++ b/pyanaconda/installclasses/rhel.py
@@ -29,7 +29,7 @@ class InstallClass(BaseInstallClass):
     id = "rhel"
     name = N_("Red Hat Enterprise Linux")
     sortPriority = 20000
-    if not productName.startswith("Red Hat "):
+    if not productName.startswith(("Red Hat ", "RHEL Atomic")):
         hidden = 1
     defaultFS = "xfs"
 
-- 
1.9.3



More information about the anaconda-patches mailing list