Bug 104519

Summary: mkinitrd does not include all mptscsih dependencies
Product: [Retired] Red Hat Linux Reporter: Eric Sandeen <sandeen>
Component: mkinitrdAssignee: Jeremy Katz <katzj>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 9   
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: 2003-09-29 22:48:20 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 Eric Sandeen 2003-09-16 17:20:43 UTC
Description of problem:
/sbin/mkinitrd does not make proper initrds for the LSI "mptscsih" driver

Version-Release number of selected component (if applicable):
mkinitrd-3.3.10-1
Also checked in Rawhide

How reproducible:
Every time

Steps to Reproduce:
1. Add "alias scsi_hostadapter mptscsih" to modules.conf
2. Make an initrd with -v
3. notice that mptscsih is added, but mptbase is not
4. notice that in modules.dep, mptbase is required by mptscsih:

/lib/modules/2.4.20-20.7.sgi1smp/kernel/drivers/message/fusion/mptscsih.o:
/lib/modules/2.4.20-20.7.sgi1smp/kernel/drivers/message/fusion/mptbase.o \
        /lib/modules/2.4.20-20.7.sgi1smp/kernel/drivers/scsi/scsi_mod.o

5. reboot box with this initrd
    
Actual results:
mptscsih driver is not loaded from initrd due to missing dependencies

Expected results:
mptscsih properly loaded

Additional info:
The following patch also removes requirements on xfs modules that have not 
existed for well over a year.

--- /sbin/mkinitrd.orig Tue Sep 16 11:54:56 2003
+++ /sbin/mkinitrd      Tue Sep 16 11:58:06 2003
@@ -88,18 +88,17 @@
        modName="ext3"
     fi
  
-    if [ "$modName" = "xfs" ]; then
-       findmodule $skiperrors pagebuf
-       findmodule $skiperrors xfs_support
-       modName="xfs"
-    fi
-
     if [ "$modName" = "ppa" ]; then
        findmodule parport
        findmodule parport_pc
        modName="ppa"
     fi
  
+    if [ "$modName" = "mptscsih" ]; then
+       findmodule mptbase
+       modName="mptscsih"
+    fi
+
     fmPath=`(cd /lib/modules/$kernel; echo find . -name $modName.o | /sbin/nash
--quiet)`
  
     if [ ! -f /lib/modules/$kernel/$fmPath ]; then

Comment 1 Jeremy Katz 2003-09-29 22:48:20 UTC
rawhide already has (equivalent) changes.