Update to baselayout-1.8.6.8-r1. After rebooting macihine, the root device when running "df", i.e., what is in /etc/mtab will no longer show the actual device name that the "/" directory is mounted in. Reproducible: Always Steps to Reproduce: 1. emerge -u baselayout from previous version 2. reboot machine 3. root device will be displayed as /dev/root vs. /dev/hda1 or whatever the real device is. Expected Results: Correct name for root device should be shown in /etc/mtab. I was able to fix this problem in /etc/init.d/checkroot by commenting out the lines below: # Create /etc/mtab grep -v 'rootfs' /proc/mounts > /etc/mtab Adding these lines to /etc/init.d/checkroot before the ones pertaining to removing stale backups of /etc/mtab solved the issue (I'm sure other methods may also work): # Clear mtab > /etc/mtab # Enter root filesystem into mtab mount -f /
i'm pretty sure its a devfs thing
This is actually an old problem with the content of /proc/mounts. You can see many entries on this subject in the online database at google.com: http://www.google.com/search?q=/dev/root%20/proc/mounts&ie=UTF-8&oe=UTF-8 The checkroot script is taking the content of the /proc/mounts pseudofile and grepping out the line with rootdev in it, and replacing the contents of /etc/mtab with vague information. The kernel generically refers to the root device as /dev/root in this file, due to some decisions made by the kernel programmers some time ago. I'm not sure if this issue is related to using devfs, which I am, but someone who is not should be able to see if it applies without devfs.
Fixed in CVS: ----------------------------------------------------------- Index: ChangeLog =================================================================== RCS file: /home/cvsroot/gentoo-src/rc-scripts/ChangeLog,v retrieving revision 1.245 diff -u -B -r1.245 ChangeLog --- ChangeLog 20 Jul 2003 01:31:41 -0000 1.245 +++ ChangeLog 22 Jul 2003 13:50:45 -0000 @@ -2,6 +2,10 @@ # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL # Written by Daniel Robbins (drobbins@gentoo.org) + 22 Jul 2003; Martin Schlemmer <azarah@gentoo.org>: + + Fix the /dev/root entry in /etc/mtab, bug #24916. + * rc-scripts 1.4.3.9 (17 Jul 2003) 17 Jul 2003; Martin Schlemmer <azarah@gentoo.org>: Index: init.d/checkroot =================================================================== RCS file: /home/cvsroot/gentoo-src/rc-scripts/init.d/checkroot,v retrieving revision 1.31 diff -u -B -r1.31 checkroot --- init.d/checkroot 11 May 2003 23:32:47 -0000 1.31 +++ init.d/checkroot 22 Jul 2003 13:50:46 -0000 @@ -61,8 +61,15 @@ if [ "${SOFTLEVEL}" = "boot" ] then + # # Create /etc/mtab - grep -v 'rootfs' /proc/mounts > /etc/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 # Remove stale backups rm -f /etc/mtab~ /etc/mtab~~
*** Bug 25389 has been marked as a duplicate of this bug. ***
Has this made it to stable yet? If it hasnt, do you know what version of baselayout it will be in so I will know when its safe for me to upgrade my server.