On 01/04/2012 11:39 PM, Laurent Bigonville wrote:
> Instead of loading all kernel modules, it could maybe be interesting
> to add a config file in /etc/initramfs-tools/conf.d/ to let the user
> select which hardware handler he wants to load before udev?

Yup. That'd be the best in this case.

Looks like we already are doing something like that:

====8<================8<====================8<===

maybe_break pre-multipath
VERBOSITY=0
MP_MODULES="dm-multipath dm-emc"

if [ ! -e /sbin/multipath ]; then
        exit 0
fi

verbose && log_begin_msg "Loading multipath modules"
for module in ${MP_MODULES}; do
  if modprobe --syslog "$module"; then
    verbose && log_success_msg "loaded module ${module}."
  else
    log_failure_msg "failed to load module ${module}."
  fi
done
verbose && log_end_msg

====8<================8<====================8<===


If anyone can try this out, it'll be great.


-- 
Ritesh Raj Sarraf | http://people.debian.org/~rrs
Debian - The Universal Operating System

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to