Red Hat Bugzilla – Bug 223938
mkinitrd doesn't honor scsi_hostadapter<n> ordering
Last modified: 2014-12-01 18:08:33 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-18.104.22.168 on RHAS4U4.
How reproducible: 100%
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.
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.
Created attachment 154513 [details]
Patch to sort > 10 scsi_hostadapters using sort's --key
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