SHA256
1
0
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:
Neil Brown 2014-06-12 02:09:59 +00:00 committed by Git OBS Bridge
parent f8d060f40b
commit 1f1a89c2f8
2 changed files with 11 additions and 17 deletions

View File

@ -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

View File

@ -70,28 +70,15 @@ install -m 644 %{S:2} %{buildroot}%{_var}/adm/fillup-templates/
install -d %{buildroot}%{_systemdshutdowndir}
%post
[ -x /sbin/mkinitrd_setup ] && mkinitrd_setup
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
%{?regenerate_initrd_post}
%fillup_only
%postun
[ -x /sbin/mkinitrd_setup ] && mkinitrd_setup
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
%{?regenerate_initrd_post}
%{insserv_cleanup}
%preun
%posttrans
%{?regenerate_initrd_posttrans}
%clean
rm -rf %{buildroot}