Gentoo Archives: gentoo-dev

From: Joshua Kinard <kumba@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] udev and /usr
Date: Mon, 19 Sep 2011 10:39:18
Message-Id: 4E771B7D.8050702@gentoo.org
In Reply to: Re: [gentoo-dev] udev and /usr by "Michał Górny"
1 On 09/19/2011 05:10, Michał Górny wrote:
2
3 >
4 > Could we stop putting random stuff in random dirs because 'it will
5 > work'? /etc is _SYSCONFDIR_. I don't see how PCI IDs are config at all.
6
7
8 The best answer is for someone to look into udev and see what it needs
9 exactly from /usr. Does it really need pci.ids? Or is it just the fact
10 that random udev rules might rely on a tool/lib in /usr?
11
12 Former, yes, pci.ids is perfectly valid to go into /etc. It specifies a
13 mapping of PCI ID numbers to device strings used in udev rules.
14
15 In the latter case, maybe rules specifically required for booting up enough
16 to mount disks need to be isolated into their own file and udev pointed
17 there, then re-pointed to the bigger file after /usr is made available. If
18 that is even possible.
19
20 Note: I'm brainstorming here. Anyone else?
21
22
23 > As I see it, the simplest solution would be to lay out the minimal
24 > initramfs contents to rootfs and make it mount /usr and stuff before
25 > starting actual rc. This should cut all the complaints and possibly let
26 > us move some stuff back to /usr where it belongs.
27
28
29 Yes, but some of us don't even want to have that initramfs built into our
30 kernels. And no one, other than freedesktop.org* and a few people on
31 linux-hotplug-devel*, said everything belongs in /usr. FHS clearly defines
32 the roles for /, /bin, /sbin, /lib*, /usr, /var, /home, /tmp and the virtual
33 fses. Plus others.
34
35 http://www.freedesktop.org/wiki/Software/systemd/separate-usr-is-broken
36 http://marc.info/?l=linux-hotplug&m=131206447302056&w=2
37
38 Really, MacOS's filesystem layout is not something anyone in their right
39 mind should deign to mimic/copy.
40
41 --
42 Joshua Kinard
43 Gentoo/MIPS
44 kumba@g.o
45 4096R/D25D95E3 2011-03-28
46
47 "The past tempts us, the present confuses us, the future frightens us. And
48 our lives slip away, moment by moment, lost in that vast, terrible in-between."
49
50 --Emperor Turhan, Centauri Republic

Attachments

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

Replies

Subject Author
Re: [gentoo-dev] udev and /usr Arun Raghavan <ford_prefect@g.o>
Re: [gentoo-dev] udev and /usr Greg KH <gregkh@g.o>