mountfs: mount usbfs according to fstab configuration

This commit is contained in:
Silvan Calarco 2011-07-12 11:49:49 +02:00
parent c83d5a475c
commit 5698192bd7

View File

@ -30,8 +30,6 @@ case "$1" in
grep -v "^/dev/root.old" >/etc/mtab
rm -f /etc/mtab~ /etc/mtab~~
[ ! -f /proc/bus/usb/devices ] && mount -t usbfs usbfs /proc/bus/usb
$PLYMOUTH --sysinit
# The follow mount command will mount all file systems. If you
@ -40,7 +38,7 @@ case "$1" in
# below. All file systems that are added to the variable in the
# form of no<filesystem> will be skipped.
NO_FS="nonfs,nosmbfs,noproc,nosysfs,nousbdevfs,nousbfs,nodevfs"
NO_FS="nonfs,nosmbfs,noproc,nosysfs,nousbdevfs,nodevfs"
echo -n "Mounting remaining file systems: "
mount -a -t $NO_FS
@ -55,7 +53,7 @@ case "$1" in
# [ -f /proc/bus/usb/devices ] && umount /proc/bus/usb >/dev/null 2>&1
# umount -l /proc
# umount -l /sys
NO_FS="nonfs,nosmbfs,noproc,nosysfs,nousbdevfs,nousbfs,nodevfs"
NO_FS="nonfs,nosmbfs,noproc,nosysfs,nousbdevfs,nodevfs"
sync
umount -a -f -r -t $NO_FS >/dev/null 2>&1
evaluate_retval