Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 367637

Summary: weird df reporting with baselayout-2/openrc
Product: Gentoo Linux Reporter: Dirkjan Ochtman (RETIRED) <djc>
Component: [OLD] baselayoutAssignee: OpenRC Team <openrc>
Status: RESOLVED DUPLICATE    
Severity: normal CC: jlec
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Dirkjan Ochtman (RETIRED) gentoo-dev 2011-05-17 08:29:12 UTC
With baselayout-1:

djc@planck ~ $ df -H
Filesystem             Size   Used  Avail Use% Mounted on
/dev/sda3              292G   245G    47G  84% /
udev                    11M   181k    11M   2% /dev
shm                     20G   909M    19G   5% /dev/shm

With baselayout-2:

djc@turing ~ $ df -H
Filesystem             Size   Used  Avail Use% Mounted on
rootfs                 437G   204G   233G  47% /
/dev/root              437G   204G   233G  47% /
rc-svcdir              1.1M   127k   922k  13% /lib64/rc/init.d
udev                    11M   160k    11M   2% /dev
shm                    4.2G      0   4.2G   0% /dev/shm

So it shows the root fs twice, and introduces the weird rc-svcdir "filesystem".
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-05-17 23:46:59 UTC
I don't see what's weird about it. Those things are mounted, so df lists them.
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2011-05-18 00:04:26 UTC
This isn't a bug. Furthermore, it is covered in the migration guide. http://www.gentoo.org/doc/en/openrc-migration.xml

<quote>
rootfs entry in /etc/mtab

Previously, the initial rootfs entry was removed from /etc/mtab, and only the real root / entry was present. The duplicate rootfs item was actually added back during shutdown. In OpenRC, both entries must be present for full support of initramfs and tmpfs-on-root. This also means that less writing is required during shutdown. 
</quote>
Comment 3 SpanKY gentoo-dev 2011-05-18 00:27:08 UTC

*** This bug has been marked as a duplicate of bug 219038 ***