Bug#678262: mdadm: fails to honour INITRDSTART='none' in /etc/default/mdadm
Chris Donoghue
cdonoghu at gmail.com
Wed Jun 20 11:42:14 UTC 2012
Package: mdadm
Version: 3.2.5-1
Severity: critical
Justification: breaks the whole system
Dear Maintainer,
It looks like the /usr/share/initramfs-tools/hooks/mdadm fails to honour
the setting of INITRDSTART='none' in /etc/default/mdadm which led to an unbootable
system.
The initramfs panic'ed from the script in
/usr/share/initramfs-tools/scripts/local-top/mdadm.
It does continue on when the exiting out of the initrd dropped to shell.
With none setting that above files are put in the initrd
$ lsinitramfs /boot/initrd.img-3.2.0-2-amd64 | grep mdadm
etc/mdadm
etc/mdadm/mdadm.conf
sbin/mdadm
scripts/local-top/mdadm
Which aren't required at all in mdadm isn't required to be started at initrd time.
I added at line 80 of /usr/share/initramfs-tools/hooks/mdadm
[ $INITRDSTART = "none" ] && exit 0
which allowed my system to boot through fine.
But these still leaves me with
$ lsinitramfs /boot/initrd.img-3.2.0-2-amd64 | grep mdadm
sbin/mdadm
scripts/local-top/mdadm
Which aren't needed due to no requirement of mdadm in initrd.
Thanks
Chris
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (990, 'unstable'), (800, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages mdadm depends on:
ii debconf 1.5.44
ii initscripts 2.88dsf-27
ii libc6 2.13-33
ii lsb-base 4.1+Debian7
ii makedev 2.3.1-91
ii udev 175-3.1
Versions of packages mdadm recommends:
ii module-init-tools 8-2
ii qmail-run [mail-transport-agent] 2.0.2.0
mdadm suggests no packages.
-- debconf information:
* mdadm/autostart: true
* mdadm/initrdstart: all
mdadm/initrdstart_notinconf: false
mdadm/initrdstart_msg_errexist:
mdadm/initrdstart_msg_intro:
mdadm/initrdstart_msg_errblock:
* mdadm/start_daemon: true
* mdadm/mail_to: root
mdadm/initrdstart_msg_errmd:
mdadm/initrdstart_msg_errconf:
* mdadm/autocheck: true
More information about the pkg-mdadm-devel
mailing list