[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Does anything require /proc/bus/usb?



If not, should it be phased out?

I'm referencing a use case with VirtualBox that looks for /proc/bus/usb
by default and will use that instead of libusb for USB device access.
This has caused issues for people wishing to use VirtualBox on Fedora in
that they cannot use USB devices without a little tinkering. They either
have to remove the /proc/bus/usb mount from rc.sysinit or adjust their
fstab to allow other users access.

I'll even go as far as providing a patch! *gasp*

Most of you probably don't care about VirtualBox and would rather us use
libvirt, but some folks use different software.


Mike
--- /etc/rc.sysinit.orig	2009-05-01 15:41:45.000000000 -0500
+++ /etc/rc.sysinit	2009-07-17 10:40:39.932905093 -0500
@@ -20,11 +20,6 @@
 	mount -n -t proc /proc /proc
 	mount -n -t sysfs /sys /sys >/dev/null 2>&1
 fi
-if [ ! -d /proc/bus/usb ]; then
-	modprobe usbcore >/dev/null 2>&1 && mount -n -t usbfs /proc/bus/usb /proc/bus/usb
-else
-	mount -n -t usbfs /proc/bus/usb /proc/bus/usb
-fi
  
 . /etc/init.d/functions
 
@@ -654,7 +649,6 @@
 	mount -f /proc >/dev/null 2>&1
 	mount -f /sys >/dev/null 2>&1
 	mount -f /dev/pts >/dev/null 2>&1
-	mount -f /proc/bus/usb >/dev/null 2>&1
 fi
 
 # Mount all other filesystems (except for NFS and /proc, which is already

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]