Gentoo Archives: gentoo-dev

From: Rich Freeman <rich0@g.o>
To: gentoo-dev@l.g.o
Cc: kumba@g.o
Subject: Re: [gentoo-dev] rfc: using /libexec
Date: Thu, 08 Sep 2011 14:36:36
Message-Id: CAGfcS_n40Yn_37VX8P2erWRhii15NbhY3F_s709NT2kVU8PQUw@mail.gmail.com
In Reply to: Re: [gentoo-dev] rfc: using /libexec by "Michał Górny"
1 On Thu, Sep 8, 2011 at 4:41 AM, Michał Górny <mgorny@g.o> wrote:
2
3 >
4 > I'd rather say we should do the work on real issues rather than
5 > imaginate 'separate /usr' problem. Honestly, most of 'advantages' of
6 > separate /usr are just hacks avoiding other problems.
7 >
8 >
9 I guess the irony in my case was that having a separate /usr allowed me to
10 use raid5 without having an initramfs. :)
11
12 It may have changed, but at least in the past you couldn't have root on a
13 raid5 without an initramfs - you definitely couldn't have it on LVM. So, if
14 you wanted to run LVM on raid5, you had to have a separate root that was
15 raid1 with the older metadata that on-disk looks like a non-raid partition
16 superficially.
17
18 So, unless you want to waste half your diskspace you need to keep root
19 really small, since raid1 is a lot less space-efficient than raid5. If you
20 want a small root you can't put /usr on it.
21
22 In any case, I think we need to pick our battles. If every other distro
23 goes one way, then we need to consider whether being different is really
24 adding value, or if it is simply being different.
25
26 Most distros used an initramfs because they wanted to have one-size-fits-all
27 kernels. Gentoo doesn't do it that way, and hasn't needed initramfs as much
28 as a result. However, in the linux world initramfs has evolved from simply
29 being a way to modprobe the drivers needed to mount root to an extra
30 bootloader that allows for more complex partitioning schemes (btrfs, lvm,
31 raid, etc), disk encryption, and much smarter detection logic (mounting by
32 UUID and not by a device name that is not guaranteed to be stable).
33
34 I think the proposed direction is sensible. If you have a monolithic kernel
35 and a separate /usr on an otherwise simple setup, then you'll probably just
36 need to emerge an extra package and cat some static file onto the end of
37 your kernel image, or reference it in your kernel config. If you have a
38 complex system then you just run dracut and get automagic bootup logic. If
39 you have /usr on root then you don't need to do anything.
40
41 The alternative is to spend huge amounts of time maintaining system packages
42 just so that we can be different.
43
44 Rich

Replies

Subject Author
Re: [gentoo-dev] rfc: using /libexec Joshua Kinard <kumba@g.o>