Am 10.05.2015 um 11:12 schrieb meino.cra...@gmx.de: > Hi, > > I need to load some extra modules "manually" when > my Linux box boots to get access to an embedded > system. These modules need to be added to > /etc/conf.d/modules for various reasons. > > The modules are: > > ipt_MASQUERADE 1037 2 > nf_nat_masquerade_ipv4 1785 1 ipt_MASQUERADE > iptable_nat 1578 1 > nf_nat_ipv4 4811 1 iptable_nat > nf_nat 11442 2 nf_nat_ipv4,nf_nat_masquerade_ipv4 > nf_conntrack_ipv4 11964 1 > nf_defrag_ipv4 1395 1 nf_conntrack_ipv4 > nf_conntrack 61998 4 > nf_nat,nf_nat_ipv4,nf_nat_masquerade_ipv4,nf_conntrack_ipv4 > > > How can I distinguish those modules from this list, which need > to be listed in /etc/conf.d/modules from those, which get pulled in by > these? > > Best regards > mcc >
First it does no harm to load modules directly which would be pulled in as dependency anyways. >From the the above lsmod you can leave out those, which have a nonempty used >by column. That would be ipt_MASQUERADE iptable_nat nf_conntrack_ipv4 To get more complete information on dependencies you can look at $ modinfo ipt_MASQUERADE etc. However to get full information you have to look at $ cat /lib/modules/$(uname -r)/modules.dep This gives a complete list of dependencies. ~frukto