Bug 150123

Summary: [PATCH] pciReadDrivers doesn't fallback and read kernel modules.pcimap if needed
Product: Red Hat Enterprise Linux 4 Reporter: David Lehman <dlehman>
Component: kudzuAssignee: Bill Nottingham <notting>
Status: CLOSED ERRATA QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0CC: rvokal, tao
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2005-667 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-10-05 16:56:34 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:
Bug Depends On:    
Bug Blocks: 156322    
Attachments:
Description Flags
read /lib/modules/`uname -r`/modules/pcimap if /usr/share/hwdata/pci* not available none

Description David Lehman 2005-03-02 18:33:17 UTC
Description of problem:
ICBW, but I don't see anything using the id_file_name field of pacc in pciProbe.
More importantly, pciReadDrivers returns in two places I believe it should
instead jump to the pcimap label. This makes all the difference when kudzu is
run without /usr mounted. This happens when /sbin/kmodule is called early in
/etc/rc.sysinit with /usr on a separate partition and since kudzu can't read
/usr/share/hwdata/pci.ids it only generates a partial list. Attached is a patch
to kudzu to correct this behavior.

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

How reproducible:
Always

Steps to Reproduce:
1. Run kmodule from initscripts without /usr mounted, *OR*
2. move pcitable and pci.ids out of /usr/share/hwdata/
3. run kudzu -s -p
  
Actual results:
Multiple devices have "unknown" driver

Expected results:
Devices have drivers as specified in /lib/modules/`uname -r`/modules.pcimap

Additional info:
This is another part of the same problem (see Issue Tracker ref) that caused me
to reopen bug 130350. So after fixing the test for /dev/hw_random in rc.sysinit,
and with this fix and a rebuild of initscripts (/sbin/kmodule statically links
probeDevices from kudzu) the rngd daemon is started at bootup. Unfortunately, on
my laptop /sbin/rngd hangs trying to read from /dev/hw_random. I guess I'll be
opening a bug there against kernel-utils.

Comment 1 David Lehman 2005-03-02 18:33:17 UTC
Created attachment 111587 [details]
read /lib/modules/`uname -r`/modules/pcimap if /usr/share/hwdata/pci* not available

Comment 6 Bill Nottingham 2005-07-13 01:50:40 UTC
Fixed in 1.1.95.13-1.

Comment 9 Red Hat Bugzilla 2005-10-05 16:56:34 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2005-667.html