Bug 134900 - Mkinitrd uses deprecated /proc/scsi
Mkinitrd uses deprecated /proc/scsi
Product: Fedora
Classification: Fedora
Component: mkinitrd (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeremy Katz
David Lawrence
: FutureFeature
Depends On:
  Show dependency treegraph
Reported: 2004-10-06 21:21 EDT by W. Michael Petullo
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-10-06 21:32:35 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description W. Michael Petullo 2004-10-06 21:21:39 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.7.2)
Gecko/20040809 Epiphany/1.3.8

Description of problem:
Linux 2.6 says the following about /proc/scsi:  

  This option enables support for the various files in
  /proc/scsi.  In Linux 2.6 this has been superceeded by
  files in sysfs but many legacy applications rely on this.

Mkinitrd continues to use the deprecated /proc/scsi to determine if a
system needs its USB drivers to boot.

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

How reproducible:

Steps to Reproduce:
Execute mkinitrd using a kernel with no support for /proc/scsi on a
system that needs its USB drivers to boot.

Actual Results:  /proc/scsi/usb-storage does not exist so mkinitrd can
not determine if /dev/sdX is a USB disk.

Expected Results:  Mkinitrd should use /sys instead of /proc/scsi.

Additional info:
Comment 1 Jeremy Katz 2004-10-06 21:32:35 EDT
sysfs doesn't have the required information for not using /proc/scsi.
 And it's hardly deprecated when kernel developers are still changing
it (cf the change from /proc/scsi/usb-storage-$host to
/proc/scsi/usb-storage/$host a few months ago)

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