Gentoo Archives: gentoo-user

From: nunojsilva@ist.utl.pt (Nuno J. Silva)
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Anyone switched to eudev yet?
Date: Sun, 23 Dec 2012 17:43:57
Message-Id: 877go87jec.fsf@ist.utl.pt
In Reply to: Re: [gentoo-user] Re: Anyone switched to eudev yet? by Alan Mackenzie
1 On 2012-12-23, Alan Mackenzie wrote:
2
3 > On Sun, Dec 23, 2012 at 07:03:25PM +0200, Nuno J. Silva wrote:
4 >> On 2012-12-23, Alan McKinnon wrote:
5 >
6 >> > On Sun, 23 Dec 2012 12:22:24 +0200
7 >> > nunojsilva@×××××××.pt (Nuno J. Silva) wrote:
8 >
9 >> >> On 2012-12-18, Alan McKinnon wrote:
10 >
11 >> >> > On Tue, 18 Dec 2012 09:08:53 -0500
12 >> >> > Michael Mol <mikemol@×××××.com> wrote:
13 >
14 >
15 >> >> > This sentence summarizes my understanding of your post nicely:
16 >
17 >> >> >> Now, why is /usr special? It's because it contains executable code
18 >> >> >> the system might require while launching.
19 >
20 >> >> > Now there are only two approaches that could solve that problem:
21 >
22 >> >> > 1. Avoid it entirely
23 >> >> > 2. Deal with it using any of a variety of bootstrap techniques
24 >
25 >> >> > #1 is handled by policy, whereby any code the system might require
26 >> >> > while launching is not in /usr.
27 >
28 >> >> > #2 already has a solution, it's called an init*. Other solutions
29 >> >> > exist but none are as elegant as a throwaway temporary filesystem
30 >> >> > in RAM.
31 >
32 >> >> What about just mounting /usr as soon as the system boots?
33 >
34 >
35 >> > Please read the thread next time. The topic under discussion is
36 >> > solutions to the problem of not being able to do exactly that.
37 >
38 >> Then I suppose you can surely explain in a nutshell why can't init
39 >> scripts simply do that?
40 >
41 > Because certain people with influence have rearranged the filesystem so
42 > that programs within /usr are absolutely necessary for booting; they are
43 > needed _before_ init has a chance to mount /usr. So either /usr has to
44 > be in the root partition, or crazy kludges need to be used to mount /usr
45 > before the kernel runs init.
46
47 I surely don't know the udev architecture well enough, but if this is
48 all done by the udev daemon, can't we just "mount /usr" before the
49 daemon is started? The only needed things should be mount (which is
50 under /bin here) and /etc/fstab.
51
52 Or is something outside udev needing stuff under /usr?
53
54 --
55 Nuno Silva (aka njsg)
56 http://njsg.sdf-eu.org/

Replies

Subject Author
Re: [gentoo-user] Re: Anyone switched to eudev yet? Michael Mol <mikemol@×××××.com>
Re: [gentoo-user] Re: Anyone switched to eudev yet? Neil Bothwick <neil@××××××××××.uk>
Re: [gentoo-user] Re: Anyone switched to eudev yet? Volker Armin Hemmann <volkerarmin@××××××××××.com>