Bug#737951: mdadm: udev rules files ignores raid=noautodetect kernel parameter

Michael Prokop mika at debian.org
Fri Feb 7 07:21:21 UTC 2014


Package: mdadm
Version: 3.3-2
Severity: normal


Quoting from kernel's Documentation/md.txt:

,---- [ https://www.kernel.org/doc/Documentation/md.txt ]
| Boot time autodetection of RAID arrays
| --------------------------------------
|
| When md is compiled into the kernel (not as module), partitions of
| type 0xfd are scanned and automatically assembled into RAID arrays.
| This autodetection may be suppressed with the kernel parameter
| "raid=noautodetect".  As of kernel 2.6.9, only drives with a type 0
| superblock can be autodetected and run at boot time.
`----

The udev rules file /lib/udev/rules.d/64-md-raid-assembly.rules
shipped by mdadm ignores that kernel parameter and tries to assemble
mdadm RAIDs without honoring the raid=noautodetect setting.

It would be nice if there would be some way (maybe just checking for
raid=noautodetect in /proc/cmdline?) to disable auto assembly
without having to manually delete/override the udev file.

regards,
-mika-



More information about the pkg-mdadm-devel mailing list