Index: checkroot =================================================================== RCS file: /home/cvsroot/gentoo-src/rc-scripts/init.d/checkroot,v retrieving revision 1.37 diff -u -b -B -r1.37 checkroot --- checkroot 26 Nov 2003 19:30:23 -0000 1.37 +++ checkroot 7 Apr 2004 19:37:32 -0000 @@ -78,11 +78,15 @@ # Create /etc/mtab # + # Clear the existing mtab > /etc/mtab + # Add the entry for / to mtab mount -f / - # Make sure we do not have these in there - egrep -v '^(rootfs|/dev/root)' /proc/mounts >> /etc/mtab + + # Don't list root more than once + awk '$2 != "/" {print}' >> /etc/mtab + # Now make sure /etc/mtab have additional info (gid, etc) in there for x in $(awk '{ print $2 }' /proc/mounts | uniq) do