Bug#524575: -k is not a modprobe switch

Quentin Godfroy godfroy at clipper.ens.fr
Sat Apr 18 08:45:33 UTC 2009


Package: mdadm
Version: 2.6.8-12-gb47dff6-2
Severity: critical

The "modprobe md" line in /etc/init.d/mdadm-raid
uses the modprobe switch -k which is not recognised by /sbin/modprobe (as of
module-init-tools 3.7-pre9-1).

$ cat /etc/init.d/mdadm-raid
...
|      if [ ! -f /proc/mdstat ] && [ -x "$(command -v modprobe)" ] ; then
|        modprobe -kq md 2>/dev/null || :
|      fi
|      if [ ! -f /proc/mdstat ]; then
|        log_problem "failed to load MD subsystem"
|        exit 0
...
$ /sbin/modprobe -kq md
/sbin/modprobe: invalid option -- 'k'
Usage: /sbin/modprobe [-v] [-V] [-C config-file] [-d <dirname> ] [-n] [-i]
[-q] [-b] [-o <modname>] [ --dump-modversions ] <modname> [parameters...]
/sbin/modprobe -r [-n] [-i] [-v] <modulename> ...
/sbin/modprobe -l -t <dirname> [ -a <modulename> ...]
$

No raid array is assembled on reboot, and the machine is lost.





More information about the pkg-mdadm-devel mailing list