martin f. krafft: Work around a shell coding bug for cases when there are zero active devices
Martin F. Krafft
madduck at alioth.debian.org
Sun Mar 20 06:39:01 UTC 2011
Module: mdadm
Branch: master
Commit: 6ee29a759ab0e0b08bb68fb4c70b8019f299201d
URL: http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=6ee29a759ab0e0b08bb68fb4c70b8019f299201d
Author: martin f. krafft <madduck at debian.org>
Date: Sun Mar 20 07:38:25 2011 +0100
Work around a shell coding bug for cases when there are zero active devices
Debian bug: #618561
Signed-off-by: martin f. krafft <madduck at debian.org>
---
debian/changelog | 4 +++-
debian/mdadm-raid | 1 +
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 34add4a..2ed64fe 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,8 +13,10 @@ mdadm (3.1.5-1~unreleased.0) UNRELEASED; urgency=low
* Schedule start/stop of mdadm-raid before/after filesystems are
checked&mounted/unmounted; thanks to Mario 'BitKoenig' Holbe
(closes: #611632).
+ * Work around a shell coding bug for cases when there are zero active
+ devices (closes: #618561).
- -- martin f. krafft <madduck at debian.org> Mon, 31 Jan 2011 16:25:40 +0100
+ -- martin f. krafft <madduck at debian.org> Sun, 20 Mar 2011 07:37:46 +0100
mdadm (3.1.4-1+8efb9d1) unstable; urgency=low
diff --git a/debian/mdadm-raid b/debian/mdadm-raid
index 91ef5f5..e85ec09 100644
--- a/debian/mdadm-raid
+++ b/debian/mdadm-raid
@@ -174,6 +174,7 @@ case "${1:-}" in
log_action_begin_msg "Generating udev events for MD arrays"
for uevent in /sys/block/md*/uevent; do
+ test -e $uevent || break
sentinel=${uevent#/sys/block/}; sentinel=${sentinel%/uevent}-uevent
test -e ${STATEDIR:-/doesnotexist}/$sentinel && continue
test -w $uevent || continue
More information about the pkg-mdadm-commits
mailing list