From 31dbcfdae130af1d2b51c23ab2752cbbac5023660f98706ee8760c163165882d Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Fri, 5 Sep 2008 19:15:10 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mdadm?expand=0&rev=13 --- mdadm.changes | 5 +++++ mdadm.spec | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/mdadm.changes b/mdadm.changes index 8c13bf4..02aa800 100644 --- a/mdadm.changes +++ b/mdadm.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Sep 3 11:09:34 CEST 2008 - hare@suse.de + +- Call mkinitrd_setup during %post and %postun (bnc#413709) + ------------------------------------------------------------------- Sun Aug 17 08:04:26 CEST 2008 - aj@suse.de diff --git a/mdadm.spec b/mdadm.spec index 871b129..9fe29aa 100644 --- a/mdadm.spec +++ b/mdadm.spec @@ -20,7 +20,7 @@ Name: mdadm Version: 2.6.7 -Release: 16 +Release: 22 BuildRequires: sgmltool PreReq: %fillup_prereq %insserv_prereq Obsoletes: raidtools @@ -76,10 +76,12 @@ install -m 644 %{S:2} $RPM_BUILD_ROOT%{_var}/adm/fillup-templates/ ln -sf ../../etc/init.d/mdadmd $RPM_BUILD_ROOT/%{_sbindir}/rcmdadmd %post +[ -x /sbin/mkinitrd_setup ] && mkinitrd_setup %{fillup_and_insserv -Y boot.md} %postun %restart_on_update mdadmd +[ -x /sbin/mkinitrd_setup ] && mkinitrd_setup %{insserv_cleanup} %preun @@ -136,6 +138,8 @@ rm -rf $RPM_BUILD_ROOT /lib/mkinitrd/scripts/boot-md.sh %changelog +* Wed Sep 03 2008 hare@suse.de +- Call mkinitrd_setup during %%post and %%postun (bnc#413709) * Sun Aug 17 2008 aj@suse.de - Fix init scripts. * Wed Jul 23 2008 hare@suse.de