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 E17D61381F3 for ; Sat, 25 May 2013 12:14:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B55BCE0B82; Sat, 25 May 2013 12:14:44 +0000 (UTC) Received: from jacques.telenet-ops.be (jacques.telenet-ops.be [195.130.132.50]) by pigeon.gentoo.org (Postfix) with ESMTP id 8E8EAE0B7F for ; Sat, 25 May 2013 12:14:43 +0000 (UTC) Received: from TOMWIJ-GENTOO ([94.226.55.127]) by jacques.telenet-ops.be with bizsmtp id gCEi1l00L2khLEN0JCEiVs; Sat, 25 May 2013 14:14:42 +0200 Date: Sat, 25 May 2013 14:12:43 +0200 From: Tom Wijsman To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] eselect init Message-ID: <20130525141243.01a782cd@TOMWIJ-GENTOO> In-Reply-To: <20130525142913.082c2ff8@sf> References: <51A08A68.3020900@gentoo.org> <20130525142913.082c2ff8@sf> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.18; x86_64-pc-linux-gnu) 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: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/kTiOX/WH.UJYTY2G2Vu4jmn"; protocol="application/pgp-signature" X-Archives-Salt: b7a823ad-9428-4e7e-ad9e-551102a10976 X-Archives-Hash: c16ae2ae176d40f2ac18aebab2e1f997 --Sig_/kTiOX/WH.UJYTY2G2Vu4jmn Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sat, 25 May 2013 14:29:12 +0300 Sergei Trofimovich wrote: > If you can't change options at boot time it's very simple to get > unbootable system. https://bugs.gentoo.org/show_bug.cgi?id=3D465236#c34 In above Bug #465236 at Comment #34 the suggestion has been made to maybe call the wrapper /sbin/einit and leave /sbin/init at a sane default. That way the user should still be able to boot the Gentoo default as long as it does not end up being removed from the system. In other words, changing init=3D/sbin/einit back to init/sbin/init fixes things; I don't think it's asked too much to add init=3D/sbin/einit in the bootloader or kernel in the alternative init systems documentation. > Just curious, who does such systems and how root filesystem (+ it's > mount options) is expected to be found there? I don't see how this is a problem; the kernel loads what you have set as init and after that you have root filesystem access, possibly read only at this point but you don't have to find the root fs here. > I guess EFI allows you to set bootargs via EFI UI. Not so sure about this, but most people end up hardcoding it in the kernel; you can do this by setting CONFIG_CMDLINE. > I'd go for init=3D/sbin/gentoo-init and make all the messy stuff there. > Otherwise by breaking /sbin/init it would be hard to find proper > name of, say, SYSVs /sbin/init. How would you call it? Yeah, this is what the /sbin/einit suggestion above tries to resolve. We shouldn't have our users guess at names here, all they should know is to add einit if they wish to be able to switch and that removing it will load the default init system present on Gentoo... --=20 With kind regards, Tom Wijsman (TomWij) Gentoo Developer E-mail address : TomWij@gentoo.org GPG Public Key : 6D34E57D GPG Fingerprint : C165 AF18 AB4C 400B C3D2 ABF0 95B2 1FCD 6D34 E57D --Sig_/kTiOX/WH.UJYTY2G2Vu4jmn Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) iQEcBAEBAgAGBQJRoKq7AAoJEJWyH81tNOV98RUIAJ0h44tiW2qJhnFpETwiCfjl nNJxwsBbUxXgXGG+27t+d8ddIB+nB64eXirmrErZUU+Hyx3lzAnDOln2f3jH6kdC e0fytXLkZDs5Xmnv2EGWEwPKFaOaEtCL0HLD/cL2wPLhwYweZeFpK8mNGrolRC2r QDyKV9aFC5pPQVJ+KXHKLm8XJsXGDSZGV3vbujnDkrYbXIs5/sg0l6s+GSJZbIAj u0mgW/ga3QlrtYmcfhlu7+S/wYFhRIA3ui0ksmkC3voUF9aYt21W2Boz5wG0GT6x hXL8r/1EYrkfIuG2CjvpoGeRNtjrykpZVjpcYgmACXWbNFwIugVp4oyEly3UJGM= =jfd0 -----END PGP SIGNATURE----- --Sig_/kTiOX/WH.UJYTY2G2Vu4jmn--