From 02e795b3e0ef04f62510fac571de2b37b14f2f6a Mon Sep 17 00:00:00 2001 From: Brett Mastbergen Date: Fri, 26 Jun 2026 13:59:42 -0400 Subject: [PATCH] spec: relax UKI systemd requirement to 252-31 on RHEL The UKI packages unconditionally required systemd >= 254-1, making them uninstallable on Rocky 9 which ships systemd 252. The required kernel-install UKI support (90-uki-copy.install, --entry-type) was backported to RHEL/Rocky 9's systemd 252-31. Add the same %{?rhel} conditional that the 6.12 spec uses: require systemd >= 252-31 on RHEL, >= 254-1 elsewhere. Signed-off-by: Brett Mastbergen --- ciq/SPECS/kernel-clk6.18.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ciq/SPECS/kernel-clk6.18.spec b/ciq/SPECS/kernel-clk6.18.spec index 333c5fbed9747..3131898dd414b 100644 --- a/ciq/SPECS/kernel-clk6.18.spec +++ b/ciq/SPECS/kernel-clk6.18.spec @@ -1720,14 +1720,22 @@ Provides: installonlypkg(kernel)\ Provides: %{name}-uname-r = %{KVERREL}%{uname_suffix %{?1}}\ Requires: %{name}%{?1:-%{1}}-modules-core-uname-r = %{KVERREL}%{uname_suffix %{?1}}\ Requires(pre): %{kernel_prereq}\ +%if 0%{?rhel}\ +Requires(pre): systemd >= 252-31\ +%else\ Requires(pre): systemd >= 254-1\ +%endif\ Recommends: uki-direct\ %package %{?1:%{1}-}uki-virt-addons\ Summary: %{variant_summary} unified kernel image addons for virtual machines\ Provides: installonlypkg(kernel)\ Requires: %{name}%{?1:-%{1}}-uki-virt = %{specversion}-%{release}\ +%if 0%{?rhel}\ +Requires(pre): systemd >= 252-31\ +%else\ Requires(pre): systemd >= 254-1\ %endif\ +%endif\ %if %{with_gcov}\ %{expand:%%kernel_gcov_package %{?1:%{1}}}\ %endif\