Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

"# /etc/modules: kernel modules to load at boot time." my question is when and where the module loading job done?

my first guess is some init scripts in /etc/init.d/ but grep got none. then i think it might be the init ramdisk, but after decompress it, i found conf/modules which is different with /etc/modules.

any idea? thanx.

share|improve this question

2 Answers 2

up vote 3 down vote accepted

Look at:

/etc/init/module-init-tools.conf
share|improve this answer

In debian that file is read by the initialization files, so in /etc/rcS directory and by the script file S20module-init-tools. So it's pretty at the beginning and always after udev try to load all the needed modules.

share|improve this answer
    
but find /etc/rcS.d/ | xargs -i grep -l modules {} returns nothing... –  Dyno Fu May 14 '10 at 9:32
    
debtest:/etc/rcS.d# grep modules * S12mtab.sh: /lib/modules/*/volatile) S20module-init-tools:# Short-Description: Process /etc/modules. S20module-init-tools:# Description: Load the modules listed in /etc/modules. S20module-init-tools:# Silently exit if the kernel does not support modules or needs modutils. S20module-init-tools:[ -f /proc/modules ] || exit 0 –  Pier May 14 '10 at 10:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.