avij / rpms / anaconda

Forked from rpms/anaconda 5 years ago
Clone

Blame SOURCES/0022-Take-RHEL-Atomic-Host-as-rhel-installclass.patch

fbcaed
From 96b9be656648adda25ec4cd0f4a16e3edbe36183 Mon Sep 17 00:00:00 2001
fbcaed
From: Radek Vykydal <rvykydal@redhat.com>
fbcaed
Date: Tue, 7 Oct 2014 13:44:07 +0200
fbcaed
Subject: [PATCH 22/22] Take "RHEL Atomic Host" as rhel installclass.
fbcaed
fbcaed
Atomic is using this product name that does not match "Red Hat " prefix,
fbcaed
due to lorax length limita on the name (32 chars?).
fbcaed
---
fbcaed
 pyanaconda/installclasses/rhel.py | 2 +-
fbcaed
 1 file changed, 1 insertion(+), 1 deletion(-)
fbcaed
fbcaed
diff --git a/pyanaconda/installclasses/rhel.py b/pyanaconda/installclasses/rhel.py
fbcaed
index 74052fd..8a694e3 100644
fbcaed
--- a/pyanaconda/installclasses/rhel.py
fbcaed
+++ b/pyanaconda/installclasses/rhel.py
fbcaed
@@ -30,7 +30,7 @@ class InstallClass(BaseInstallClass):
fbcaed
     id = "rhel"
fbcaed
     name = N_("Red Hat Enterprise Linux")
fbcaed
     sortPriority = 20000
fbcaed
-    if not productName.startswith("Red Hat "):
fbcaed
+    if not productName.startswith(("Red Hat ", "RHEL Atomic")):
fbcaed
         hidden = 1
fbcaed
     defaultFS = "xfs"
fbcaed
 
fbcaed
-- 
fbcaed
1.9.3
fbcaed