Accepting request 969365 from home:mwilck:modprobe.d

- Run modprobe.conf handling scriptlets in -compat subpackage (bsc#1198322)

OBS-URL: https://build.opensuse.org/request/show/969365
OBS-URL: https://build.opensuse.org/package/show/science:HPC/libpsm2?expand=0&rev=63
This commit is contained in:
Nicolas Morey-Chaisemartin 2022-04-12 09:11:15 +00:00 committed by Git OBS Bridge
parent 3492f63b9c
commit dbd401b0fe
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Apr 11 20:24:48 UTC 2022 - Martin Wilck <mwilck@suse.com>
- Run modprobe.conf handling scriptlets in -compat subpackage (bsc#1198322)
-------------------------------------------------------------------
Fri Mar 4 12:41:50 UTC 2022 - Martin Wilck <mwilck@suse.com>

View File

@ -108,7 +108,7 @@ rm %{buildroot}/usr/lib/%name/libpsm2-compat.cmds
# remove static library
rm %{buildroot}%{_libdir}/libpsm2.a
%pre
%pre compat
# Avoid restoring outdated stuff in posttrans
for _f in %{?modprobe_d_files}; do
[ ! -f "/etc/modprobe.d/${_f}.rpmsave" ] || \
@ -120,7 +120,7 @@ done
%post compat -p /sbin/ldconfig
%postun compat -p /sbin/ldconfig
%posttrans
%posttrans compat
# Migration of modprobe.conf files to _modprobedir
for _f in %{?modprobe_d_files}; do
[ ! -f "/etc/modprobe.d/${_f}.rpmsave" ] || \