1 |
Hi Alan, |
2 |
|
3 |
On Monday, 12. September 2011 15:02:48 Alan Mackenzie wrote: |
4 |
> Hi, everybody. |
5 |
> |
6 |
> Hope nobody minds me starting a new thread with an accurate name. |
7 |
> |
8 |
> Which version of udev is it that has this nauseating feature of needing |
9 |
> /usr loaded to boot? |
10 |
|
11 |
> Somewhere in that version's source will be several (or lots of) "/usr". |
12 |
> Just how difficult is it going to be to replace "/usr/bin" with "/bin" |
13 |
> throughout the source? |
14 |
|
15 |
you misunderstood something. udev is able to run arbitrary scripts. Some of |
16 |
those scripts are located in /usr/* or need something there. I doubt you will |
17 |
find references to /usr in the udev-sources. |
18 |
|
19 |
> udev is part of the kernel. |
20 |
|
21 |
No. udev is usperspace. |
22 |
|
23 |
> How come the kernel hackers aren't up in |
24 |
> arms about this as much as we are? Or are they, maybe? In which case, |
25 |
> maybe the kernel people would welcome an option to disrequire the early |
26 |
> mounting of /usr as much as we would. |
27 |
> |
28 |
> Anyhow, I'd like to take a peek at the source code which does this evil |
29 |
> thing. Would somebody please tell me which version of udev is involved. |
30 |
|
31 |
Every udev version works this way. |
32 |
Fixing udev to continue working with separate /usr is far from trivial imo. |
33 |
Changing some paths is not the way to go for sure. |
34 |
First of all, udev has to distinguish between "device not present" and "script |
35 |
error of some kind". Failing scripts have to be queued somehow for later |
36 |
execution. If a script keeps failing, it has to be removed from that queue, |
37 |
with a message to syslog or something like that. If udev needs a script in |
38 |
/usr/* to mount /usr then there's a chicken-egg-problem, which could be hard |
39 |
to solve (if possible at all without moving things from /usr/ to /). |
40 |
Note, that I am wild guessing here, I did not study the udev sources or any |
41 |
related script/rule :) |
42 |
|
43 |
> Thanks. |
44 |
|
45 |
Best, |
46 |
Michael |