Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 87934 - mkinitrd forces SCSI host adapter detection order
Summary: mkinitrd forces SCSI host adapter detection order
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: mkinitrd
Version: 9
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2003-04-03 20:14 UTC by Chris Adams
Modified: 2007-04-18 16:52 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2003-04-03 21:06:32 UTC

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

Description Chris Adams 2003-04-03 20:14:23 UTC
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 20:15:01 UTC
Created attachment 90881 [details]
patch to /sbin/mkinitrd to remove alpha sorting of SCSI host adapters

Comment 2 Jeremy Katz 2003-04-03 21:06:32 UTC
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 21:19:06 UTC
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.