Mario 'BitKoenig' Holbe: Match UUID case-insensitively
Martin F. Krafft
madduck at alioth.debian.org
Sat Aug 28 18:44:10 UTC 2010
Module: mdadm
Branch: build
Commit: 32f329bbd8b39aadd730047e461d33d74a591fe5
URL: http://git.debian.org/?p=pkg-mdadm/mdadm.git;a=commit;h=32f329bbd8b39aadd730047e461d33d74a591fe5
Author: Mario 'BitKoenig' Holbe <Mario.Holbe at TU-Ilmenau.DE>
Date: Fri May 28 13:18:44 2010 +0200
Match UUID case-insensitively
while checking for running arrays not listed in mdadm.conf
Debian-bug: #583545
Signed-off-by: martin f. krafft <madduck at debian.org>
---
debian/changelog | 8 ++++++++
debian/initramfs/hook | 2 +-
2 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 1e6d9d4..82e067c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+mdadm (3.1.2-3) unstable; urgency=low
+
+ * initramfs/hook: Match UUID case-insensitive while checking for running
+ arrays not listed in mdadm.conf; thanks to Mario 'BitKoenig' Holbe for the
+ patch (closes: #583545).
+
+ -- martin f. krafft <madduck at debian.org> Fri, 28 May 2010 13:17:27 +0200
+
mdadm (3.1.2-2) unstable; urgency=low
* Fix logcheck regexp to cure "egrep: Unmatched [ or [^" message
diff --git a/debian/initramfs/hook b/debian/initramfs/hook
index b9c619a..368b3ae 100644
--- a/debian/initramfs/hook
+++ b/debian/initramfs/hook
@@ -244,7 +244,7 @@ if [ "$INITRDSTART" != none ] && [ -n "$devpairs" ]; then
# make sure the configuration file knows about all running devices
$MDADM --detail --scan | while read array device params; do
uuid=${params#*UUID=}; uuid=${uuid%% *}
- if ! grep -q "UUID=$uuid" $DESTMDADMCONF; then
+ if ! grep -qi "uuid=$uuid" $DESTMDADMCONF; then
warn "the array $device with UUID $uuid"
warn "is currently active, but it is not listed in mdadm.conf. if"
warn "it is needed for boot, then YOUR SYSTEM IS NOW UNBOOTABLE!"
More information about the pkg-mdadm-commits
mailing list