Bug 101989

Summary: hotplug does not update hwconf database
Product: [Retired] Red Hat Linux Reporter: jmccann
Component: hotplugAssignee: Bill Nottingham <notting>
Status: CLOSED WONTFIX QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: 9CC: cschalle, rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-02-04 20:53:24 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:

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.