Gentoo Archives: gentoo-dev

From: Rich Freeman <rich0@g.o>
To: gentoo-dev <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] usr merge
Date: Sat, 09 Apr 2016 12:37:55
Message-Id: CAGfcS_mhgJHri2tZWsW4WvhC_qmhipntdJ=OERgxiGR-y=3TZw@mail.gmail.com
In Reply to: Re: [gentoo-dev] usr merge by Luca Barbato
1 On Sat, Apr 9, 2016 at 8:27 AM, Luca Barbato <lu_zero@g.o> wrote:
2 > On 09/04/16 13:53, Rich Freeman wrote:
3 >> Put the very same stuff in the initramfs? Most initramfs creation
4 >> scripts should already do this automatically, and with compat symlinks
5 >> even those that don't probably will still end up doing it anyway..
6 >
7 > The question is different: do they work reliably?
8 >
9
10 I've certainly haven't had many problems with dracut. When it fails
11 it is usually because I'm doing something ELSE that is off-the-wall
12 and it just doesn't have a plugin for it yet. (And in those cases it
13 isn't like the kernel tends to get it right without an initramfs.)
14
15 I'd certainly want to test it on a merged /usr, but I'd be surprised
16 if it doesn't work, since it was designed to run on distros that are
17 using a merged /usr.
18
19 > usr-merge does not solve any problem in itself (and it is totally
20 > backwards, if somebody wants to simplify would do /usr -> /)
21
22 I don't really have any devotion to the particular design, but half
23 the point of the merge is to allow /usr to be read-only, on a
24 filesystem remotely mounted, and so on.
25
26 In an ideal world, you might argue that / should just be a tmpfs or
27 something almost as ephemeral. It is just a place you hang everything
28 else off of.
29
30 But, of course moving all of /usr to / solves the early boot issue.
31 But, if you're going to do that you might as well just put /usr on
32 your root filesystem and have the same thing.
33
34 The thing I like about the merge is that it basically puts all your
35 distro-supplied stuff in one place. /usr basically becomes the OS
36 minus state. If things started out that way and you just had a short
37 stub loader that gets things initialized, and I were arguing that
38 instead of that little initialization stub you should break up /usr so
39 that the root count mount /usr, would that sound all that compelling?
40 I think having it all in one mountpoint seems a lot more compelling.
41
42 --
43 Rich

Replies

Subject Author
Re: [gentoo-dev] usr merge Luca Barbato <lu_zero@g.o>