From cffa0853c9bb4c27ed22e4c581d35fc2834e876f Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Apr 18 2024 14:00:40 +0000 Subject: Move systemctl symlinks to /usr/bin too [skip changelog] --- diff --git a/systemd.spec b/systemd.spec index bce1978..a4ded85 100644 --- a/systemd.spec +++ b/systemd.spec @@ -901,6 +901,13 @@ install -Dm0644 -t %{buildroot}%{_prefix}/lib/systemd/network/ %{SOURCE25} ln -s --relative %{buildroot}%{_bindir}/kernel-install %{buildroot}%{_sbindir}/installkernel +%if "%{_sbindir}" == "%{_bindir}" +# Systemd has the split-sbin option which is also used to select the directory +# for alias symlinks. We need to keep split-sbin=true for now, to support +# unmerged systems. Move the symlinks here instead. +mv -v %{buildroot}/usr/sbin/* %{buildroot}%{_bindir}/ +%endif + %find_lang %{name} # Split files in build root into rpms