Accepting request 756846 from home:dimstar:Factory

- Fix post scripts to work with systemd 244: udevadm has been moved
  from /sbin to /usr/bin and systemd is dropping the compat links
  now.

OBS-URL: https://build.opensuse.org/request/show/756846
OBS-URL: https://build.opensuse.org/package/show/science:HPC/rdma-core?expand=0&rev=125
This commit is contained in:
Dirk Stoecker 2019-12-17 13:59:25 +00:00 committed by Git OBS Bridge
parent 841baffadb
commit a48a7fa925
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Dec 13 14:10:15 UTC 2019 - Dominique Leuenberger <dimstar@opensuse.org>
- Fix post scripts to work with systemd 244: udevadm has been moved
from /sbin to /usr/bin and systemd is dropping the compat links
now.
-------------------------------------------------------------------
Wed Dec 11 09:32:17 UTC 2019 - Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>

View File

@ -521,8 +521,8 @@ rm -rf %{buildroot}/%{_sbindir}/srp_daemon.sh
%post
# we ship udev rules, so trigger an update.
/sbin/udevadm trigger --subsystem-match=infiniband --action=change || true
/sbin/udevadm trigger --subsystem-match=infiniband_mad --action=change || true
%{_bindir}/udevadm trigger --subsystem-match=infiniband --action=change || true
%{_bindir}/udevadm trigger --subsystem-match=infiniband_mad --action=change || true
#
# ibacm
@ -548,7 +548,7 @@ rm -rf %{buildroot}/%{_sbindir}/srp_daemon.sh
%post -n srp_daemon
%service_add_post srp_daemon.service
# we ship udev rules, so trigger an update.
/sbin/udevadm trigger --subsystem-match=infiniband_mad --action=change
%{_bindir}/udevadm trigger --subsystem-match=infiniband_mad --action=change
%preun -n srp_daemon
%service_del_preun srp_daemon.service