tags 380596 confirmed patch severity 380596 important thanks also sprach Christian Pernegger <[EMAIL PROTECTED]> [2006.07.31.0945 +0100]: > The default answer in my case is /dev/md_d0p1, i. e. the first > partition on the array. Is this correct or should the answer refer to > the array itself (/dev/md_d0)?
You tell me! I am not acquainted with partitionable arrays, but it seems that the entire array needs to be started to get at the partition, huh? > If the current hooks don't even support partitionable md a warning > would be in order. (Can't check as my initrd is homegrown.) I'll fix this in -9. Could you please try the attached patch? # save to /tmp/config.patch patch /var/lib/dpkg/info/mdadm.config < /tmp/config.patch dpkg-reconfigure -plow mdadm Thanks! -- Please do not send copies of list mail to me; I read the list! .''`. martin f. krafft <[EMAIL PROTECTED]> : :' : proud Debian developer and author: http://debiansystem.info `. `'` `- Debian - when you have better things to do than fixing a system
Index: mdadm.config
===================================================================
--- mdadm.config (revision 32)
+++ mdadm.config (working copy)
@@ -77,19 +77,22 @@
ARRAYS=''
ERROR=0
for i in $INITRDSTART; do
+
+ # just in case people use commas between devices
+ i="${i%,}"
+
+ # standardise by prefixing /dev/
+ case "$i" in md*) i="/dev/$i";; *) :;; esac
+
+ # remove partition from name of partitionable devices
+ i="${i%p[0-9]*}"
+
case "$i" in
- /dev/md*)
- t=${i%,} # just in case people use commas between devices
- [ -b "$t" ] && ARRAYS="${ARRAYS:+$ARRAYS }$t" && continue
- echo "E: invalid device: $i" >&2
+ /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
;;
- md*)
- t=/dev/${i%,} # just in case people use commas between devices
- [ -b "$t" ] && ARRAYS="${ARRAYS:+$ARRAYS }$t" && continue
- echo "E: invalid device: $i" >&2
- ERROR=1; break
- ;;
*)
echo "E: unrecognised device string: $i" >&2
ERROR=1; break
signature.asc
Description: Digital signature (GPG/PGP)

