Bug 223938 - mkinitrd doesn't honor scsi_hostadapter<n> ordering
mkinitrd doesn't honor scsi_hostadapter<n> ordering
Status: CLOSED WONTFIX
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: mkinitrd (Show other bugs)
4.4
All Linux
medium Severity high
: ---
: ---
Assigned To: Brian Lane
Kevin Baker
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-01-23 01:02 EST by Lynn Kerby
Modified: 2014-12-01 18:08 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2011-07-27 13:59:56 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)
Patch to sort > 10 scsi_hostadapters using sed (594 bytes, patch)
2007-05-10 22:31 EDT, J.H.
no flags Details | Diff
Patch to sort > 10 scsi_hostadapters using sort's --key (505 bytes, patch)
2007-05-10 22:32 EDT, J.H.
no flags Details | Diff

  None (edit)
Description Lynn Kerby 2007-01-23 01:02:50 EST
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 J.H. 2007-05-10 22:31:22 EDT
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 J.H. 2007-05-10 22:32:34 EDT
Created attachment 154513 [details]
Patch to sort > 10 scsi_hostadapters using sort's --key
Comment 3 J.H. 2007-05-10 22:35:58 EDT
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


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