From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 686B2138CA3 for ; Sun, 10 May 2015 09:34:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B3C33E086A; Sun, 10 May 2015 09:34:14 +0000 (UTC) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0B979E0818 for ; Sun, 10 May 2015 09:34:12 +0000 (UTC) Received: by wgic8 with SMTP id c8so78193542wgi.1 for ; Sun, 10 May 2015 02:34:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=EYsPRTCzstVQHAPTyLjCZ7V5DXzEpWU46YXTlPP7ktY=; b=IwBgdFKrvkzYwE4ryicIXgfKMlYmgY9QIrlyje9VfPziVheG/568E3MpYiI2Av1ACo fFOWJ8iF1PSSf7OZrY+nOvrq71B0xNJGfarBobBPcH9AC5kUoAcDfj98HCkJtYKzGe4q 0x+KMyG9HLH+fMPsT7w8Lc6wiXvSKIoz5O8gmpIzfkfcg06M8VGC4Vunm152o7yKxmFv tL1FOSc21j64i8SY7m0c7phhNQIlcHgufHDnJiNujSvGbQMOMYpI9LjLU0YlpEv6SiS/ 12+YFdyh6Gb0mAwa34TNWGKYRUpYL/TQIA2hH67WTurY0ZAbzzqyOT1qiWiz9uFxvY+6 JDew== X-Received: by 10.194.57.40 with SMTP id f8mr11099017wjq.86.1431250451922; Sun, 10 May 2015 02:34:11 -0700 (PDT) Received: from [192.168.178.22] (adsl-89-217-233-109.adslplus.ch. [89.217.233.109]) by mx.google.com with ESMTPSA id s4sm7686705wix.14.2015.05.10.02.34.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 May 2015 02:34:11 -0700 (PDT) Message-ID: <554F2611.2010905@gmail.com> Date: Sun, 10 May 2015 11:34:09 +0200 From: =?windows-1252?Q?Stephan_M=FCller?= User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Loading, modules, via, /ec/conf.d/modules, minimalisticly References: <20150510091208.GA4144@solfire> In-Reply-To: <20150510091208.GA4144@solfire> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Archives-Salt: c5582efc-aaab-4914-8fe9-9c348387b2d5 X-Archives-Hash: 6e4ae35a82f955e6104b72ce341a3320 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