From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 945681381F3 for ; Sun, 2 Jun 2013 18:21:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6C667E09EF; Sun, 2 Jun 2013 18:21:29 +0000 (UTC) Received: from smtpout.karoo.kcom.com (smtpout.karoo.kcom.com [212.50.160.34]) by pigeon.gentoo.org (Postfix) with ESMTP id 68DAEE0997 for ; Sun, 2 Jun 2013 18:21:28 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.87,789,1363132800"; d="scan'208";a="16242524" Received: from unknown (HELO rathaus.eclipse.co.uk) ([82.153.121.248]) by smtpout.karoo.kcom.com with ESMTP; 02 Jun 2013 19:21:27 +0100 Date: Sun, 2 Jun 2013 19:20:38 +0100 From: "Steven J. Long" To: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] Re: Re: eselect init Message-ID: <20130602182038.GA4485@rathaus.eclipse.co.uk> Mail-Followup-To: gentoo-dev@lists.gentoo.org References: <51A08A68.3020900@gentoo.org> <20130601092355.GB25065@rathaus.eclipse.co.uk> <51AB0D39.8050506@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <51AB0D39.8050506@gentoo.org> X-Archives-Salt: 792324f3-c982-4313-b330-ebebbc9684c6 X-Archives-Hash: 3e6274fdeef3f003b387a5967b1c0a49 On Sun, Jun 02, 2013 at 11:15:37AM +0200, Luca Barbato wrote: > On 06/01/2013 11:23 AM, Steven J. Long wrote: > > That's not an argument for using a symlink switcher or the > > equivalent across the board, by any means. > > Your opinion. That's not an argument for it either. > > Firstly, we should be recommending people install Gentoo with enough > > flexibility to configure and use their system how they choose. In the > > UEFI arena, why not simply recommend something like rEFIt instead of > > making everyone go through a load of development effort, to restrict > > us all to a crippled use-case? > > Beside rEFIt being deprecated and rEFInd being in early stage of > development (thus working great on some platforms and not working at all > on some other) and with a good chunk of documentation to read before > being able of deploying it? The typical thing Gentoo users get told is "this is a new thing, it will take some time to work out, bear with us" as their production servers go tits-up around them. So in this case too, work with upstream to implement better solutions you, and the wider ecosystem, can all use. And in the meantime: > > NOTE: If you still wish to pursue a fixed config, then it's easy > > enough to build it with init=/sbin/einit since presumably you want > > that setup for your users. > > Had been considered And STILL the best interim solution till your EFI setup has a bootloader. "Your opinion" of rejection is just that: your opinion. You're free to work on whatever you want. You just haven't made any case for why the rest of the ecosystem should be crippled to allow for a use-case that would be better served by an existing, far more robust solution. > > All I'm saying is: can we please stop trying to reinvent the kernel, > > which accepts a bootloader parameter from initramfs as well, and > > focus instead on the difficult part: making sure the system is in a > > fit state to switch in the first place. > > ... > > > That's where the development effort is needed, if you are to provide > > a mechanism to switch. The symlink and hooks etc is a total dead-end, > > imo. It's simply reinventing the wheel using octagons instead of > > circles. > > IMHO you hadn't read enough about it. Believe me I've read lots. And you _still_ are not presenting any arguments. There are 6 options to hook in an init, and to fallback in case of error, already. > > There's nothing to stop systemd being the default init, should you > > want to put the install together like that. Because let's be honest: > > someone has to put this install together, irrespective of how > > incapable the end-user is of editing a file by themselves. And just > > because the user can do it simply, that's no reason to make our > > method to do it any more complex (I've never heard such a bizarre > > argument.) Just edit the file via script. > > I do not care about systemd. Then it can be runit or whatever else takes your fancy. You are ignoring the point of that paragraph though: someone has to put the install together. Or it isn't a Gentoo install. So given that you're putting it together, or it's an automated script to do the same, you can hook in an init wrapper or alternative wherever you want, without needing anything from anyone else. > > FOCUS on getting the system safe to switch. Not on reinventing > > init/main.c, badly. > > You should read the whole thread before commenting like this that late. I have actually. I responded to WilliamH a while back, CC'ed to him since he prefers that, but the mail didn't get through to the list. It was marked TLDNR so no doubt it hit a filter somewhere, and I didn't see the point in reiterating it. I've seen two weeks of discussion about how to reimplement init/main.c with "ooh it needs to be early in init" and "what about fallbacks", interleaved with less and less discussion of the actual problem: making sure the system is safe to switch in the first place; sine qua non. Wrt to the first, funnily enough the kernel developers have been here before, just like they had with ethN and wlanN. It's a basic requirement for developing an OS that you be able to switch init and fallback to other options. You should consider the points made, and whether you really need to implement this part of the setup at all. Your premise is still flawed, however long you've been discussing the implications of working round it. Stuff happens. Honestly, my goal is a saving of time so people can focus on making the eselect module work properly, and be of real value to an end-user who wants to switch init. The whole symlink/boot/fallback thing is simply a waste of technical effort. And blanket "your opinion" and "you didn't comment a week ago, so I don't have to deal with the substance of your points" don't change that. Please, make a better case next time. -- #friendly-coders -- We're friendly, but we're not /that/ friendly ;-)