--- rc.sysinit 2007-01-29 23:25:23.000000000 +0100 +++ rc.sysinit.new 2007-04-13 09:44:48.000000000 +0200 @@ -217,19 +217,12 @@ stat_busy "Mounting Local Filesystems" /bin/mount -n -o remount,rw / /bin/rm -f /etc/mtab* -# make sure / gets written to /etc/mtab -/bin/mount -o remount,rw / -# re-mount /proc , /sys and usbfs so they can be written to /etc/mtab -umount /proc/bus/usb -umount /proc && mount -t proc none /proc -grep -qw sysfs /proc/filesystems && umount /sys && mount -t sysfs none /sys -if grep -qw usbfs /proc/filesystems; then - # Some people use custom permissions for their usbfs - if grep -qw /proc/bus/usb /etc/fstab; then - mount /proc/bus/usb - else - mount -t usbfs none /proc/bus/usb - fi +# synchronize /proc/mtab with /etc/mtab but leave out /dev +cat /proc/mounts | grep -v " /dev " > /etc/mtab +# Some people use custom permissions for their usbfs +if grep -qw /proc/bus/usb /etc/fstab; then + umount /proc/bus/usb + mount /proc/bus/usb fi # now mount all the local filesystems /bin/mount -a -t $NETFS