Gentoo Archives: gentoo-dev

From: "Steven J. Long" <slong@××××××××××××××××××.uk>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: Re: eselect init
Date: Sun, 02 Jun 2013 18:21:38
Message-Id: 20130602182038.GA4485@rathaus.eclipse.co.uk
In Reply to: Re: [gentoo-dev] Re: eselect init by Luca Barbato
1 On Sun, Jun 02, 2013 at 11:15:37AM +0200, Luca Barbato wrote:
2 > On 06/01/2013 11:23 AM, Steven J. Long wrote:
3 > > That's not an argument for using a symlink switcher or the
4 > > equivalent across the board, by any means.
5 >
6 > Your opinion.
7
8 That's not an argument for it either.
9
10 > > Firstly, we should be recommending people install Gentoo with enough
11 > > flexibility to configure and use their system how they choose. In the
12 > > UEFI arena, why not simply recommend something like rEFIt instead of
13 > > making everyone go through a load of development effort, to restrict
14 > > us all to a crippled use-case?
15 >
16 > Beside rEFIt being deprecated and rEFInd being in early stage of
17 > development (thus working great on some platforms and not working at all
18 > on some other) and with a good chunk of documentation to read before
19 > being able of deploying it?
20
21 The typical thing Gentoo users get told is "this is a new thing, it will
22 take some time to work out, bear with us" as their production servers go
23 tits-up around them. So in this case too, work with upstream to implement
24 better solutions you, and the wider ecosystem, can all use.
25
26 And in the meantime:
27
28 > > NOTE: If you still wish to pursue a fixed config, then it's easy
29 > > enough to build it with init=/sbin/einit since presumably you want
30 > > that setup for your users.
31 >
32 > Had been considered
33
34 And STILL the best interim solution till your EFI setup has a bootloader.
35
36 "Your opinion" of rejection is just that: your opinion.
37
38 You're free to work on whatever you want. You just haven't made any
39 case for why the rest of the ecosystem should be crippled to allow for a
40 use-case that would be better served by an existing, far more robust
41 solution.
42
43 > > All I'm saying is: can we please stop trying to reinvent the kernel,
44 > > which accepts a bootloader parameter from initramfs as well, and
45 > > focus instead on the difficult part: making sure the system is in a
46 > > fit state to switch in the first place.
47 >
48 > ...
49 >
50 > > That's where the development effort is needed, if you are to provide
51 > > a mechanism to switch. The symlink and hooks etc is a total dead-end,
52 > > imo. It's simply reinventing the wheel using octagons instead of
53 > > circles.
54 >
55 > IMHO you hadn't read enough about it.
56
57 Believe me I've read lots. And you _still_ are not presenting any arguments.
58
59 There are 6 options to hook in an init, and to fallback in case of error,
60 already.
61
62 > > There's nothing to stop systemd being the default init, should you
63 > > want to put the install together like that. Because let's be honest:
64 > > someone has to put this install together, irrespective of how
65 > > incapable the end-user is of editing a file by themselves. And just
66 > > because the user can do it simply, that's no reason to make our
67 > > method to do it any more complex (I've never heard such a bizarre
68 > > argument.) Just edit the file via script.
69 >
70 > I do not care about systemd.
71
72 Then it can be runit or whatever else takes your fancy. You are ignoring
73 the point of that paragraph though: someone has to put the install together.
74
75 Or it isn't a Gentoo install.
76
77 So given that you're putting it together, or it's an automated script
78 to do the same, you can hook in an init wrapper or alternative wherever you
79 want, without needing anything from anyone else.
80
81 > > FOCUS on getting the system safe to switch. Not on reinventing
82 > > init/main.c, badly.
83 >
84 > You should read the whole thread before commenting like this that late.
85
86 I have actually. I responded to WilliamH a while back, CC'ed to him since he
87 prefers that, but the mail didn't get through to the list. It was marked
88 TLDNR so no doubt it hit a filter somewhere, and I didn't see the point in
89 reiterating it.
90
91 I've seen two weeks of discussion about how to reimplement init/main.c
92 with "ooh it needs to be early in init" and "what about fallbacks", interleaved
93 with less and less discussion of the actual problem: making sure the system is
94 safe to switch in the first place; sine qua non.
95
96 Wrt to the first, funnily enough the kernel developers have been here before,
97 just like they had with ethN and wlanN. It's a basic requirement for developing
98 an OS that you be able to switch init and fallback to other options.
99
100 You should consider the points made, and whether you really need to implement
101 this part of the setup at all. Your premise is still flawed, however long
102 you've been discussing the implications of working round it. Stuff happens.
103
104 Honestly, my goal is a saving of time so people can focus on making the
105 eselect module work properly, and be of real value to an end-user who wants
106 to switch init.
107
108 The whole symlink/boot/fallback thing is simply a waste of technical effort.
109 And blanket "your opinion" and "you didn't comment a week ago, so I don't
110 have to deal with the substance of your points" don't change that.
111
112 Please, make a better case next time.
113
114 --
115 #friendly-coders -- We're friendly, but we're not /that/ friendly ;-)

Replies

Subject Author
Re: [gentoo-dev] Re: Re: eselect init Fabio Erculiani <lxnay@g.o>
Re: [gentoo-dev] Re: Re: eselect init Luca Barbato <lu_zero@g.o>