forked from pool/mdadm
- mdadm.spec: change calling of mkinitrd to use the
%regenerate_initrd_{post,posttrans} macros to optimise initrd regeneration. (bnc#881780) OBS-URL: https://build.opensuse.org/package/show/Base:System/mdadm?expand=0&rev=111
This commit is contained in:
parent
f8d060f40b
commit
1f1a89c2f8
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 12 02:08:31 UTC 2014 - nfbrown@suse.com
|
||||||
|
|
||||||
|
- mdadm.spec: change calling of mkinitrd to use the
|
||||||
|
%regenerate_initrd_{post,posttrans} macros to optimise
|
||||||
|
initrd regeneration. (bnc#881780)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jun 10 04:05:48 UTC 2014 - nfbrown@suse.com
|
Tue Jun 10 04:05:48 UTC 2014 - nfbrown@suse.com
|
||||||
|
|
||||||
|
21
mdadm.spec
21
mdadm.spec
@ -70,28 +70,15 @@ install -m 644 %{S:2} %{buildroot}%{_var}/adm/fillup-templates/
|
|||||||
install -d %{buildroot}%{_systemdshutdowndir}
|
install -d %{buildroot}%{_systemdshutdowndir}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
[ -x /sbin/mkinitrd_setup ] && mkinitrd_setup
|
%{?regenerate_initrd_post}
|
||||||
if [ -e /var/lib/no_initrd_recreation_by_suspend ]; then
|
|
||||||
echo "Skipping recreation of existing initial ramdisks, due"
|
|
||||||
echo "to presence of /var/lib/no_initrd_recreation_by_suspend"
|
|
||||||
elif [ -x /sbin/mkinitrd ]; then
|
|
||||||
/sbin/mkinitrd
|
|
||||||
fi
|
|
||||||
|
|
||||||
%fillup_only
|
%fillup_only
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
[ -x /sbin/mkinitrd_setup ] && mkinitrd_setup
|
%{?regenerate_initrd_post}
|
||||||
if [ -e /var/lib/no_initrd_recreation_by_suspend ]; then
|
|
||||||
echo "Skipping recreation of existing initial ramdisks, due"
|
|
||||||
echo "to presence of /var/lib/no_initrd_recreation_by_suspend"
|
|
||||||
elif [ -x /sbin/mkinitrd ]; then
|
|
||||||
/sbin/mkinitrd
|
|
||||||
fi
|
|
||||||
|
|
||||||
%{insserv_cleanup}
|
%{insserv_cleanup}
|
||||||
|
|
||||||
%preun
|
%posttrans
|
||||||
|
%{?regenerate_initrd_posttrans}
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf %{buildroot}
|
rm -rf %{buildroot}
|
||||||
|
Loading…
Reference in New Issue
Block a user