also sprach Gabor Gombas <[EMAIL PROTECTED]> [2006.08.22.1952 +0100]:
> But md0 _is_ listed in mdadm.conf.  Maybe the postinst script is
> confused by the multi-line syntax?

Good spot. Could you please apply the following patch and run
dpkg-reconfigure to verify it now works (just copy-paste into
a root-shell should work):

patch /var/lib/dpkg/info/mdadm.config <<_eof
Index: mdadm.config
===================================================================
--- mdadm.config  (revision 127)
+++ mdadm.config  (working copy)
@@ -111,10 +111,10 @@
         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"
_eof
dpkg-reconfigure mdadm


Thanks,

-- 
 .''`.     martin f. krafft <[EMAIL PROTECTED]>
: :'  :    proud Debian developer, author, administrator, and user
`. `'`     http://people.debian.org/~madduck http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems

Attachment: signature.asc
Description: Digital signature (GPG/PGP)

Reply via email to