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