Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 219038 - sys-apps/openrc doesn't filter out initramfs rootfs from mtab
Summary: sys-apps/openrc doesn't filter out initramfs rootfs from mtab
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 367637 (view as bug list)
Depends on: 213988
Blocks:
  Show dependency tree
 
Reported: 2008-04-23 15:34 UTC by cazzantonio
Modified: 2011-05-18 00:27 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cazzantonio 2008-04-23 15:34:33 UTC
Openrc doesn't filter out the line "rootfs / rootfs rw 0 0" from mtab.
Previous 1.X baselayout didn't show that entry.
This is a redundant entry since the root fs is properly mounted from /dev/root.
I don't know if that is a bug, but adding a simple grep command to /etc/init.d/mtab would solve this quite easily.

Reproducible: Always
Comment 1 SpanKY gentoo-dev 2008-04-23 15:57:48 UTC
it isnt a redundant entry ... it is actually a completely different filesystem that /dev/root gets mounted over
Comment 2 Roy Marples 2008-04-23 16:11:03 UTC
That entry needs to be there so that / can be overmounted with tmpfs and umounted without error. See bug #194615 for the gory details.
Comment 3 cazzantonio 2008-04-23 16:32:56 UTC
No existing distribution (known to me) shows that entry. It's only a minor cosmetic problem to me though... I'm currently filtering it since I don't use a tmpfs root
Comment 4 SpanKY gentoo-dev 2008-04-23 19:02:22 UTC
maybe, but no other distro provides a flexible baselayout like Gentoo does.  you do use a tmpfs root and you dont even know it ... everyone does -- they dont have a choice with linux-2.6.  dont believe me; check your /proc/mounts.

Roy: no chance to detect whether the / is initramfs and optionally filtering it ?  i know what the entry means, and you know what it means, but really only people who play with initramfs knows this.  the large majority of people are just confused.
Comment 5 Roy Marples 2008-04-23 19:41:22 UTC
Not easily afaik. Also, I seem to recall either udev or hal wanting it too many moons ago. Adding Cardoe and zzam for their comments.
Comment 6 SpanKY gentoo-dev 2008-04-23 20:14:49 UTC
Doug: in the meantime, can you add a note to the migration guide ?
Comment 7 Doug Goldstein (RETIRED) gentoo-dev 2008-10-07 15:38:48 UTC
Need to update docs.
Comment 8 SpanKY gentoo-dev 2009-10-11 09:47:33 UTC
with things moving towards /etc/mtab being a symlink to /proc/mounts, i wouldnt bother filtering the output to "protect" users.  just add a note to the guide and call it a day.
Comment 9 nm (RETIRED) gentoo-dev 2010-11-30 00:18:13 UTC
(In reply to comment #8)
> with things moving towards /etc/mtab being a symlink to /proc/mounts, i wouldnt
> bother filtering the output to "protect" users.  just add a note to the guide
> and call it a day.
> 

What note, exactly, and where would you put it in the guide? I can't see anything specific that needs to be added, based on the comments.
Comment 10 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-01-17 07:57:16 UTC
Documented in the openrc-migration guide now, that it's not a bug to be listed twice.
Comment 11 SpanKY gentoo-dev 2011-05-18 00:27:08 UTC
*** Bug 367637 has been marked as a duplicate of this bug. ***