neil / rpms / anaconda

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