- spec: make sure /lib exists when installing conf files in /lib/modprobe.d

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1272
This commit is contained in:
Franck Bui 2022-04-04 08:50:14 +00:00 committed by Git OBS Bridge
parent b20d6fcb13
commit 46c4597556
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Apr 4 08:49:40 UTC 2022 - Franck Bui <fbui@suse.com>
- spec: make sure /lib exists when installing conf files in /lib/modprobe.d
-------------------------------------------------------------------
Thu Mar 31 12:03:19 UTC 2022 - Franck Bui <fbui@suse.com>

View File

@ -774,8 +774,9 @@ rm -f %{buildroot}/etc/systemd/system/default.target
install -m0644 -D --target-directory=%{buildroot}%{_pam_vendordir} %{SOURCE2}
# kmod keeps insisting on using /lib on SLE.
if [ "%{_modprobedir}" != /usr/lib/modprobe.d ]; then
mv %{buildroot}/usr/lib/modprobe.d %{buildroot}%{_modprobedir}
if [ "$(realpath %{_modprobedir})" != /usr/lib/modprobe.d ]; then
mkdir -p %{buildroot}%{_modprobedir}
mv %{buildroot}/usr/lib/modprobe.d/* %{buildroot}%{_modprobedir}/
fi
# don't enable wall ask password service, it spams every console (bnc#747783)