765c7a
From 46aef94345d4c3e5a0be103fcf75650c67cbf14f Mon Sep 17 00:00:00 2001
765c7a
From: Pat Riehecky <riehecky@fnal.gov>
765c7a
Date: Mon, 23 Nov 2020 13:50:06 -0600
765c7a
Subject: [PATCH 1/2] Add CentOS Stream config
765c7a
765c7a
https://github.com/rhinstaller/anaconda/pull/3014
765c7a
https://github.com/rhinstaller/anaconda/commit/150bbc179cf51226d6c1bd46279e076ff683ec03
765c7a
---
765c7a
 data/product.d/centos-stream.conf             | 33 +++++++++++++++++++
765c7a
 data/product.d/centos.conf                    | 28 +---------------
765c7a
 .../pyanaconda_tests/product_test.py          |  9 +++--
765c7a
 3 files changed, 41 insertions(+), 29 deletions(-)
765c7a
 create mode 100644 data/product.d/centos-stream.conf
765c7a
765c7a
diff --git a/data/product.d/centos-stream.conf b/data/product.d/centos-stream.conf
765c7a
new file mode 100644
765c7a
index 0000000000..79d13392af
765c7a
--- /dev/null
765c7a
+++ b/data/product.d/centos-stream.conf
765c7a
@@ -0,0 +1,33 @@
765c7a
+# Anaconda configuration file for CentOS Stream.
765c7a
+
765c7a
+[Product]
765c7a
+product_name = CentOS Stream
765c7a
+
765c7a
+[Base Product]
765c7a
+product_name = Red Hat Enterprise Linux
765c7a
+
765c7a
+[Anaconda]
765c7a
+# List of enabled Anaconda DBus modules for RHEL.
765c7a
+#  but without org.fedoraproject.Anaconda.Modules.Subscription
765c7a
+kickstart_modules =
765c7a
+    org.fedoraproject.Anaconda.Modules.Timezone
765c7a
+    org.fedoraproject.Anaconda.Modules.Network
765c7a
+    org.fedoraproject.Anaconda.Modules.Localization
765c7a
+    org.fedoraproject.Anaconda.Modules.Security
765c7a
+    org.fedoraproject.Anaconda.Modules.Users
765c7a
+    org.fedoraproject.Anaconda.Modules.Payloads
765c7a
+    org.fedoraproject.Anaconda.Modules.Storage
765c7a
+    org.fedoraproject.Anaconda.Modules.Services
765c7a
+
765c7a
+[Bootloader]
765c7a
+efi_dir = centos
765c7a
+
765c7a
+[User Interface]
765c7a
+help_directory = /usr/share/anaconda/help/centos
765c7a
+default_help_pages =
765c7a
+    centos_help_placeholder.txt
765c7a
+    centos_help_placeholder.xml
765c7a
+    centos_help_placeholder.xml
765c7a
+
765c7a
+[Payload]
765c7a
+default_source = CLOSEST_MIRROR
765c7a
diff --git a/data/product.d/centos.conf b/data/product.d/centos.conf
765c7a
index 9490e038a9..dcf22c3f9d 100644
765c7a
--- a/data/product.d/centos.conf
765c7a
+++ b/data/product.d/centos.conf
765c7a
@@ -4,30 +4,4 @@
765c7a
 product_name = CentOS Linux
765c7a
 
765c7a
 [Base Product]
765c7a
-product_name = Red Hat Enterprise Linux
765c7a
-
765c7a
-[Anaconda]
765c7a
-# List of enabled Anaconda DBus modules for RHEL.
765c7a
-#  but without org.fedoraproject.Anaconda.Modules.Subscription
765c7a
-kickstart_modules =
765c7a
-     org.fedoraproject.Anaconda.Modules.Timezone
765c7a
-     org.fedoraproject.Anaconda.Modules.Network
765c7a
-     org.fedoraproject.Anaconda.Modules.Localization
765c7a
-     org.fedoraproject.Anaconda.Modules.Security
765c7a
-     org.fedoraproject.Anaconda.Modules.Users
765c7a
-     org.fedoraproject.Anaconda.Modules.Payloads
765c7a
-     org.fedoraproject.Anaconda.Modules.Storage
765c7a
-     org.fedoraproject.Anaconda.Modules.Services
765c7a
-
765c7a
-[Bootloader]
765c7a
-efi_dir = centos
765c7a
-
765c7a
-[User Interface]
765c7a
-help_directory = /usr/share/anaconda/help/centos
765c7a
-default_help_pages =
765c7a
-    centos_help_placeholder.txt
765c7a
-    centos_help_placeholder.xml
765c7a
-    centos_help_placeholder.xml
765c7a
-
765c7a
-[Payload]
765c7a
-default_source = CLOSEST_MIRROR
765c7a
+product_name = CentOS Stream
765c7a
diff --git a/tests/nosetests/pyanaconda_tests/product_test.py b/tests/nosetests/pyanaconda_tests/product_test.py
765c7a
index 55f3e0dde7..45d532bda1 100644
765c7a
--- a/tests/nosetests/pyanaconda_tests/product_test.py
765c7a
+++ b/tests/nosetests/pyanaconda_tests/product_test.py
765c7a
@@ -239,9 +239,14 @@ class ProductConfigurationTestCase(unittest.TestCase):
765c7a
             ["rhel.conf"],
765c7a
             WORKSTATION_PARTITIONING
765c7a
         )
765c7a
+        self._check_default_product(
765c7a
+            "CentOS Stream", "",
765c7a
+            ["rhel.conf", "centos-stream.conf"],
765c7a
+            WORKSTATION_PARTITIONING
765c7a
+        )
765c7a
         self._check_default_product(
765c7a
             "CentOS Linux", "",
765c7a
-            ["rhel.conf", "centos.conf"],
765c7a
+            ["rhel.conf", "centos-stream.conf", "centos.conf"],
765c7a
             WORKSTATION_PARTITIONING
765c7a
         )
765c7a
         self._check_default_product(
765c7a
@@ -251,7 +256,7 @@ class ProductConfigurationTestCase(unittest.TestCase):
765c7a
         )
765c7a
         self._check_default_product(
765c7a
             "oVirt Node Next", "",
765c7a
-            ["rhel.conf", "centos.conf", "ovirt.conf"],
765c7a
+            ["rhel.conf", "centos-stream.conf", "centos.conf", "ovirt.conf"],
765c7a
             VIRTUALIZATION_PARTITIONING
765c7a
         )
765c7a
         self._check_default_product(
765c7a
-- 
765c7a
2.29.2
765c7a