]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Simplify centos/fedora configuration
authorDaanDeMeyer <daan.j.demeyer@gmail.com>
Wed, 9 Jul 2025 08:22:47 +0000 (10:22 +0200)
committerDaanDeMeyer <daan.j.demeyer@gmail.com>
Thu, 10 Jul 2025 14:24:34 +0000 (16:24 +0200)
Both EPEL 9 and 10 now have the packages we need except for dhcp-server
so let's get rid of the EPEL conditionals and simply skip the tests that
require dhcp-server on CentOS.

While we're at it, make sure we use the new Architecture=uefi match in
mkosi to simplify the uefi checks.

12 files changed:
mkosi/mkosi.conf.d/centos-fedora/mkosi.conf
mkosi/mkosi.conf.d/centos-fedora/mkosi.conf.d/efi.conf [new file with mode: 0644]
mkosi/mkosi.conf.d/centos/mkosi.conf
mkosi/mkosi.conf.d/centos/mkosi.conf.d/10-epel.conf [deleted file]
mkosi/mkosi.conf.d/centos/mkosi.conf.d/20-efi.conf [deleted file]
mkosi/mkosi.conf.d/centos/mkosi.conf.d/20-epel-packages.conf [deleted file]
mkosi/mkosi.conf.d/debian-ubuntu/mkosi.conf.d/efi-debug.conf
mkosi/mkosi.conf.d/debian-ubuntu/mkosi.conf.d/efi.conf
mkosi/mkosi.conf.d/fedora/mkosi.conf
mkosi/mkosi.conf.d/fedora/mkosi.conf.d/efi.conf [deleted file]
mkosi/mkosi.conf.d/opensuse/mkosi.conf.d/efi-debug.conf
mkosi/mkosi.conf.d/opensuse/mkosi.conf.d/efi.conf

index 69d1c2297568c8951350e98fde31896c91add96b..0de00d82acafc352a717fe4f184ce890e1e4e213 100644 (file)
@@ -27,6 +27,8 @@ Packages=
         cryptsetup
         device-mapper-event
         device-mapper-multipath
+        dfuzzer
+        erofs-utils
         git-core
         glibc-langpack-de
         glibc-langpack-en
@@ -38,6 +40,7 @@ Packages=
         iputils
         iscsi-initiator-utils
         kernel-core
+        knot
         libcap-ng-utils
         man-db
         nmap-ncat
@@ -52,6 +55,7 @@ Packages=
         python3-pexpect
         # needed to upgrade and downgrade systemd-ukify in tests
         python3-zstd
+        qrencode
         quota
         rpm
         softhsm
diff --git a/mkosi/mkosi.conf.d/centos-fedora/mkosi.conf.d/efi.conf b/mkosi/mkosi.conf.d/centos-fedora/mkosi.conf.d/efi.conf
new file mode 100644 (file)
index 0000000..90b7668
--- /dev/null
@@ -0,0 +1,11 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+[Match]
+Architecture=uefi
+
+[Content]
+Packages=
+        sbsigntools
+
+VolatilePackages=
+        systemd-boot
index 2961ee316b3622ac897681b3e2594abe3fdaf24a..ea0a34b4fd09be16e341fd9ee70af8eea7f411c5 100644 (file)
@@ -5,6 +5,7 @@ Distribution=centos
 
 [Distribution]
 Release=10
+Repositories=epel,epel-next
 
 [Build]
 Environment=
diff --git a/mkosi/mkosi.conf.d/centos/mkosi.conf.d/10-epel.conf b/mkosi/mkosi.conf.d/centos/mkosi.conf.d/10-epel.conf
deleted file mode 100644 (file)
index 9e92a4f..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-# SPDX-License-Identifier: LGPL-2.1-or-later
-
-[Match]
-Release=9
-
-[Distribution]
-Repositories=
-        epel
-        epel-next
diff --git a/mkosi/mkosi.conf.d/centos/mkosi.conf.d/20-efi.conf b/mkosi/mkosi.conf.d/centos/mkosi.conf.d/20-efi.conf
deleted file mode 100644 (file)
index edefbe7..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-# SPDX-License-Identifier: LGPL-2.1-or-later
-
-[Match]
-Repositories=epel
-Architecture=|x86
-Architecture=|x86-64
-Architecture=|arm
-Architecture=|arm64
-Architecture=|riscv32
-Architecture=|riscv64
-Architecture=|loongarch64
-
-[Content]
-Packages=
-        sbsigntools
-
-VolatilePackages=
-        systemd-boot
diff --git a/mkosi/mkosi.conf.d/centos/mkosi.conf.d/20-epel-packages.conf b/mkosi/mkosi.conf.d/centos/mkosi.conf.d/20-epel-packages.conf
deleted file mode 100644 (file)
index 6bcc663..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-# SPDX-License-Identifier: LGPL-2.1-or-later
-
-[Match]
-Repositories=epel
-
-[Content]
-Packages=
-        dfuzzer
-        dhcp-server
-        erofs-utils
-        knot
-        qrencode
index b6422af16aa15ea46b644eb1fc4b29b967f64814..9252d4b20eaa944625128acf9e5148c75064afd6 100644 (file)
@@ -4,13 +4,7 @@
 Environment=WITH_DEBUG=1
 
 [Match]
-Architecture=|x86
-Architecture=|x86-64
-Architecture=|arm
-Architecture=|arm64
-Architecture=|riscv32
-Architecture=|riscv64
-Architecture=|loongarch64
+Architecture=uefi
 
 [Content]
 VolatilePackages=
index c808ddd9cfdaf86fb05538a1bea3f3b389b06a8d..3836792ad1b5d23c9e71dd7fc05a9c755ca10eab 100644 (file)
@@ -2,13 +2,7 @@
 # sbsigntool exists only on UEFI architectures
 
 [Match]
-Architecture=|x86
-Architecture=|x86-64
-Architecture=|arm
-Architecture=|arm64
-Architecture=|riscv32
-Architecture=|riscv64
-Architecture=|loongarch64
+Architecture=uefi
 
 [Content]
 Packages=
index b954d2802aea01d39ff18f79df0b7d545b7af1c7..e2a479eb6d366cb8938d63ff99c862b2000479df 100644 (file)
@@ -10,15 +10,11 @@ Release=rawhide
 Packages=
         btrfs-progs
         compsize
-        dfuzzer
         dhcp-server
         dnf5
-        erofs-utils
         f2fs-tools
         # Required for systemd-networkd-tests.py (netdevsim and sch_xxx modules)
         kernel-modules-extra
         kernel-modules-internal
-        knot
-        qrencode
         rpmautospec
         scsi-target-utils
diff --git a/mkosi/mkosi.conf.d/fedora/mkosi.conf.d/efi.conf b/mkosi/mkosi.conf.d/fedora/mkosi.conf.d/efi.conf
deleted file mode 100644 (file)
index 44de850..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-# SPDX-License-Identifier: LGPL-2.1-or-later
-
-[Match]
-Distribution=fedora
-Architecture=|x86
-Architecture=|x86-64
-Architecture=|arm
-Architecture=|arm64
-Architecture=|riscv32
-Architecture=|riscv64
-Architecture=|loongarch64
-
-[Content]
-Packages=
-        sbsigntools
-
-VolatilePackages=
-        systemd-boot
index b63e00be5e60c69d89f82df580a57489a965f212..9ef1833a884de01f0eb7af4887e31e33565a1e34 100644 (file)
@@ -4,13 +4,7 @@
 Environment=WITH_DEBUG=1
 
 [Match]
-Architecture=|x86
-Architecture=|x86-64
-Architecture=|arm
-Architecture=|arm64
-Architecture=|riscv32
-Architecture=|riscv64
-Architecture=|loongarch64
+Architecture=uefi
 
 [Content]
 VolatilePackages=
index 7ee6b4eaf73e898d1c0d87a6d884d1143dd95385..7cb650a44e89085b03e87769c0efba1209ae400d 100644 (file)
@@ -1,14 +1,7 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 
 [Match]
-Distribution=opensuse
-Architecture=|x86
-Architecture=|x86-64
-Architecture=|arm
-Architecture=|arm64
-Architecture=|riscv32
-Architecture=|riscv64
-Architecture=|loongarch64
+Architecture=uefi
 
 [Content]
 VolatilePackages=