From 12d1f050295e2e88235a5478b07eebdbda461ae3 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Jul 19 2024 14:33:08 +0000 Subject: Don't claim /sbin/installkernel if building for CentOS Stream 9 CentOS Stream 9 has older grubby that still claims /sbin/installkernel for itself so let's not install the symlink in that case. --- diff --git a/systemd.spec b/systemd.spec index b436ad8..4c2542d 100644 --- a/systemd.spec +++ b/systemd.spec @@ -972,7 +972,9 @@ install -m 0755 -D -t %{buildroot}%{_rpmconfigdir}/ %{SOURCE24} # https://bugzilla.redhat.com/show_bug.cgi?id=2107754 install -Dm0644 -t %{buildroot}%{_prefix}/lib/systemd/network/ %{SOURCE25} +%if 0%{?fedora} || 0%{?rhel} >= 10 ln -s --relative %{buildroot}%{_bindir}/kernel-install %{buildroot}%{_sbindir}/installkernel +%endif %if "%{_sbindir}" == "%{_bindir}" # Systemd has the split-sbin option which is also used to select the directory