Bug#785104: mdadm: disabling auto-assembly won't work in initramfs as AUTO lines are not copied from mdadm.conf

Cyril B. cbay at excellency.fr
Tue May 12 11:24:15 UTC 2015


Package: mdadm
Version: 3.3.2-5
Severity: important
Tags: patch

/lib/udev/rules.d/64-md-raid-assembly.rules says:

# remember you can limit what gets auto/incrementally assembled by
# mdadm.conf(5)'s 'AUTO' and selectively whitelist using 'ARRAY'

However, in an initramfs, AUTO lines are NOT copied from /etc/mdadm/mdadm.conf.
In /usr/share/initramfs-tools/hooks/mdadm, install_config contains:

# only copy ARRAY/DEVICE/HOMEHOST lines, and merge continuation lines into one

Disabling auto-assembly won't work, which can make the system unbootable/unworkable,
for instance if you have multiple filesystems having the same label.

Trivial patch included.


-- System Information:
Debian Release: 8.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/12 CPU cores)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: initramfs_hook_keep_auto_lines.patch
Type: text/x-diff
Size: 698 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-mdadm-devel/attachments/20150512/8bbcd97f/attachment.patch>


More information about the pkg-mdadm-devel mailing list