Bug 87934 - mkinitrd forces SCSI host adapter detection order
mkinitrd forces SCSI host adapter detection order
Product: Red Hat Linux
Classification: Retired
Component: mkinitrd (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeremy Katz
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2003-04-03 15:14 EST by Chris Adams
Modified: 2007-04-18 12:52 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-04-03 16:06:32 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
patch to /sbin/mkinitrd to remove alpha sorting of SCSI host adapters (433 bytes, patch)
2003-04-03 15:15 EST, Chris Adams
no flags Details | Diff

  None (edit)
Description Chris Adams 2003-04-03 15:14:23 EST
There is a "sort -u" when pulling the SCSI host adapter list from
/etc/modules.conf.  This means that the order the SCSI modules are loaded (if
you have more than one type of SCSI HA) is forced to be alphabetical, with no
way to override.

The "sort -u" is not needed to remove duplicate entries, as the findmodule()
function won't add a dupe.

This probably should only be changed in the next release, as it could affect
working setups that depend on the sort.  Or maybe, updating from a version that
doesn't sort to a version that does could sort the entries in /etc/modules.conf
and then leave them alone.

Anyway, suggested patch will be attached.
Comment 1 Chris Adams 2003-04-03 15:15:01 EST
Created attachment 90881 [details]
patch to /sbin/mkinitrd to remove alpha sorting of SCSI host adapters
Comment 2 Jeremy Katz 2003-04-03 16:06:32 EST
Look a little closer...  it sorts so that you get

instead of 

or something like that.  ie, the sort is on the whole string not the module name.
Comment 3 Chris Adams 2003-04-03 16:19:06 EST
Yeah, sorry; I saw "grep scsi_hostadapter ..." and my mind saw 
grep "scsi_hostadapter " ...

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