Accepting request 396777 from home:scarabeus_iv:branches:Base:System

- Add compat symlinks for binaries to /sbin/ to avoid errors on
  hardcoded systems, obsolete them with leap 43

- Add compat symlinks for binaries to /sbin/ to avoid errors on
  hardcoded systems, obsolete them with leap 43

- Add compat symlinks for binaries to /sbin/ to avoid errors on
  hardcoded systems, obsolete them with leap 43

OBS-URL: https://build.opensuse.org/request/show/396777
OBS-URL: https://build.opensuse.org/package/show/Base:System/lvm2?expand=0&rev=152
This commit is contained in:
Dominique Leuenberger 2016-05-30 12:16:29 +00:00 committed by Git OBS Bridge
parent d3abef8d85
commit 40dea6f79c
5 changed files with 34 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu May 19 12:07:09 UTC 2016 - tchvatal@suse.com
- Add compat symlinks for binaries to /sbin/ to avoid errors on
hardcoded systems, obsolete them with leap 43
------------------------------------------------------------------- -------------------------------------------------------------------
Thu May 12 08:12:54 UTC 2016 - tchvatal@suse.com Thu May 12 08:12:54 UTC 2016 - tchvatal@suse.com

View File

@ -194,6 +194,10 @@ rm %{buildroot}%{_unitdir}/lvm2-monitor.service
rm %{buildroot}%{_mandir}/man8/blkdeactivate.8 rm %{buildroot}%{_mandir}/man8/blkdeactivate.8
rm %{buildroot}%{_mandir}/man8/lvm2-activation-generator.8 rm %{buildroot}%{_mandir}/man8/lvm2-activation-generator.8
# compat symlinks in /sbin remove with Leap 43
mkdir -p %{buildroot}/sbin
ln -s %{_sbindir}/dmsetup %{buildroot}/sbin/dmsetup
%post %post
%service_add_post dm-event.service dm-event.socket %service_add_post dm-event.service dm-event.socket
%{?regenerate_initrd_post} %{?regenerate_initrd_post}
@ -230,6 +234,7 @@ rm %{buildroot}%{_mandir}/man8/lvm2-activation-generator.8
%defattr(-,root,root) %defattr(-,root,root)
%doc COPYING COPYING.LIB README %doc COPYING COPYING.LIB README
%doc udev/12-dm-permissions.rules %doc udev/12-dm-permissions.rules
/sbin/dmsetup
%{_sbindir}/dmsetup %{_sbindir}/dmsetup
%{_sbindir}/dmeventd %{_sbindir}/dmeventd
%{_sbindir}/dmstats %{_sbindir}/dmstats

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu May 19 12:07:09 UTC 2016 - tchvatal@suse.com
- Add compat symlinks for binaries to /sbin/ to avoid errors on
hardcoded systems, obsolete them with leap 43
------------------------------------------------------------------- -------------------------------------------------------------------
Thu May 12 08:12:54 UTC 2016 - tchvatal@suse.com Thu May 12 08:12:54 UTC 2016 - tchvatal@suse.com

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu May 19 12:07:09 UTC 2016 - tchvatal@suse.com
- Add compat symlinks for binaries to /sbin/ to avoid errors on
hardcoded systems, obsolete them with leap 43
------------------------------------------------------------------- -------------------------------------------------------------------
Thu May 12 08:12:54 UTC 2016 - tchvatal@suse.com Thu May 12 08:12:54 UTC 2016 - tchvatal@suse.com

View File

@ -233,6 +233,14 @@ rm %{buildroot}%{_libdir}/libdevmapper-event.so
rm %{buildroot}%{_includedir}/libdevmapper*.h rm %{buildroot}%{_includedir}/libdevmapper*.h
rm %{buildroot}%{_libdir}/pkgconfig/devmapper*.pc rm %{buildroot}%{_libdir}/pkgconfig/devmapper*.pc
# compat symlinks in /sbin remove with Leap 43
mkdir -p %{buildroot}/sbin
pushd %{buildroot}/%{_sbindir}
for i in {vg,pv,lv}*; do
ln -s %{_sbindir}/$i %{buildroot}/sbin/$i
done
popd
%pre %pre
%service_add_pre blk-availability.service lvm2-monitor.service lvm2-lvmetad.socket lvm2-lvmetad.service %service_add_pre blk-availability.service lvm2-monitor.service lvm2-lvmetad.socket lvm2-lvmetad.service
@ -292,6 +300,9 @@ rm %{buildroot}%{_libdir}/pkgconfig/devmapper*.pc
%{_sbindir}/lv* %{_sbindir}/lv*
%{_sbindir}/pv* %{_sbindir}/pv*
%{_sbindir}/vg* %{_sbindir}/vg*
/sbin/lv*
/sbin/pv*
/sbin/vg*
%{_sbindir}/rcblk-availability %{_sbindir}/rcblk-availability
%{_sbindir}/rclvm2-lvmetad %{_sbindir}/rclvm2-lvmetad
%{_sbindir}/rclvm2-monitor %{_sbindir}/rclvm2-monitor