From 30dcdc972f0b8e5f34bb59669e5b479449eeee2f Mon Sep 17 00:00:00 2001 From: madduck Date: Tue, 22 Aug 2006 20:14:34 +0000 Subject: addressing #384222 --- debian/mdadm.config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'debian/mdadm.config') diff --git a/debian/mdadm.config b/debian/mdadm.config index f1ed1fdc..92485b49 100644 --- a/debian/mdadm.config +++ b/debian/mdadm.config @@ -111,10 +111,10 @@ while true; do fi if [ -f $CONFIG ]; then - if ! egrep -q "^ARRAY[[:space:]]+$i[[:space:]]+" $CONFIG; then + if ! egrep -q "^ARRAY[[:space:]]+$i([[:space:]]+|$)" $CONFIG; then t="$(readlink -nf "$i")" if [ -L "$i" ] \ - && egrep -q "^ARRAY[[:space:]]+$t[[:space:]]+" $CONFIG; then + && egrep -q "^ARRAY[[:space:]]+$t([[:space:]]|$)+" $CONFIG; then i="$t" else db_subst mdadm/initrdstart_notinconf array "$i" -- cgit v1.2.3