Bug 145937 - rc.sysinit assumes usb-core is built-in
Summary: rc.sysinit assumes usb-core is built-in
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: initscripts
Version: 3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-01-24 09:17 UTC by Jon Smirl
Modified: 2014-03-17 02:52 UTC (History)
1 user (show)

Fixed In Version: 8.05-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-10-03 20:25:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jon Smirl 2005-01-24 09:17:20 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5)
Gecko/20041111 Firefox/1.0

Description of problem, from rc.sysinit:
# Mount /proc and /sys (done here so volume labels can work with fsck)
mount -n -t proc /proc /proc
[ -d /proc/bus/usb ] && mount -n -t usbfs /proc/bus/usb /proc/bus/usb

This assumes the mount point /proc/bus/usb is there. If it is not
there usbfs won't be mounted and bad things happen later. For example
kudzu loses all your USB devices.

In RH kernels the mount point is always there since usb-core is always
built-in in order to support boot from USB file systems. If you are
not booting from a USB file system usb-core works fine as a module.
rc.sysinit needs to make sure this module is loaded before trying to
mount usbfs.

Comment 1 Bill Nottingham 2005-01-25 06:06:21 UTC
This is just adding redundant modprobe calls that will only slow down
the default case (albeit not much); that's not really a *good* solution.

Comment 2 Jon Smirl 2005-01-25 17:17:12 UTC
There is already a test to see if the directory is there. Only do the
mod probe if it is missing.

Comment 3 Bill Nottingham 2005-01-25 17:32:47 UTC
Actually....

usb-core will get loaded if the host controller is loaded, right?

So, what's needed is to simply add a dev.d entry for usbcore that
mounts usbfs.

Comment 4 Jon Smirl 2005-01-26 01:39:51 UTC
Another way is for the installer to add a line to fstab. All of these
are minor fixes for the problem once you figure out what is going on.

The problem here is that doing something simple like making usb-core a
module causes a hard to diagnose failure in FC3. A root part of this
is from kudzu using /proc/bus/xxx instead of /sys

Comment 5 Bill Nottingham 2005-10-03 20:25:36 UTC
This was fixed in a later build.


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