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 A7FCA1381F3 for ; Sat, 1 Jun 2013 08:54:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C9A23E0A5C; Sat, 1 Jun 2013 08:54:24 +0000 (UTC) Received: from smtpout.karoo.kcom.com (smtpout.karoo.kcom.com [212.50.160.34]) by pigeon.gentoo.org (Postfix) with ESMTP id B0B5EE0A59 for ; Sat, 1 Jun 2013 08:54:23 +0000 (UTC) X-IronPort-AV: E=Sophos;i="4.87,783,1363132800"; d="scan'208";a="16706824" Received: from unknown (HELO rathaus.eclipse.co.uk) ([109.176.197.176]) by smtpout.karoo.kcom.com with ESMTP; 01 Jun 2013 09:54:07 +0100 Date: Sat, 1 Jun 2013 10:23:55 +0100 From: "Steven J. Long" To: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] Re: eselect init Message-ID: <20130601092355.GB25065@rathaus.eclipse.co.uk> Mail-Followup-To: gentoo-dev@lists.gentoo.org References: <51A08A68.3020900@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: <51A08A68.3020900@gentoo.org> X-Archives-Salt: 61b0120f-b121-49c7-963d-fe0ef062d1ca X-Archives-Hash: fcb2d584630d1685676227884ad95940 On Sat, May 25, 2013 at 11:54:48AM +0200, Luca Barbato wrote: > I'm back to the other part of it: switching the actual init implementation. > > # WHY (not just edit your bootloader) > > Since efi at least some people started to put in the kernel the bootargs > and we have at least few new options brewing for init, some are > small impact (bootchar, bb-init-openrc and runit-openrc) some are more > invasive (runit and systemd). > > In those setup changing bootargs requires a kernel rebuild and some > effort, while the eselect approach stays completely transparent. That's not an argument for using a symlink switcher or the equivalent across the board, by any means. 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? 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. So even for the restricted corner-case of a Gentoo install without a bootloader this is not needed. In fact it would be better done using the existing mechanism. 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. 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. If we're on a crippled EFI setup, or the user has specified to use the boot wrapper, then we're simply editing a file for the wrapper to read instead. It's trivial. FOCUS on getting the system safe to switch. Not on reinventing init/main.c, badly. -- #friendly-coders -- We're friendly, but we're not /that/ friendly ;-)