Gentoo Archives: gentoo-dev

From: "Olivier Crête" <tester@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] rfc: locations of binaries and separate /usr
Date: Wed, 04 Jan 2012 17:34:41
Message-Id: 1325698374.22213.10.camel@TesterBox.tester.ca
In Reply to: Re: [gentoo-dev] rfc: locations of binaries and separate /usr by Ulrich Mueller
1 On Wed, 2012-01-04 at 18:12 +0100, Ulrich Mueller wrote:
2 > >>>>> On Wed, 4 Jan 2012, Michał Górny wrote:
3 >
4 > >> What mistakes?
5 >
6 > > The mistake of introducing a pointless separation based on a rule of
7 > > thumb which becomes more and more blurry over time, and hacking
8 > > packages just to make it work.
9 >
10 > There's really nothing pointless or blurry about this separation.
11 > The FHS has a nice definition: "The contents of the root filesystem
12 > must be adequate to boot, restore, recover, and/or repair the system."
13
14 The problem is that to boot a modern system, you need a shitload of
15 stuff. For example, modern network filesystems often have secure
16 authentication and probably LDAP too, so that means we need to move ldap
17 and openssl into / and all the dependencies. Also, anything that
18 installs a udev rule needs to be in /, and the list goes on an on. Very
19 soon, you have almost everything in /...
20
21 This rule made sense in the 80s, but it doesn't match the modern world
22 anymore.
23
24 Some longer explanations:
25 http://www.freedesktop.org/wiki/Software/systemd/separate-usr-is-broken
26 https://fedoraproject.org/wiki/Features/UsrMove
27
28 Here is a list of packages on your system that will break if you start
29 udev without /usr mounted:
30
31 egrep 'usb-db|pci-db|FROM_DATABASE|/usr' /*/udev/rules.d/* |cut -f 1
32 -d : | sort -u | xargs qfile -e
33
34
35 --
36 Olivier Crête
37 tester@g.o
38 Gentoo Developer

Replies