I want to autoload some kernel modules when it's started. I've read the manual book, but can't help. Now the modules that I want to autoload are vboxdrv
vboxnetadp
vboxpci
vboxnetflt
, The modules directory is /lib/modules/3.0.6-gentoo/
, the config file directory is /etc/modules.autoload.d/kernel-3.0.6
, in this file, the modules are all included. And Now after i reboot it, use lsmod
, I can't see these modules loaded. What's the the problem?
thinkpad walle # ls -l /boot/
总用量 17068
lrwxrwxrwx 1 root root 1 1月 10 01:22 boot -> .
drwxr-xr-x 2 root root 4096 4月 27 10:55 grub
-rw-r--r-- 1 root root 5771120 3月 23 09:27 kernel-3.0.6
-rw-r--r-- 1 root root 5771120 4月 26 17:48 kernel-3.0.6-n5
-rw-r--r-- 1 root root 5876784 4月 27 10:55 kernel-3.0.6-n6
drwx------ 2 root root 16384 1月 17 15:47 lost+found
Now I use kernel-3.0.6-n6
as my boot kernel.
thinkpad walle # cat /etc/modules.autoload.d/kernel-3.0.6
xt_mark
test_nx
scsi_wait_scan
wlagn
ext2
vboxdrv
vboxnetadp
vboxpci
vboxnetflt
/etc/conf.d/modules is not used now. Systemd uses its own structure
Put your module list file in /etc/modules-load.d/ man modules-load.d
Put your module option file in /etc/modprobe.d/ man modprobe.d