mount usbfs when USB is disabled or not present
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sysvinit (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: initscripts
When USB is disabled or not present, on startup system print error message "mount: mount point /proc/bus/usb does not exist"
It generated from /etc/init.
This patch is fix this error:
--- mountdevsubfs.
+++ mountdevsubfs.sh 2007-05-23 19:41:33.000000000 +0800
@@ -39,10 +39,12 @@
#
# Magic to make /proc/bus/usb work
#
-[ -d /dev/bus/usb/.usbfs ] || mkdir -p /dev/bus/usb/.usbfs
-domount usbfs "" /dev/bus/usb/.usbfs -obusmode=
-ln -s .usbfs/devices /dev/bus/
-mount --rbind /dev/bus/usb /proc/bus/usb
+if [ -d /proc/bus/usb ]; then
+ [ -d /dev/bus/usb/.usbfs ] || mkdir -p /dev/bus/usb/.usbfs
+ domount usbfs "" /dev/bus/usb/.usbfs -obusmode=
+ ln -s .usbfs/devices /dev/bus/
+ mount --rbind /dev/bus/usb /proc/bus/usb
+fi
}
case "$1" in
Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue for you. Can you try with the latest Ubuntu release? Thanks in advance.