Gentoo Archives: gentoo-dev

From: yac <yac@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] rfc: converting /etc/mtab to a symlink
Date: Mon, 14 Oct 2013 04:43:08
Message-Id: 20131014064235.697f5958@gentoo.org
In Reply to: [gentoo-dev] rfc: converting /etc/mtab to a symlink by William Hubbs
1 AFAIK this known historical behavior that what you find in
2 `/etc/mtab` are things mounted by mount(8) (if that's what's printed by
3 running just mount).
4
5 Whereas /proc/mounts is the kernel view on what's mounted.
6
7 Curiously I don't see any difference on my gentoo box, which I think I
8 should see but I'm not sure.
9
10 Anyway, I've seen differences when eg. automounter was used, iirc.
11 I wouldn't be surprised if there are things that depends on this
12 behavior or if there are more cases like automounter.
13
14 On Sun, 13 Oct 2013 14:32:32 -0500
15 William Hubbs <williamh@g.o> wrote:
16
17 > All,
18 >
19 > from what I'm seeing, we should look into converting /etc/mtab to a
20 > symlink to /proc/self/mounts [1].
21 >
22 > Are there any remaining concerns about doing this?
23 >
24 > If not, it seems like it would be pretty easy to make baselayout
25 > create this symlink in the stages (I'm willing to do this work), but
26 > what about on systems that are already installed? Should we send out
27 > a news item and have everyone convert their /etc/mtab manually or
28 > find a way to automate that?
29 >
30 > William
31 >
32 > [1] http://bugs.gentoo.org/show_bug.cgi?id=477498

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] rfc: converting /etc/mtab to a symlink Rich Freeman <rich0@g.o>