Comment 8 for bug 8585

Revision history for this message
Matt Zimmerman (mdz) wrote :

(In reply to comment #7)
> Would something like this solve the problem (taken from the Slackware init
scripts)?
>
> --- /etc/init.d/checkroot.sh.orig 2004-09-28 19:56:29.000000000 -0400
> +++ /etc/init.d/checkroot.sh 2004-09-29 02:54:05.688635088 -0400
> @@ -296,6 +296,9 @@
> if [ "$init_mtab" = yes ]
> then
> [ "$roottype" != none ] && mount -f -o $rootopts $fstabroot /
> + # /etc/mtab is old here so we delete it and create a new one.
> + rm -f /etc/mtab*
> + mount -w -o remount /

I don't think it would; the 'mount -f' command is the right way to do it, and if
the earlier mount command couldn't determine the root filesystem type correctly,
I don't think the later one would either. Does it help for you?