Bug 101989 - hotplug does not update hwconf database
Summary: hotplug does not update hwconf database
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: hotplug
Version: 9
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
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:
Clone Of:
Environment:
Last Closed: 2005-02-04 20:53:24 UTC
Embargoed:


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:
Always

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 @@
            fi
        fi
        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
        fi
     done

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.