tags 381007 + confirmed pending
thanks

also sprach Bas Wijnen <[EMAIL PROTECTED]> [2006.08.01.1322 +0100]:
> Anyway, the problem is that during preconfigure, the script hangs while
> continuously saying "E: unrecognised device string: /dev/md/0"
> Looking at the script, the problem is that this matches
> /dev/md*|md*),
> but not
> /dev/md[0-9]*|/dev/md_d[0-9]*)

Aye, that was a stupid oversight on my part.

> This, plus the while true, which perhaps should be
> while [ $ERROR -eq 0 ], leads to the endless loop.

The loop should stay endless, IMHO, to ensure that the user passes
a proper device string (or 'all' or 'none'). but undoubtedly, the
problem you point out should be fixed.

> I do not have enough knowledge of the purpose of the script to write a
> patch just now, but I suppose it's not too hard to fix.

Easy to fix:

patch /var/lib/dpkg/info/mdadm.config <<_eof
--- debian/mdadm.config (revision 46)
+++ debian/mdadm.config (working copy)
@@ -88,7 +88,7 @@
         i="${i%p[0-9]*}"
 
         case "$i" in
-          /dev/md[0-9]*|/dev/md_d[0-9]*)
+          /dev/md[0-9]*|/dev/md_d[0-9]*|/dev/md/[0-9]*|/dev/md/d[0-9]*)
             [ -b "$i" ] && ARRAYS="${ARRAYS:+$ARRAYS }$i" && continue
             echo "E: device does not exist: $i" >&2
             ERROR=1; break
_eof

Could you please apply this, then run

  dpkg-reconfigure -u mdadm

or maybe the following is needed instead:

  dpkg --configure mdadm

and finally try to reboot and report success (or failure)? I suspect
it will work, but it would be good to have this tested.

To make life easier for you, you may want to provide yourself
a safety net by making a copy of the initrd:

  cp /boot/initrd.img-$(uname -r) /boot/initrd.img-$(uname -r).saved

and then to duplicate your main grub or lilo stanzas (rerun lilo!)
and point them to the saved initrd. If things go haywire, you should
be able to restore a working condition with the saved initrd.

-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:"; [EMAIL PROTECTED]
 
spamtraps: [EMAIL PROTECTED]
 
"here i was all convinced that if i sleep all day, bug counts go
 down, and if I work all day, they go up, so much for that theory."
                                                   -- lars wirzenius

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

Reply via email to