Bug 223938

Summary: mkinitrd doesn't honor scsi_hostadapter<n> ordering
Product: Red Hat Enterprise Linux 4 Reporter: Lynn Kerby <lfk>
Component: mkinitrdAssignee: Brian Lane <bcl>
Status: CLOSED WONTFIX QA Contact: Kevin Baker <kbaker>
Severity: high Docs Contact:
Priority: medium    
Version: 4.4CC: ineilsen, warthog9
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: 2011-07-27 17:59:56 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:
Attachments:
Description Flags
Patch to sort > 10 scsi_hostadapters using sed
none
Patch to sort > 10 scsi_hostadapters using sort's --key none

Description Lynn Kerby 2007-01-23 06:02:50 UTC
Description of problem:

mkinitrd messes up load order of scsi_hostadapters if there are more than 10
entries in /etc/modprobe.conf

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

Initially discovered with mkinitrd-4.2.1.8 on RHAS4U4.

How reproducible: 100%

Additional info:

This can be easily fixed by adding '| sort --key=2.18n' to the command sequence
that finds the scsi_hostadapter entries just before the awk command in the pipeline.

Comment 1 John 'Warthog9' Hawley 2007-05-11 02:31:22 UTC
Created attachment 154512 [details]
Patch to sort > 10 scsi_hostadapters using sed

Quick and dirty original patch to solve this using a couple of quick sed
replacements and using numerical sort.

Comment 2 John 'Warthog9' Hawley 2007-05-11 02:32:34 UTC
Created attachment 154513 [details]
Patch to sort > 10 scsi_hostadapters using sort's --key

Comment 3 John 'Warthog9' Hawley 2007-05-11 02:35:58 UTC
Patches included as I'm running into the same issue.  This issue affects at the
least the following but more likely everything earlier as well:
RHEL 4.2, 4.3, 4.4, 5.0
Fedora Core 5, 6