Public bug reported:

Binary package hint: sysvinit

When USB is disabled or not present, on startup system print error
message "mount: mount point /proc/bus/usb does not exist"

It generate from /etc/init.d/mountdevsubfs.sh that contain in
initscripts binary package.

This patch is fix this error:
--- mountdevsubfs.sh.orig       2007-04-11 05:45:00.000000000 +0800
+++ 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=0700,devmode=0600,listmode=0644
-ln -s .usbfs/devices /dev/bus/usb/devices
-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=0700,devmode=0600,listmode=0644
+ ln -s .usbfs/devices /dev/bus/usb/devices
+ mount --rbind /dev/bus/usb /proc/bus/usb
+fi
 }

 case "$1" in

** Affects: sysvinit (Ubuntu)
     Importance: Undecided
         Status: New

-- 
mount usbfs when USB is disabled or not present
https://bugs.launchpad.net/bugs/121912
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to