Bug 224500 - mkinitrd does not sort scsi_hostadapter correctly if more than 10 entries.
mkinitrd does not sort scsi_hostadapter correctly if more than 10 entries.
Status: CLOSED WONTFIX
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: mkinitrd (Show other bugs)
4.4
All Linux
medium Severity medium
: ---
: ---
Assigned To: Brian Lane
Kevin Baker
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-01-25 17:32 EST by John DeFranco
Modified: 2014-12-01 18:08 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2011-07-27 14:00:07 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description John DeFranco 2007-01-25 17:32:53 EST
Description of problem:

mkinitrd does not sort the scsi_hostadapter in the /etc/modprobe.conf file
correctly if you have more than 10 entries. Overall this might not sound like
that big an issue but it is if you need certain scsi_hostadapter loaded before
another.

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


How reproducible:
Always. Just have scsi_hostadapter 1-10 (plus the one with no number) in the
modprobe.conf file and run mkinitrd. Check the results, by taking a part the
.img file and looking at the init file. It will show that driver specified by 
scsi_hostadapter10 is loaded third. 

A simpler test is to use the command that mkinitrd uses to sort these entries,
specifically:

grep "alias[[:space:]]\+scsi_hostadapter" /etc/modprobe.conf | grep -v '^[     
  ]*#' | LC_ALL=C sort -u | awk '{ print $3 }'

The resulting list will show that scsi_hostadapter10 is in the third position.


Steps to Reproduce:
1. Create 11 valid scsi_hostadapter entries (1-10) in the /etc/modprobe.conf
2. Run mkinitrd
3. Examine the resulting .img file (unzip it, cpio -idumv < <file>). Look
at init file. Driver that is identified by scsi_hostadapter10 will be in 
the third position.

  
Actual results:


Expected results:


Additional info:
Comment 1 J.H. 2007-05-10 22:39:01 EDT
Duplicate of bug # 223938

Patches submitted to 223938

Note You need to log in before you can comment on or make changes to this bug.