I have a situation where I need to use a non-standard kernel module in
place of one that comes with the RedHat 8.0 distribution, and I'd like
to know the "right" way to achieve this.
The module is a device driver for a Qlogic fibre host bus adapter.
The reason for the special module is that the one that RedHat supplies
does not handle all the fibre configurations we (EMC) need for an
EMC/Clariion array.
Here's what I've done thus far.
1. I have written an rpm to build the module from source and install
it. I have given the module a unique name so it won't conflict
with the kernel rpm file.
2. Once installed, I can run depmod, rmmod (on the old module) and
modprobe (on the new module). (If I reboot, I don't need to run
depmod.)
Everything looks fine at this point, and I know I could put the
appropriate commands (rmmod & modprobe) into /etc/rc.d/rc.local, but
I'm wondering if there is something cleaner.
One thing I tried (with no success) was to modify /etc/modules.conf
****************
Old:
alias scsi_hostadapter1 qla2200
New:
alias scsi_hostadapter1 newmodule
****************
I thought that this was the line that was making the standard module
(qla2200) load. I found that qla2200 loaded even after my change, and
the newmodule did not load.
Suggestions?
TIA,
Bill