zengxyz / rpms / anaconda

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