Results 1 to 5 of 5
So, a couple days ago I ran lsmod on my Arch system and I noticed a couple modules that I do not need. These included the firewire and ipv6 modules.
...
- 03-04-2011 #1
[SOLVED] Stop Loading Modules From RamDisk
So, a couple days ago I ran lsmod on my Arch system and I noticed a couple modules that I do not need. These included the firewire and ipv6 modules.
I'd like to disable these from being loaded by the ramdisk, so I edited my /etc/modprobe.d/modprobe.conf with the following:
I then added my modprobe.conf to my /etc/mkinitcpio.conf:Code:# disable ipv6 options ipv6 disable=1 # disable firewire options firewire_ohci disable=1 options firewire_core disable=1
Once I added that, I rebuilt my ramdisk using the following command:Code:FILES="/etc/modprobe.d/modprobe.conf"
I rebooted and then ran lsmod once again, I don't see the firewire module, but I still see ipv6:Code:mkinitcpio -p kernel26
Am I referencing ipv6 incorrectly in my modprobe.conf? I'd love to hear your words of wisdom!Code:ipv6 243529 0
- 03-05-2011 #2
I believe that doesn't prevent modules from loading if called by another module. Something else is probably calling ipv6. Why not just blacklist it in rc.conf?
- 03-05-2011 #3
Hmm, well that's a great idea, Reed. But for some reason, after putting it in my modules array to blacklist, it still loads!
Weirdness.. Did I do something wrong here?Code:MODULES=(!ipv6)
I wonder if there is a way to find out if anything else is calling it. I'm pretty sure it has 0 dependents, that is, if I'm reading the lsmod results correctly.
Out of curiosity, I ran the modinfo command to see if I can learn more about this module:
It looks like the first two parameters are trying to disable the module, but something called 'autoconf' is enabling IPv6. I have a feeling if I want to get to the bottom of this, I'll need to do some research into autoconf.Code:# modinfo ipv6 filename: /lib/modules/2.6.37-ARCH/kernel/net/ipv6/ipv6.ko.gz alias: net-pf-10 license: GPL description: IPv6 protocol stack for Linux author: Cast of dozens depends: vermagic: 2.6.37-ARCH SMP preempt mod_unload 686 parm: disable:Disable IPv6 module such that it is non-functional (int) parm: disable_ipv6:Disable IPv6 on all interfaces (int) parm: autoconf:Enable IPv6 address autoconfiguration on all interfaces (int)
I think I'll do that now, I'll be sure to update with any info I find. If you have any ideas, feel free to share
Thanks again.
- 03-05-2011 #4
You can get more aggressive if you really don't want it to load. Put this in /etc/modprobe.d/modprobe.conf
Anytime it tries to load it will install to /bin/true, ie, return success but do nothing.Code:install ipv6 /bin/true
- 03-05-2011 #5
Hey, that did the trick!
Thanks a million, I feel much better now
I'm still clueless as to how autoconf is configured to call IPv6, even after blacklisting the module. I took a gander at autoconf documentation and it's a bit daunting. I'll dig into it one of these days..
Until then, /bin/true will keep IPv6 off my system. That is, until a major adoption of IPv6 occurs..
Thanks again man.



