martin f. krafft: checkarray: do not exit non-zero when there are no arrays found
Martin F. Krafft
madduck at alioth.debian.org
Thu May 20 09:14:52 UTC 2010
Module: mdadm
Branch: master
Commit: b63f595c5d216751936ecd44b23d38860d79cc4c
URL: http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=b63f595c5d216751936ecd44b23d38860d79cc4c
Author: martin f. krafft <madduck at debian.org>
Date: Thu May 20 11:13:29 2010 +0200
checkarray: do not exit non-zero when there are no arrays found
Debian-bug-reference: #582360
Signed-off-by: martin f. krafft <madduck at debian.org>
---
debian/changelog | 4 +++-
debian/checkarray | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index fada973..b4810e9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -8,7 +8,9 @@ mdadm (3.1.1-2) UNRELEASED; urgency=low
* When preparing the list of devices, treat /dev/mdX and /dev/md/X equally.
* Bump Standards-Version to 3.8.4 without having to make changes.
* Fix logcheck rule with patch from Frédéric Brière, since Rebuild events
- are now arbitrary, no longer multiples of 20 (closes: #570315).
+ are now arbitrary, no longer multiples of 20 (closes: #570315).
+ * checkarray: do not exit non-zero when there are no arrays found (see
+ #582360).
-- martin f. krafft <madduck at debian.org> Wed, 27 Jan 2010 14:42:16 +1300
diff --git a/debian/checkarray b/debian/checkarray
index 5569ee7..0012e10 100644
--- a/debian/checkarray
+++ b/debian/checkarray
@@ -109,7 +109,7 @@ if [ -z "$(ls /sys/block/md* 2>/dev/null)" ]; then
echo "$PROGNAME: W: no active MD arrays found." >&2
echo "$PROGNAME: W: (maybe uninstall the mdadm package?)" >&2
fi
- exit 5
+ exit 0
fi
if [ -z "$(ls /sys/block/md*/md/level 2>/dev/null)" ]; then
More information about the pkg-mdadm-commits
mailing list