Bug 389991

Summary: mkinitrd does not include driver module qla2xxx with "install qla2xxx..." line in modprobe.conf
Product: Red Hat Enterprise Linux 5 Reporter: Vikas Chaudhary <vikas.chaudhary>
Component: mkinitrdAssignee: Brian Lane <bcl>
Status: CLOSED DEFERRED QA Contact:
Severity: high Docs Contact:
Priority: low    
Version: 5.1CC: lalit.chandivade
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-20 13:35:39 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vikas Chaudhary 2007-11-19 06:22:14 UTC
Description of problem: driver module qla2xxx does not get included in new 
initrd image with mkinitrd command if /etc/modprobe.conf contain line 
"install qla2xxx /sbin/modprobe qla2xxx_conf; /sbin/modprobe --ignore-install 
qla2xxx"


Version-Release number of selected component (if applicable): 5.1.19.6

How reproducible: build initrd image.

Steps to Reproduce:
1. Add following lines to /etc/modprobe.conf

install qla2xxx /sbin/modprobe qla2xxx_conf; /sbin/modprobe --ignore-install 
qla2xxx
remove qla2xxx /sbin/modprobe -r --first-time --ignore-remove qla2xxx && { /
sbin/modprobe -r --ignore-remove qla2xxx_conf; }
alias qla2100 qla2xxx
alias qla2200 qla2xxx
alias qla2300 qla2xxx
alias qla2322 qla2xxx
alias qla2400 qla2xxx
options qla2xxx ql2xfailover=0 ConfigRequired=1 ql2xenablezio=1 
MaxRetriesPerIo=100
alias scsi_hostadapter qla2xxx_conf
alias scsi_hostadapter1 qla2xxx


2. make new initrd image with mkinitrd command
# mkinitrd -f /boot/initrd-2.6.18-52.el5.img 2.6.18-52.el5 --preload 
qla2xxx_conf --preload qla2xxx

3. extract initrd image to verify qla2xxx included in initrd image or not
  
Actual results: driver module qla2xxx is not included in new initrd image.

Expected results: driver module qla2xxx must get included in new initrd image 
as "alias scsi_hostadapter1 qla2xxx" line is present in /etc/modprobe.conf

Additional info: 
# modprobe --show-depends qla2xxx
insmod /lib/modules/2.6.18-52.el5/kernel/kernel/intermodule.ko
insmod /lib/modules/2.6.18-52.el5/kernel/drivers/scsi/scsi_mod.ko
install /sbin/modprobe qla2xxx_conf; /sbin/modprobe --ignore-install qla2xxx

This command is used inside mkinitrd script to select driver modules to be 
included in initrd image. 

Here qla2xxx module line start with "install". mkinitrd script look for module 
start with "insmod". Due to this the qla2xxx.ko is not included in the initrd.

Comment 1 David Cantrell 2013-03-20 13:35:39 UTC
Closing due to age and it's never come up as requested for any update release.  If it's something we should consider, please reopen and request it for a specific RHEL update release.