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 6D77E1381F3 for ; Fri, 21 Jun 2013 10:30:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8CE4EE0A4A; Fri, 21 Jun 2013 10:30:21 +0000 (UTC) Received: from spot.xmw.de (spot.xmw.de [176.9.87.236]) by pigeon.gentoo.org (Postfix) with ESMTP id 996ABE09FD for ; Fri, 21 Jun 2013 10:30:20 +0000 (UTC) Received: from [IPv6:2001:6f8:1cd1:0:21d:72ff:fe88:9ac1] (x.l.xmw.de [IPv6:2001:6f8:1cd1:0:21d:72ff:fe88:9ac1]) by spot.xmw.de (Postfix) with ESMTPSA id 778A2141233E5 for ; Fri, 21 Jun 2013 12:30:18 +0200 (CEST) Message-ID: <51C42B33.9090709@gentoo.org> Date: Fri, 21 Jun 2013 12:30:11 +0200 From: Michael Weber User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130610 Thunderbird/17.0.6 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 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] eselect init References: <51A08A68.3020900@gentoo.org> <20130620205609.GB23719@linux1> <20130621043959.7eae0921@gentoo.org> In-Reply-To: <20130621043959.7eae0921@gentoo.org> X-Enigmail-Version: 1.6a1pre Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: b10c4d2f-1154-49f6-bc35-409a13909d7c X-Archives-Hash: e221941f2bdc8c8f575b34acd8e3e204 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 06/21/2013 04:39 AM, Michał Górny wrote: > Dnia 2013-06-20, o godz. 15:56:09 William Hubbs > napisał(a): > >> On Thu, Jun 20, 2013 at 12:16:36PM +0200, Fabio Erculiani wrote: >>> There is a new version of eselect-init in the systemd-love >>> overlay to play with. The new version saw the following major >>> changes: >>> >>> - the /sbin/init (aka the symlink that eselect-init handles) >>> can be changed to whatever one wants through make.conf [1] >>> (this is a compile time option, as documented in the eclass) >> >> Why do we need to mess with /sbin/init at all? > > Yes, we do because we don't want sysvinit randomly getting run as > fallback and messing with our systems. So what's the point in having it optional, if sysvinit would just mess around with it. You'd only hit this, if you start your userland with an foreign kernel. Forgotten bootloader arguments can be "defaulted" with ... >> I like the suggestion that came up here on the list a while back, >> have the eselect init module install its own symlink at, say, >> /sbin/einit. You would still have to have the user edit their >> boot loader configuration file one time if they want to use this, >> but this makes it completely opt-in. > > Plus hacking kernel sources to disable /sbin/init fallback. CONFIG_CMDLINE=/sbin/whatever works, i use it for root=, crypt_dev, ... CONFIG_CMDLINE_OVERRIDE should stay off to respect bootloader "cmdline". [ working with foreign init systems (runit-musl based ignite on archlinux, NoUpgrade=sbin/init aka CONFIG_PROTECT does work, too.] - -- Michael Weber Gentoo Developer web: https://xmw.de/ mailto: Michael Weber -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iF4EAREIAAYFAlHEKzMACgkQknrdDGLu8JA6AwD+MyTTKeHlNN/1Nud/G0L7XnA+ hdJl4qATOU3MkyqDQw0A+wao6tYrHTFWCt4MmTOxl3gsBvUvE/w4sQyZcPTElg3h =XwPu -----END PGP SIGNATURE-----