Java Mailing List Archive

http://www.redhatconfig.com/

Home » Red Hat Enterprise Linux 5 »

Re: [rhelv5-list] Re: Lines added to modprobe.conf

John Summerfield

2008-05-12

Replies:

Author LoginPost Reply
Chris Adams wrote:
> Once upon a time, Gerrard Geldenhuis <Gerrard.Geldenhuis@(protected):
>> The installer adds these lines to modprobe.conf when installing:
>>
>> An IBM 336:
>>
>> alias scsi_hostadapter mptbase
>> alias scsi_hostadapter1 mptspi
>> alias scsi_hostadapter2 ata_piix
>
> I believe those lines are used by mkinitrd to determine which modules
> should be included in the initrd whenever a new kernel is installed. If
> you remove them, the next time you install a kernel update and reboot,
> your system won't boot because it won't be able to find your hard
> drive(s).
>

They started in the kernel:
[summer@(protected)
scsi_hostadapter
linux-2.6.24.x86_64/drivers/scsi/scsi.c- * support added by Michael
Neuffer <mike@(protected)>
linux-2.6.24.x86_64/drivers/scsi/scsi.c- *
linux-2.6.24.x86_64/drivers/scsi/scsi.c: * Added
request_module("scsi_hostadapter") for kerneld:
linux-2.6.24.x86_64/drivers/scsi/scsi.c: * (Put an "alias
scsi_hostadapter your_hostadapter" in /etc/modprobe.conf)
linux-2.6.24.x86_64/drivers/scsi/scsi.c- * Bjorn Ekwall <bj0rn@(protected)>
linux-2.6.24.x86_64/drivers/scsi/scsi.c- * (changed to kmod)
vanilla-2.6.24/drivers/scsi/scsi.c- * support added by Michael Neuffer
<mike@(protected)>
vanilla-2.6.24/drivers/scsi/scsi.c- *
vanilla-2.6.24/drivers/scsi/scsi.c: * Added
request_module("scsi_hostadapter") for kerneld:
vanilla-2.6.24/drivers/scsi/scsi.c: * (Put an "alias scsi_hostadapter
your_hostadapter" in /etc/modprobe.conf)
vanilla-2.6.24/drivers/scsi/scsi.c- * Bjorn Ekwall <bj0rn@(protected)>
vanilla-2.6.24/drivers/scsi/scsi.c- * (changed to kmod)
[summer@(protected)]$

but as the only references now are in the comments, I guess the kernel
doesn't use them any more.

However, mkinitrd does:
[summer@(protected)
     scsimodules=`grep "alias[[:space:]]\+scsi_hostadapter"
$modulefile | grep -v '^[     ]*#' | LC_ALL=C sort -u | awk '{ print
$3 }'`
[summer@(protected)]$

as of F9.


Seems to me you can get the modules loaded any way you like:-)

--

Cheers
John

-- spambait
1aaaaaaa@(protected)
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375

You cannot reply off-list:-)

_______________________________________________
rhelv5-list mailing list
rhelv5-list@(protected)
https://www.redhat.com/mailman/listinfo/rhelv5-list
©2008 redhatconfig.com - Jax Systems, LLC, U.S.A.