Bug 596531

Summary: mkinitrd ignores /etc/modprobe.d/modprobe.conf
Product: Red Hat Enterprise Linux 5 Reporter: Jeff Bastian <jbastian>
Component: mkinitrdAssignee: Peter Jones <pjones>
Status: CLOSED DUPLICATE QA Contact: Release Test Team <release-test-team>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.5CC: ddumas
Target Milestone: rcKeywords: Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-05-26 21:50:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Description Flags
patch for mkinitrd to look at /etc/modprobe.d/* none

Description Jeff Bastian 2010-05-26 21:36:58 UTC
Created attachment 417037 [details]
patch for mkinitrd to look at /etc/modprobe.d/*

Description of problem:
If modprobe.conf is moved to /etc/modprobe.d/ (since /etc/modprobe.conf is deprecated), mkinitrd ignores the file and generates a bad initrd image (i.e., it's missing modules).

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

How reproducible:
every time

Steps to Reproduce:
1. (if necessary) edit /etc/modprobe.conf and add a line to use the cciss module:
       alias scsi_hostadapter2 cciss
2. mv /etc/modprobe.conf /etc/modprobe.d/
3. mkinitrd -f --nocompress /tmp/initrd-testing.img `uname -r`
4. cpio -t < /tmp/initrd-testing.img | grep cciss
Actual results:
cciss module is not included in /tmp/initrd-testing.img

Expected results:
cciss module is included
   # cpio -t < /tmp/initrd-orig-etc_modprobe_conf.img | grep cciss
   17077 blocks

Comment 1 Jeff Bastian 2010-05-26 21:50:37 UTC
Oops, I missed bug 564392 when searching earlier.

*** This bug has been marked as a duplicate of bug 564392 ***