[mdadm/f16: 1/2] Fix uninstall script to remove dangling symlink
Jes Sorensen
jsorensen at fedoraproject.org
Thu Jun 14 08:49:23 UTC 2012
commit d45e40da1b4c8cbd5e3ab1e05a6ebb45362f37fb
Author: Jes Sorensen <Jes.Sorensen at redhat.com>
Date: Wed Jun 13 17:57:26 2012 +0200
Fix uninstall script to remove dangling symlink
This fix removes a dangling symlink to mdmonitor-takeover.service, if
the mdadm package is uninstalled from the system.
Resolves bz828354
Signed-off-by: Jes Sorensen <Jes.Sorensen at redhat.com>
mdadm.spec | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/mdadm.spec b/mdadm.spec
index 0af4bf4..cae8d03 100644
--- a/mdadm.spec
+++ b/mdadm.spec
@@ -1,7 +1,7 @@
Summary: The mdadm program controls Linux md devices (software RAID arrays)
Name: mdadm
Version: 3.2.5
-Release: 1%{?dist}
+Release: 2%{?dist}
Source: http://www.kernel.org/pub/linux/utils/raid/mdadm/mdadm-%{version}.tar.xz
Source1: mdmonitor.init
Source2: raid-check
@@ -91,8 +91,8 @@ fi
%preun
if [ $1 = 0 ]; then
- /bin/systemctl --no-reload disable mdmonitor.service > /dev/null 2>&1 || :
- /bin/systemctl stop mdmonitor.service > /dev/null 2>&1 || :
+ /bin/systemctl --no-reload disable mdmonitor.service mdmonitor-takeover.service > /dev/null 2>&1 || :
+ /bin/systemctl stop mdmonitor.service mdmonitor-takeover.service > /dev/null 2>&1 || :
fi
%postun
@@ -128,6 +128,12 @@ fi
%{_initrddir}/*
%changelog
+* Wed Jun 13 2012 Jes Sorensen <Jes.Sorensen at redhat.com> - 3.2.5-2
+- Fix uninstall script to remove dangling symlink to
+ mdmonitor-takeover.service, if the mdadm package is uninstalled from
+ the system.
+- Resolves bz828354
+
* Mon May 21 2012 Jes Sorensen <Jes.Sorensen at redhat.com> - 3.2.5-1
- Upgrade to mdadm-3.2.5
- Resolves bz822850
More information about the scm-commits
mailing list