Accepting request 1070625 from home:nicholasyang:branches:network:ha-clustering:Factory
- bsc#1208922: fails to replace directory /lib/drbd with symlink * modify drbd-utils.spec to rename it in pretrans script OBS-URL: https://build.opensuse.org/request/show/1070625 OBS-URL: https://build.opensuse.org/package/show/network:ha-clustering:Factory/drbd-utils?expand=0&rev=122
This commit is contained in:
parent
e106588579
commit
4b16010b05
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 10 07:42:09 UTC 2023 - Nicholas Yang <nicholas.yang@suse.com>
|
||||
|
||||
- bsc#1208922: fails to replace directory /lib/drbd with symlink
|
||||
* modify drbd-utils.spec to rename it in pretrans script
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 3 05:09:00 UTC 2023 - Heming Zhao <heming.zhao@suse.com>
|
||||
|
||||
|
@ -141,6 +141,20 @@ rm -rf %{buildroot}%{_sysconfdir}/xen
|
||||
|
||||
rm -rf %{buildroot}%{libdir}/drbd/crm-*fence-peer.sh # bsc#1204276
|
||||
|
||||
%if 0%{?suse_version} < 1550
|
||||
# create symlink for bsc#1206364
|
||||
rmdir %{buildroot}/lib/drbd
|
||||
ln -sf %{libdir}/drbd %{buildroot}/lib/drbd
|
||||
%endif
|
||||
|
||||
%pretrans
|
||||
%if 0%{?suse_version} < 1550
|
||||
if [ ! -L /lib/drbd ] && [ -d /lib/drbd ]; then
|
||||
rm -rf /lib/drbd.rpmmoved
|
||||
mv /lib/drbd /lib/drbd.rpmmoved
|
||||
fi
|
||||
%endif
|
||||
|
||||
%pre
|
||||
%service_add_pre %{services}
|
||||
|
||||
@ -159,10 +173,6 @@ ln -sf drbd.conf-9.0.5.gz %{_mandir}/ja/man5/drbd.conf.5.gz
|
||||
ln -sf drbdmon-9.0.8.gz %{_mandir}/man8/drbdmon.8.gz
|
||||
ln -sf drbdmon-9.0.8.gz %{_mandir}/ja/man8/drbdmon.8.gz
|
||||
%endif
|
||||
%if 0%{?suse_version} < 1550
|
||||
# create symbolic folder for bsc#1206364
|
||||
ln -s /usr/lib/drbd /lib/drbd
|
||||
%endif
|
||||
|
||||
%preun
|
||||
%service_del_preun %{services}
|
||||
@ -190,6 +200,11 @@ ln -sf drbd.conf-9.0.5.gz %{_mandir}/ja/man5/drbd.conf.5.gz
|
||||
%dir %{_sysconfdir}/multipath
|
||||
%dir %{_sysconfdir}/multipath/conf.d
|
||||
%{libdir}/drbd
|
||||
%if 0%{?suse_version} < 1550
|
||||
# symlink for bsc#1206364
|
||||
/lib/drbd
|
||||
%ghost /lib/drbd.rpmmoved
|
||||
%endif
|
||||
%{sbindir}/drbdadm
|
||||
%{sbindir}/drbdsetup
|
||||
%{sbindir}/drbdmeta
|
||||
|
Loading…
Reference in New Issue
Block a user