Re: Re: tao-d] Lots of unnecessary modules loaded

Bogdan Costescu <Bogdan.Costescu-hEciA7+sKtudPOQpRHQ53DeJuz7u0hKX@public.gmane.org> Fri, 29 Jul 2005 17:50:00 +0200 (CEST)
Newsgroups gmane.linux.tao.general
Message-ID <Pine.LNX.4.44.0507291743090.4832-100000@kenzo.iwr.uni-heidelberg.de>
On Fri, 29 Jul 2005, Remco Barendse wrote:

> Thanks, for the reply but I already tried that, the specific modules are 
> not in /etc/modprobe.conf (Tao4). I'm guessing that the modules are 
> included in initrd for some reason. However, I have no idea how to get 
> control over the modules that are included with initrd.

With mkinitrd. This can be run by hand, but it's usually run as part
of the installation of the kernel RPM; the drivers that are included
in the initrd are those found in /etc/modprobe.conf. There might also
be additional modules (like md) that are added based on the runtime
existence of certain conditions (in md's case, /proc/mdstat not
empty). As mkinitrd is a shell script, you can actually take a look at 
what it's doing, although it might look a bit convoluted at times.

If you want to run mkinitrd by hand:

mkinitrd -f /boot/initrd-`uname -r` `uname -r`

which will remake the initrd for the currently running kernel. Be
aware that the above command line overwrites the existing initrd; it
might be a good idea to save the existing one somewhere in case the
new initrd doesn't contain enough/correct modules to let the system 
boot.

-- 
Bogdan Costescu

IWR - Interdisziplinaeres Zentrum fuer Wissenschaftliches Rechnen
Universitaet Heidelberg, INF 368, D-69120 Heidelberg, GERMANY
Telephone: +49 6221 54 8869, Telefax: +49 6221 54 8868
E-mail: Bogdan.Costescu-PDzUyZpvkMP/PDbm/[email protected]