Chcę automatycznie ładować niektóre moduły jądra, gdy jest uruchomiony. Czytałem podręcznik podręcznika, ale nie mogę pomóc. Teraz moduły, które chcę autoload są vboxdrv
vboxnetadp
vboxpci
vboxnetflt
, katalog modułów jest /lib/modules/3.0.6-gentoo/
, katalog config jest /etc/modules.autoload.d/kernel-3.0.6
, w tym pliku, moduły są wliczone. A teraz po ponownym uruchomieniu komputera, użyj lsmod
, nie widzę załadowanych modułów. W czym problem?Jak automatycznie ładować moduł jądra w Gentoo?
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
Teraz używam kernel-3.0.6-n6
jako mojego jądra startowego.
thinkpad walle # cat /etc/modules.autoload.d/kernel-3.0.6
xt_mark
test_nx
scsi_wait_scan
wlagn
ext2
vboxdrv
vboxnetadp
vboxpci
vboxnetflt
Tak, '/ etc/conf.d/modules' jest teraz drogą do zrobienia. Możesz zdefiniować listę modułów dla konkretnej wersji jądra, np. Kernel-3.0.6: 'modules_3_0_6 =" vboxdrv vboxnetadp vboxpci vboxnetflt "'. – noisebleed