Package: fai-doc Version: 3.2.20.1 Severity: wishlist Tags: patch
In the simple example, 20-hwdetect uses mount -t usbfs usbfs /proc/bus/usb in order to mount usbfs. When doing a softupdate, /proc/bus/usb might already be mounted, resulting a spare error message mount: usbfs already mounted or /proc/bus/usb busy mount: according to mtab, procbususb is already mounted on /proc/bus/usb Simply adding a check like grep /proc/bus/usb /proc/mounts > /dev/null if [ $? -ne 0 ] ; then mount -t usbfs usbfs /proc/bus/usb fi avoids this warning. -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 2.6.30-1-amd64 (SMP w/4 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash -- no debconf information
--- 20-hwdetect 2009-11-05 19:30:13.178267906 +0100 +++ 20-hwdetect.neu 2009-11-05 19:33:22.230765643 +0100 @@ -36,7 +36,11 @@ #[ -x /sbin/discover-modprobe ] && /sbin/discover-modprobe # now we can mount the USB filesystem -mount -t usbfs usbfs /proc/bus/usb +# first check, whether it's already mounted +grep /proc/bus/usb /proc/mounts > /dev/null +if [ $? -ne 0 ] ; then + mount -t usbfs usbfs /proc/bus/usb +fi modprobe -a sd_mod sr_mod

