1

"# /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.

Dyno Fu
  • 135
  • 6

2 Answers2

3

Look at:

/etc/init/module-init-tools.conf
Casual Coder
  • 1,216
  • 1
  • 11
  • 12
0

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.

PiL
  • 1,599
  • 8
  • 6
  • but find /etc/rcS.d/ | xargs -i grep -l modules {} returns nothing... – Dyno Fu May 14 '10 at 09: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 – PiL May 14 '10 at 10:29