FS#9451 - [initscripts 2007.11-2] rc.sysinit does not mount /proc/bus/usb if commented out in /etc/fstab

Attached to Project: Arch Linux
Opened by solsTiCe (zebul666) - Saturday, 02 February 2008, 23:52 GMT
Last edited by Roman Kyrylych (Romashka) - Sunday, 06 April 2008, 09:07 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Aaron Griffin (phrakture)
Thomas Bächler (brain0)
Roman Kyrylych (Romashka)
Architecture All
Severity Low
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
rc.sysinit attempts to mount /proc/bus/usb with mount /proc/bus/usb even if that line is commented in /etc/fstab
and generate an error and no /proc/bus/usb mounted at all

Additional info:
initscripts 2007.11-2

Steps to reproduce:
add a line to /etc/fstab for /proc/bus/usb and commented it out like
#none /proc/bus/usb usbfs devgid=108,devmode=664 0 0

a patch to rc.sysinit to fix this
-- /etc/rc.sysinit 2007-10-22 15:53:28.000000000 +0200
+++ /etc/rc.sysinit 2008-02-03 00:48:05.000000000 +0100
@@ -276,7 +276,7 @@
fi
if grep -qw usbfs /proc/filesystems; then
# Some people use custom permissions for their usbfs
- if grep -qw /proc/bus/usb /etc/fstab; then
+ if grep -v "^#" /etc/fstab|grep -qw /proc/bus/usb; then
mount /proc/bus/usb
else
mount -t usbfs none /proc/bus/usb
This task depends upon

Closed by  Roman Kyrylych (Romashka)
Sunday, 06 April 2008, 09:07 GMT
Reason for closing:  Fixed
Comment by Roman Kyrylych (Romashka) - Thursday, 28 February 2008, 11:42 GMT
Hm, this has missed its way to 2008.02-1,
I guess we'll see it in 2008.03 ;)
Comment by Roman Kyrylych (Romashka) - Friday, 29 February 2008, 22:05 GMT
fixed in git

Loading...