FS#9496 - /etc/rc.sysinit does not manage properly usbfs fstab entries

Attached to Project: Arch Linux
Opened by Riri (chicha) - Friday, 08 February 2008, 09:55 GMT
Last edited by Roman Kyrylych (Romashka) - Friday, 08 February 2008, 12:24 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To No-one
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:

Hello,

As reported on the forum, http://bbs.archlinux.org/viewtopic.php?pid=327619, /etc/rc.sysinit does not manage properly usbfs fstab entries :

When a line such "none /proc/bus/usb usbfs devgid=1004,devmode=666 0 0" is in /etc/fstab
there are no errors on boot. But when the line is commented out "#none /proc/bus/usb usbfs devgid=1004,devmode=666 0 0" we have the following error message at boot time :

Mounting Local Filesystems
mount : cannot find /proc/bus/usb in /etc/mtab or /etc/fstab.

This is due to those lines in /etc/rc.sysinit :

if grep -qw /proc/bus/usb /etc/fstab; then
mount /proc/bus/usb
else
mount -t usbfs none /proc/bus/usb
fi

This should be replaced by something like :
grep -v ^# /etc/fstab |grep -qw /proc/bus/usb ;then
so that comments are ignored in /etc/fstab
This task depends upon

Closed by  Roman Kyrylych (Romashka)
Friday, 08 February 2008, 12:24 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#9451 

Loading...