problem loading modules

Nathan Coulson conathan at gmail.com
Wed Sep 22 13:25:43 PDT 2004


On Wed, 22 Sep 2004 14:06:21 -0500, Andy Neebel <aneebel at gmail.com> wrote:
> On Wed, 22 Sep 2004 17:47:36 +0200, Joost Gevers
> 
> 
> <joost at gevers-4.tmfweb.nl> wrote:
> > Hello,
> >
> > I installed the LFS from bootcd-6.0-20040920.iso and created a kernel
> > with modules for my network card.
> >
> > However, the module for my network card is not loaded automatically.
> > This results in a warning during startup:
> > Interface eth0 doesn't exist
> >
> > I figured out this is because of "ip link show eth0" in the ifup network
> > script can't find eth0.
> >
> > My /etc/modprobe.conf looks like
> > alias eth0 tulip
> >
> > If I run "modprobe eth0" manually, and run "/etc/rc.d/init.d/network
> > start" the network is running correctly.
> >
> > Is it possible to have the network modules loaded automatically? And if
> > yes, how can this be accomplished?
> >
> > Thanks in advance,
> > Joost Gevers
> >
> > --
> > http://linuxfromscratch.org/mailman/listinfo/lfs-dev
> > FAQ: http://www.linuxfromscratch.org/faq/
> > Unsubscribe: See the above information page
> >
> 
> Probably the better solution is to build your network card's module
> into the kernel, but if you must have it as a module, use the
> /etc/sysconfig/modules file to list modules to be automatically loaded
> at boot
> 
> Andy
> 
> 
> --

echo "eth0" >> /etc/sysconfig/modules

in ifup, there is a bit of code that checks to see if the eth0
interface exists, and exits if it does not.  [it's the ip link eth0
stuff at the top].

the above  line, will have it modprobe for eth0 at the beginning.


-- 
Nathan Coulson (conathan)
------
nathan at linuxfromscratch org
conathan at gmail com



More information about the lfs-dev mailing list