1 |
Il 07/08/2012 14:47, Sylvain Alain ha scritto: |
2 |
> Hi everyone, for a couple of months now, I see on the list some of |
3 |
> activities about OpenRC been ported to FreeBSD or OpenRC to Debian and |
4 |
> other stuff related to SystemD. |
5 |
> |
6 |
> I have some basic questions about all that : |
7 |
> |
8 |
> 1. The SystemD and Udev projetcs are merged now, so what is the impact |
9 |
> on the Gentoo on a short term period ? |
10 |
The answer is in the hand of others, I sincerely hope someone will fork |
11 |
> |
12 |
> 2. I saw on some lists that Gnome/Kde and Xfce plan to use some |
13 |
> SystemD API, so does it means that we will need to install SystemD |
14 |
> aside of OpenRC ? |
15 |
It's not possible at the moment. systemd break non-systemd setups. |
16 |
|
17 |
> |
18 |
> 3. In a long term vision, can OpenRC still exist on a Gentoo |
19 |
> box(OpenRC might be able to boot the box then give the control to |
20 |
> SystemD/Udev for the rest of the boot process) or we will need to |
21 |
> migrate to SystemD to be able to use Gnome/Kde or Xfce ? |
22 |
PID 1 has some own properties, but systemd can work at user privileges, |
23 |
maybe |
24 |
> |
25 |
> 4. Finally, is there any reason why Gnome/Kde/Xfce wants to add deps |
26 |
> related to SystemD ? I don't understand why these desktops want to |
27 |
> depend on a specific Sysint.... |
28 |
|
29 |
Because starting daemons it's much more error prone than everyone |
30 |
thinks, at least everyone which didn't become involved in coding for it. |
31 |
|
32 |
And now my personal rant with some considerations, from memory, may be |
33 |
not totally accurate. |
34 |
|
35 |
Tried systemd (SD from now) the other day, as everyone knows it need to |
36 |
rebuild some part of the system with the "systemd" use flag. |
37 |
These things broke when not started by SD, for example pulseaudio, had |
38 |
problems also with auto-mount possibly more not even noticed. |
39 |
|
40 |
This box has 3 disk: |
41 |
sda) ssd on sda for gentoo whole disk (not partitioned) |
42 |
sd{b,c}) /home /srv /boot md raid 1 |
43 |
|
44 |
First problem udev/SD has is that it can't see all the file system |
45 |
labels, for some reason it only see sda and sdb so it's able to partly |
46 |
proceed in the boot sequence, mount / (root) but can't mount anything else. |
47 |
|
48 |
After putting in fstab the real /dev paths (something really old siecle) |
49 |
manually mount them with systemctl --ignore-deps (the name of the option |
50 |
is different please bear with me) works but the dependancies are not |
51 |
satisfied, for two reasons: |
52 |
a) SD does not re-calculate it's deptree/services when exiting from |
53 |
rescue shell, it still try to start the "virtual" services as fstab |
54 |
would have never modified, a reboot is needed |
55 |
b) since it does not work even after reboot, there must be something |
56 |
else, but what? this bring us to the point |
57 |
|
58 |
SD has mainly two things to debug boot `systemctl dump` and |
59 |
`systemd-journal` but the very much magnified advantages of the binary |
60 |
log^W journal are totally invisible in this case because it's |
61 |
difficult^W nearly impossible even to understand WHAT failed to start, |
62 |
not to mention WHY |
63 |
|
64 |
the magnificient binary log^W^W journal is kept on tmpfs (in ram) so |
65 |
it's not even available at boot in different situation. |
66 |
|
67 |
every try needed many minutes because SD wait for a long timeout before |
68 |
going to the rescue shell, gave up after few hours of try, upgrading |
69 |
Vista SP0 to current needed less reboot and time. |
70 |
|
71 |
But this has been beneficial because I've now realized few important |
72 |
things that will be probably never disappear from SD and will be there |
73 |
forever, things that make me think this stuff is really dangerous. |
74 |
|
75 |
List of problems that will _never_ be fixed |
76 |
|
77 |
- SD does not see anything else than systemd for boot. |
78 |
Interaction with SD from a livecd, is difficult, almost all tools don't |
79 |
work because SD is not running. |
80 |
transported on remote server administration this is a *nightmare*, |
81 |
various provider offer livecd like system which don't offer SD. |
82 |
so no easy migration, no easy first install, every failure is |
83 |
definitive, a no go |
84 |
|
85 |
- the journal will never become simpler, can only grow, debugging things |
86 |
in the shell will be nearly impossible for excess of data (and lack of |
87 |
useful one if it continue this way) |
88 |
|
89 |
- virtual/autogenerated services are and will be difficult to cope with, |
90 |
impossible to disable |
91 |
|
92 |
- every change in the early boot procedure will require reboot |
93 |
|
94 |
- which sum to: SD will work until it work, when something does not will |
95 |
be a royal pain to solve _and_ nothing else other than SD will be |
96 |
available to alleviate the pain |
97 |
|
98 |
difficult to accept for the desktop, impossible for the server. |
99 |
|
100 |
written by someone which like _some_ of the SD stuff. |