Bug 101989 - hotplug does not update hwconf database
Summary: hotplug does not update hwconf database
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: hotplug   
(Show other bugs)
Version: 9
Hardware: i386 Linux
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
Depends On:
TreeView+ depends on / blocked
Reported: 2003-08-08 17:39 UTC by jmccann
Modified: 2015-01-14 23:19 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-02-04 20:53:24 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description jmccann 2003-08-08 17:39:27 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030701

Description of problem:
It seems that USB hotplug does not update the hwconf database.  Kudzu is not run.

The updfstab command *is* run but it relies on information being added to hwconf.

The kernel detects and configures /dev/sd* correctly.

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

How reproducible:

Steps to Reproduce:
1. Attach USB flash card 

Actual Results:  Nada.

Expected Results:  Ideally /mnt/flash will be mounted but I'll settle for it
being added to /etc/fstab.

Additional info:

I was able to fix this with the following patch:
% diff -u /etc/hotplug/hotplug.functions{.original,}
--- hotplug.functions.original  2003-08-08 13:07:31.000000000 -0400
+++ hotplug.functions   2003-08-08 12:47:12.000000000 -0400
@@ -170,6 +170,7 @@
        if echo "$MODULE" | grep -q "usb-storage" > /dev/null 2>&1 ; then
+           [ -x /usr/sbin/kudzu ] &&  /usr/sbin/kudzu -s
            [ -x /usr/sbin/updfstab ] &&  /usr/sbin/updfstab

Comment 1 Bill Nottingham 2003-08-08 18:49:41 UTC
This actually works for you? It shouldn't.
updfstab does its own probing unless run with --skipprobe; calling kudzu
shouldn't make any difference at all.

I'd guess it's because of the delay when the device is created and the partition
table is read/recognized.

Comment 2 jmccann 2003-08-08 19:26:17 UTC
You are right about kudzu not being required for the device to be added to
fstab.  I think was confused by bug 101990.  However, the subject line of this
bug is still valid.  The hwconf database should get updated when hardware is
added (and when removed).

Comment 3 Bill Nottingham 2005-02-04 20:53:24 UTC
Closing out bugs on older, no longer supported, releases. Apologies
for any lack of response. Please reopen if problems persist on more
current releases.

This won't be changed in hotplug/kudzu; future releases do update the
HAL hardware database on hotplug.

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