Bug 133134

Summary: initscripts should not assume system has usb
Product: [Fedora] Fedora Reporter: Bernard Johnson <bjohnson>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED RAWHIDE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: rvokal
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-09-22 06:18:58 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 Bernard Johnson 2004-09-21 20:14:21 UTC
Description of problem:
rc.sysinit attempts to mount usbfs even if computer doesn't have usb.

From bootup sequence:
INIT: version 2.85 booting
mount: mount point /proc/bus/usb does not exist
                Welcome to Fedora Core
                Press 'I' to enter interactive startup.

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

How reproducible:
Always, if the computer doesn't have USB.

Steps to Reproduce:
1.  Boot on a computer without USB
2.
3.
  
Actual results:


Expected results:
No message.

Additional info:
--- rc.sysinit.orig     2004-09-21 13:34:52.000526309 -0400
+++ rc.sysinit  2004-09-21 13:36:43.000546794 -0400
@@ -24,7 +24,7 @@
  
 # Mount /proc and /sys (done here so volume labels can work with fsck)
 mount -n -t proc /proc /proc
-mount -n -t usbfs /proc/bus/usb /proc/bus/usb
+test -d /proc/bus/usb && mount -n -t usbfs /proc/bus/usb /proc/bus/usb
 mount -n -t sysfs /sys /sys >/dev/null 2>&1
  
 . /etc/init.d/functions

Comment 1 Bill Nottingham 2004-09-22 06:18:58 UTC
Fixed in cvs.