Gentoo Archives: gentoo-dev

From: Rich Freeman <rich0@g.o>
To: gentoo-dev <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] rfc: converting /etc/mtab to a symlink
Date: Sun, 13 Oct 2013 23:45:33
Message-Id: CAGfcS_mkvyoSTHnOaMAG1ZS3br6NGfexb8qK=yi54COMdNa9DQ@mail.gmail.com
In Reply to: Re: [gentoo-dev] rfc: converting /etc/mtab to a symlink by Patrick Lauer
1 On Sun, Oct 13, 2013 at 7:38 PM, Patrick Lauer <patrick@g.o> wrote:
2 > And the magic trick is to keep "system mounts" like /run out of
3 > /etc/mtab (willful desynchronization) so that umount -a doesn't nuke
4 > them by accident.
5 >
6 > ... why else would you keep such data in two non-synchronized locations?! :D
7 >
8
9 Sounds interesting and all, but I don't think this really should be
10 driving our system design (the desire to have a command that is
11 supposed to unmount everything not actually unmount everything). It
12 wouldn't take more than a few lines of bash to just write a script to
13 unmount the stuff you're interested in - I routinely toss in my
14 chroots a script to mount/unmount stuff (tmpfs, bind-mounts, proc/sys,
15 etc).
16
17 There could very well be other issues with changing mtab to a symlink
18 though, so continue to speak up if there are other things that could
19 go wrong.
20
21 Rich