Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 286233

Summary: genkernel includes and loades raid and nfs modules
Product: Gentoo Hosted Projects Reporter: Daniel Troeder <daniel>
Component: genkernelAssignee: Gentoo Genkernel Maintainers <genkernel>
Status: RESOLVED WONTFIX    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Daniel Troeder 2009-09-24 14:04:03 UTC
genkernel-3.4.10.904 includes all md-modules I have compiled as modules (md_mod dm_mirror raid10 raid456 raid1 raid0) into the initramfs, though I configure DMRAID="no" in /etc/genkernel.conf and my cmd line is
$ genkernel ramdisk

The modules are also all loaded when booting. (I really don't need them: I can unload them afterwards.)

Also the NFS client modules are included and loaded without having requested "--netboot". (And why is the "fuse" module there?)

Reproducible: Always

Steps to Reproduce:
1.$ genkernel ramdisk
2.$ gzip -dc /boot/initramfs-genkernel-x86_64-2.6.30-tuxonice-r5.mayo.nofb | cpio -t | grep 'drivers/md'
3. reboot
4. $ lsmod | egrep 'raid|dm|md'

Actual Results:  
$ gzip -dc /boot/initramfs-genkernel-x86_64-2.6.30-tuxonice-r5.mayo.nofb | cpio -t | grep 'drivers/md'
lib/modules/2.6.30-tuxonice-r5.mayo.nofb/kernel/drivers/md
lib/modules/2.6.30-tuxonice-r5.mayo.nofb/kernel/drivers/md/dm-log.ko
lib/modules/2.6.30-tuxonice-r5.mayo.nofb/kernel/drivers/md/dm-mirror.ko
lib/modules/2.6.30-tuxonice-r5.mayo.nofb/kernel/drivers/md/dm-region-hash.ko
lib/modules/2.6.30-tuxonice-r5.mayo.nofb/kernel/drivers/md/md-mod.ko
lib/modules/2.6.30-tuxonice-r5.mayo.nofb/kernel/drivers/md/raid0.ko
lib/modules/2.6.30-tuxonice-r5.mayo.nofb/kernel/drivers/md/raid1.ko
lib/modules/2.6.30-tuxonice-r5.mayo.nofb/kernel/drivers/md/raid10.ko
lib/modules/2.6.30-tuxonice-r5.mayo.nofb/kernel/drivers/md/raid456.ko
lib/modules/2.6.30-tuxonice-r5.mayo.nofb/kernel/drivers/md/raid6_pq.ko

$ lsmod | egrep 'raid|dm|md'
raid0                   7300  0 
raid1                  22064  0 
raid456                48704  0 
raid10                 21472  0 
md_mod                 90868  4 raid0,raid1,raid456,raid10
dm_mirror              15416  0 
async_memcpy            2192  1 raid456
async_xor               2960  1 raid456
xor                     5872  2 raid456,async_xor
async_tx                3408  3 raid456,async_memcpy,async_xor
raid6_pq               81448  1 raid456
dm_region_hash         13312  1 dm_mirror
dm_log                 10980  2 dm_mirror,dm_region_hash

Expected Results:  
No md*/raid*/nfs* modules loaded or included in initramfs.

sys-apps/portage-2.1.6.13(03:25:51 PM 09/20/2009)(-build -doc -epydoc -linguas_pl -selinux)
sys-kernel/genkernel-3.4.10.904(05:59:15 PM 06/02/2009)(bash-completion -ibm -selinux)
sys-kernel/tuxonice-sources-2.6.30-r5(2.6.30-r5)!b!s(04:56:02 PM 09/20/2009)(-build -symlink)
sys-apps/module-init-tools-3.5!t(04:48:36 PM 09/20/2009)(-old-linux)
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2009-12-27 00:39:16 UTC
The DMRAID option controls the building of the tools. It does not disable support in the resulting kernel. If you want to do that, invoke with --menuconfig and disable it yourself.

The NFS code came long before the --netboot options existed. They are mostly unrelated and you can remove the NFS client modules the same way as above.