forked from pool/s390-tools
Accepting request 960056 from home:mwilck:modprobe.d
- install modprobe.conf files into %_modprobedir (bsc#1196275, jsc#SLE-20639) OBS-URL: https://build.opensuse.org/request/show/960056 OBS-URL: https://build.opensuse.org/package/show/Base:System/s390-tools?expand=0&rev=128
This commit is contained in:
parent
87107bff8d
commit
bf9057d3fe
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 4 13:55:43 UTC 2022 - Martin Wilck <mwilck@suse.com>
|
||||||
|
|
||||||
|
- install modprobe.conf files into %_modprobedir (bsc#1196275, jsc#SLE-20639)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Feb 22 19:37:07 UTC 2022 - Mark Post <mpost@suse.com>
|
Tue Feb 22 19:37:07 UTC 2022 - Mark Post <mpost@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package s390-tools
|
# spec file for package s390-tools
|
||||||
#
|
#
|
||||||
# Copyright (c) 2001-2022 SUSE LLC
|
# Copyright (c) 2022 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -21,6 +21,11 @@
|
|||||||
%if ! %{defined _fillupdir}
|
%if ! %{defined _fillupdir}
|
||||||
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{?suse_version} < 1550 && 0%{?sle_version} <= 150300
|
||||||
|
# systemd-rpm-macros is wrong in 15.3 and below
|
||||||
|
%define _modprobedir /lib/modprobe.d
|
||||||
|
%endif
|
||||||
|
%global modprobe_d_files 90-s390-tools.conf
|
||||||
|
|
||||||
Name: s390-tools
|
Name: s390-tools
|
||||||
Version: 2.19.0
|
Version: 2.19.0
|
||||||
@ -349,7 +354,7 @@ install -D -m644 %{SOURCE20} %{buildroot}%{_prefix}/lib/udev/rules.d/52-hw_rando
|
|||||||
install -D -m644 %{SOURCE21} %{buildroot}%{_prefix}/lib/udev/rules.d/59-graf.rules
|
install -D -m644 %{SOURCE21} %{buildroot}%{_prefix}/lib/udev/rules.d/59-graf.rules
|
||||||
install -D -m644 %{SOURCE28} %{buildroot}%{_prefix}/lib/udev/rules.d/59-prng.rules
|
install -D -m644 %{SOURCE28} %{buildroot}%{_prefix}/lib/udev/rules.d/59-prng.rules
|
||||||
install -D -m644 %{SOURCE29} %{buildroot}%{_prefix}/lib/udev/rules.d/59-zfcp-compat.rules
|
install -D -m644 %{SOURCE29} %{buildroot}%{_prefix}/lib/udev/rules.d/59-zfcp-compat.rules
|
||||||
install -D -m644 %{SOURCE30} %{buildroot}%{_sysconfdir}/modprobe.d/90-s390-tools.conf
|
install -D -m644 %{SOURCE30} %{buildroot}%{_modprobedir}/90-s390-tools.conf
|
||||||
install -D -m755 %{SOURCE32} %{buildroot}/sbin/killcdl
|
install -D -m755 %{SOURCE32} %{buildroot}/sbin/killcdl
|
||||||
install -D -m755 %{SOURCE33} %{buildroot}/sbin/lgr_check
|
install -D -m755 %{SOURCE33} %{buildroot}/sbin/lgr_check
|
||||||
install -D -m644 %{SOURCE34} %{buildroot}%{_fillupdir}/sysconfig.virtsetup
|
install -D -m644 %{SOURCE34} %{buildroot}%{_fillupdir}/sysconfig.virtsetup
|
||||||
@ -437,6 +442,11 @@ getent group cpacfstats >/dev/null 2>&1 || groupadd -r cpacfstats
|
|||||||
%service_add_pre virtsetup.service
|
%service_add_pre virtsetup.service
|
||||||
%service_add_pre vmlogrdr.service
|
%service_add_pre vmlogrdr.service
|
||||||
%service_add_pre xpram.service
|
%service_add_pre xpram.service
|
||||||
|
# Avoid restoring outdated stuff in posttrans
|
||||||
|
for _f in %{?modprobe_d_files}; do
|
||||||
|
[ ! -f "/etc/modprobe.d/${_f}.rpmsave" ] || \
|
||||||
|
mv -f "/etc/modprobe.d/${_f}.rpmsave" "/etc/modprobe.d/${_f}.rpmsave.old" || :
|
||||||
|
done
|
||||||
|
|
||||||
%post
|
%post
|
||||||
read INITPGM < /proc/1/comm
|
read INITPGM < /proc/1/comm
|
||||||
@ -548,6 +558,11 @@ fi
|
|||||||
%{?regenerate_initrd_post}
|
%{?regenerate_initrd_post}
|
||||||
|
|
||||||
%posttrans
|
%posttrans
|
||||||
|
# Migration of modprobe.conf files to _modprobedir
|
||||||
|
for _f in %{?modprobe_d_files}; do
|
||||||
|
[ ! -f "/etc/modprobe.d/${_f}.rpmsave" ] || \
|
||||||
|
mv -fv "/etc/modprobe.d/${_f}.rpmsave" "/etc/modprobe.d/${_f}" || :
|
||||||
|
done
|
||||||
%{?regenerate_initrd_posttrans}
|
%{?regenerate_initrd_posttrans}
|
||||||
|
|
||||||
%preun -n osasnmpd
|
%preun -n osasnmpd
|
||||||
@ -571,7 +586,8 @@ fi
|
|||||||
%dir %attr(0770,root,zkeyadm) %{_sysconfdir}/zkey/kmip/profiles
|
%dir %attr(0770,root,zkeyadm) %{_sysconfdir}/zkey/kmip/profiles
|
||||||
%dir %attr(0770,root,zkeyadm) %{_sysconfdir}/zkey/repository
|
%dir %attr(0770,root,zkeyadm) %{_sysconfdir}/zkey/repository
|
||||||
%config %{_sysconfdir}/zkey/kmip/profiles/*
|
%config %{_sysconfdir}/zkey/kmip/profiles/*
|
||||||
%config %{_sysconfdir}/modprobe.d/90-s390-tools.conf
|
%dir %{_modprobedir}
|
||||||
|
%{_modprobedir}/90-s390-tools.conf
|
||||||
%config %{_sysconfdir}/cpuplugd.conf
|
%config %{_sysconfdir}/cpuplugd.conf
|
||||||
%config %{_sysconfdir}/zkey/kms-plugins.conf
|
%config %{_sysconfdir}/zkey/kms-plugins.conf
|
||||||
%config(noreplace) /boot/zipl/active_devices.txt
|
%config(noreplace) /boot/zipl/active_devices.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user