* [gentoo-user] Loading, modules, via, /ec/conf.d/modules, minimalisticly
@ 2015-05-10 9:12 Meino.Cramer
2015-05-10 9:34 ` Stephan Müller
0 siblings, 1 reply; 3+ messages in thread
From: Meino.Cramer @ 2015-05-10 9:12 UTC (permalink / raw
To: Gentoo
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] Loading, modules, via, /ec/conf.d/modules, minimalisticly
2015-05-10 9:12 [gentoo-user] Loading, modules, via, /ec/conf.d/modules, minimalisticly Meino.Cramer
@ 2015-05-10 9:34 ` Stephan Müller
2015-05-10 9:48 ` Meino.Cramer
0 siblings, 1 reply; 3+ messages in thread
From: Stephan Müller @ 2015-05-10 9:34 UTC (permalink / raw
To: gentoo-user
Am 10.05.2015 um 11:12 schrieb Meino.Cramer@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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-user] Loading, modules, via, /ec/conf.d/modules, minimalisticly
2015-05-10 9:34 ` Stephan Müller
@ 2015-05-10 9:48 ` Meino.Cramer
0 siblings, 0 replies; 3+ messages in thread
From: Meino.Cramer @ 2015-05-10 9:48 UTC (permalink / raw
To: gentoo-user
Stephan Müller <fruktopus@gmail.com> [15-05-10 11:36]:
> Am 10.05.2015 um 11:12 schrieb Meino.Cramer@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
>
Hi Stephan,
thanks for the informations! :)
Best regards,
Meino
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-05-10 9:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-10 9:12 [gentoo-user] Loading, modules, via, /ec/conf.d/modules, minimalisticly Meino.Cramer
2015-05-10 9:34 ` Stephan Müller
2015-05-10 9:48 ` Meino.Cramer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox