Your message dated Wed, 29 Apr 2009 09:34:23 +0000 with message-id <[email protected]> and subject line Bug#525655: fixed in mdadm 2.6.9-2 has caused the Debian Bug report #525655, regarding /usr/share/initramfs-tools/hooks/mdadm: warnings to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 525655: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=525655 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: mdadm Version: 2.6.9-1 Severity: normal Got warnings like this: W: mdadm: You appear to be missing /dev/md1 from /etc/mdadm/mdadm.conf W: mdadm: If this is required to boot you must add this line: W: mdadm: ARRAY /dev/md1 level=raid1 num-devices=2 UUID=e28345e7:cf40379b:3407723407727f:ebf0f0b0 on all md-devices except the md0 boot device, but there doesn't seem to be anything wrong with my /etc/mdadm/mdadm.conf, AFAICS. I believe i found a few bugs in /usr/share/initramfs-tools/hooks/mdadm. See attached patch (mdadm-hook.1.patch). Hunk 4 corrects the real bug. Hunk 1 corrects another bug. Hunks 2 and 3 correct a quoting problem (unescaped double quotes inside double quotes). Quoting devpairs="$(...)" is not even necessary, as the expression is already protected. Attached mdadm-hook.2.patch is an unrelated light cleanup. Cheers, -- Package-specific info: --- mdadm.conf # mdadm.conf # # Please refer to mdadm.conf(5) for information about this file. # # by default, scan all partitions (/proc/partitions) for MD superblocks. # alternatively, specify devices to scan, using wildcards if desired. DEVICE partitions # auto-create devices with Debian standard permissions CREATE owner=root group=disk mode=0660 auto=yes # automatically tag new arrays as belonging to the local system HOMEHOST <system> # instruct the monitoring daemon where to send mail alerts MAILADDR root # definitions of existing MD arrays ARRAY /dev/md0 level=raid1 num-devices=2 UUID=a22e8b23:e33010ae:1b789cb8:f0e59097 ARRAY /dev/md1 level=raid1 num-devices=2 UUID=e28345e7:cf40379b:3407727f:ebf0f0b0 ARRAY /dev/md2 level=raid1 num-devices=2 UUID=6f701daa:b57eb876:ff3b7856:d4d90ad9 ARRAY /dev/md3 level=raid1 num-devices=2 UUID=e5ffa444:faefb7e9:50c99164:e968e706 ARRAY /dev/md4 level=raid1 num-devices=2 UUID=e096f650:60604e58:166a937a:fad38aca ARRAY /dev/md5 level=raid1 num-devices=2 UUID=6b146f31:bafbff26:d7214dde:aeee3db7 ARRAY /dev/md6 level=raid1 num-devices=2 UUID=9daa9f59:86c02785:19553a1e:921899f7 ARRAY /dev/md7 level=raid1 num-devices=2 UUID=009e26e4:0211bffd:5cfa0948:9d57b2b1 ARRAY /dev/md8 level=raid1 num-devices=2 UUID=38e785e5:81fccc87:94a5ab19:f874eae1 ARRAY /dev/md9 level=raid1 num-devices=2 UUID=b83c5142:53b42a66:dcd42906:16b92873 --- /proc/mdstat: Personalities : [raid1] md9 : active raid1 sda12[0] sdb12[1] 78132032 blocks [2/2] [UU] md8 : active raid1 sda11[0] sdb11[1] 39061952 blocks [2/2] [UU] md7 : active raid1 sda10[0] sdb10[1] 5855552 blocks [2/2] [UU] md6 : active raid1 sda9[0] sdb9[1] 5855552 blocks [2/2] [UU] md5 : active raid1 sda8[0] sdb8[1] 5855552 blocks [2/2] [UU] md4 : active raid1 sda7[0] sdb7[1] 5855552 blocks [2/2] [UU] md3 : active raid1 sda6[0] sdb6[1] 3903680 blocks [2/2] [UU] md2 : active raid1 sda5[0] sdb5[1] 1951744 blocks [2/2] [UU] md1 : active raid1 sda2[0] sdb2[1] 1951808 blocks [2/2] [UU] md0 : active raid1 sda1[0] sdb1[1] 979840 blocks [2/2] [UU] unused devices: <none> -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/bash Versions of packages mdadm depends on: ii debconf 1.5.26 Debian configuration management sy ii libc6 2.9-7 GNU C Library: Shared libraries ii lsb-base 3.2-22 Linux Standard Base 3.2 init scrip ii makedev 2.3.1-88 creates device files in /dev ii udev 0.141-1 /dev/ and hotplug management daemo Versions of packages mdadm recommends: ii module-init-tools 3.7-pre9-1 tools for managing Linux kernel mo ii postfix [mail-transport-agent 2.5.5-1.1 High-performance mail transport ag mdadm suggests no packages. -- debconf information: * mdadm/autostart: true * mdadm/initrdstart: /dev/md0 mdadm/initrdstart_notinconf: false mdadm/initrdstart_msg_errexist: mdadm/initrdstart_msg_intro: mdadm/initrdstart_msg_errblock: mdadm/warning: * mdadm/start_daemon: true * mdadm/mail_to: root mdadm/initrdstart_msg_errmd: mdadm/initrdstart_msg_errconf: * mdadm/autocheck: true -- Cristian--- /usr/share/initramfs-tools/hooks/mdadm 2009-04-25 19:57:49.000000000 +0200 +++ mdadm.1 2009-04-26 12:56:39.000000000 +0200 @@ -24,7 +24,7 @@ { case "${1:-}" in [Yy]es|[Yy]|1|[Tt]rue|[Tt]) return 0;; - *) return 1; + *) return 1;; esac } @@ -179,7 +179,7 @@ exit 0 else # obtain dev:level pairs from config file, honouring multiline entries - devpairs="$( + devpairs=$( while read line; do case "$line" in (ARRAY*) :;; @@ -207,7 +207,7 @@ echo -n "$($MDADM --detail $dev | sed -rne 's,[[:space:]]+Raid Level : ,,p')" fi echo -n ' ' - done < $DESTMDADMCONF)" || exit $? + done < $DESTMDADMCONF) || exit $? fi uniquify() @@ -234,7 +234,7 @@ # see if /etc/mdadm/mdadm.conf looks like it's missing devices if [ -x $MDADM ]; then $MDADM --detail --scan | while read array device rubbish; do - if ! echo $devs | grep -qw $device; then + if ! echo $devpairs | grep -qw $device; then warn "You appear to be missing $device from /etc/mdadm/mdadm.conf" warn "If this is required to boot you must add this line:" rubbish=`echo $rubbish | sed 's/metadata=[^ ]* //'`--- mdadm.1 2009-04-26 12:56:39.000000000 +0200 +++ mdadm.2 2009-04-26 12:54:29.000000000 +0200 @@ -6,14 +6,14 @@ # set -eu -PREREQ="" +PREREQ= prereqs() { echo "$PREREQ" } -case ${1:-} in +case "${1:-}" in prereqs) prereqs exit 0 @@ -30,7 +30,7 @@ write() { - local PREFIX; PREFIX=$1; shift + local PREFIX=$1; shift echo "${PREFIX}: mdadm: $@" >&2 } @@ -218,7 +218,7 @@ if [ "$INITRDSTART" != none ] && [ -n "$devpairs" ]; then echo "MD_DEVPAIRS='${devpairs% }'" >> $DESTCONFIG - devs=''; levels='' + devs=; levels= for i in $devpairs; do dev=${i%:*} level=${i##*:} @@ -295,7 +295,7 @@ fi # only output this on Debian systems -[ -s /etc/default/mdadm ] && \ +[ -s /etc/default/mdadm ] && info 'use `dpkg-reconfigure --priority=low mdadm` to change this.' exit 0
--- End Message ---
--- Begin Message ---Source: mdadm Source-Version: 2.6.9-2 We believe that the bug you reported is fixed in the latest version of mdadm, which is due to be installed in the Debian FTP archive: mdadm-udeb_2.6.9-2_amd64.udeb to pool/main/m/mdadm/mdadm-udeb_2.6.9-2_amd64.udeb mdadm_2.6.9-2.diff.gz to pool/main/m/mdadm/mdadm_2.6.9-2.diff.gz mdadm_2.6.9-2.dsc to pool/main/m/mdadm/mdadm_2.6.9-2.dsc mdadm_2.6.9-2_amd64.deb to pool/main/m/mdadm/mdadm_2.6.9-2_amd64.deb A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. martin f. krafft <[email protected]> (supplier of updated mdadm package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Format: 1.8 Date: Sun, 26 Apr 2009 16:08:28 +0200 Source: mdadm Binary: mdadm mdadm-udeb Architecture: source amd64 Version: 2.6.9-2 Distribution: unstable Urgency: low Maintainer: Debian mdadm maintainers <[email protected]> Changed-By: martin f. krafft <[email protected]> Description: mdadm - tool to administer Linux MD arrays (software RAID) mdadm-udeb - tool to administer Linux MD arrays (software RAID) (udeb) Closes: 505375 519999 525655 Changes: mdadm (2.6.9-2) unstable; urgency=low . * Fix the check of whether mdadm.conf defines all devices known to the system; thanks Cristian Ionescu-Idbohrn (closes: #525655). * No longer pass -k to modprobe, which has been deprecated for a long time; thanks to Jan Hudec (closes: #519999). * Remove Mario Joußen from the uploaders list, since his email started bouncing. * Prepare mdadm source to use quilt, with the long-term goal to switch to TopGit, once I find the time. * Cherry-pick caa0f6c & 667e66d from Neil into a quilt patch to fix gcc-4.4 compiler issues (closes: #505375). Checksums-Sha1: 5a8fe36c8fddc055012eaee02db23744091ae922 1224 mdadm_2.6.9-2.dsc dac151cf799133e92488b19624df59845409b0be 139297 mdadm_2.6.9-2.diff.gz 73f96f7885517c3be380ffef30fb03afd0a2492c 274760 mdadm_2.6.9-2_amd64.deb 132855ff21842eeaf208423b8eeabb177aef919a 90422 mdadm-udeb_2.6.9-2_amd64.udeb Checksums-Sha256: 8adcfbcd31183bc592b4c22ff16faf6d6a7a42805cd8664ccc01ed0e7fa7807c 1224 mdadm_2.6.9-2.dsc 38f0627cd2b60380d4b72b80e9085174af7bf6fc28aa8572592e62d9f6270c76 139297 mdadm_2.6.9-2.diff.gz 3dfe61c7c8b3a7c32c4edbae0d93f718e2f52a3b16090b46c7320c3c9ef9d246 274760 mdadm_2.6.9-2_amd64.deb 42ddb0218ea3602acaabb8b48392be2f35d343bbf5bbc7c16180551d8eb2d304 90422 mdadm-udeb_2.6.9-2_amd64.udeb Files: 35bc0d6f2d6473248b42157b9557d0a7 1224 admin optional mdadm_2.6.9-2.dsc 80b50544e7dfb78c98f284765b584b6f 139297 admin optional mdadm_2.6.9-2.diff.gz 6b60937cb295f0516c9fe5c2d19e576e 274760 admin optional mdadm_2.6.9-2_amd64.deb af1c5cbec202bc6fb5d05503596bb721 90422 debian-installer optional mdadm-udeb_2.6.9-2_amd64.udeb Package-Type: udeb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkn4BoIACgkQIgvIgzMMSnVKTACguACqxpat0pIKJBsoTt1NyGGC V14An0DNpFQy2sUUPmSmVVstfneh+G3s =p69/ -----END PGP SIGNATURE-----
--- End Message ---

