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 D92C81381F3 for ; Tue, 28 May 2013 04:44:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 593D5E09AA; Tue, 28 May 2013 04:44:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6E4A3E0944 for ; Tue, 28 May 2013 04:44:01 +0000 (UTC) Received: from Nyx.local (dynamic-adsl-84-220-77-8.clienti.tiscali.it [84.220.77.8]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: lu_zero) by smtp.gentoo.org (Postfix) with ESMTPSA id 4F04C33E12A for ; Tue, 28 May 2013 04:44:00 +0000 (UTC) Message-ID: <51A4360D.7040204@gentoo.org> Date: Tue, 28 May 2013 06:43:57 +0200 From: Luca Barbato User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:22.0) Gecko/20100101 Thunderbird/22.0 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> <20130526084332.1a8afa69@gentoo.org> <51A1DC0C.2070706@gentoo.org> <20130526125742.4584d094@gentoo.org> <51A1F493.90101@gentoo.org> <51A22310.70202@gentoo.org> <51A42ABB.7090408@gentoo.org> <20130528061933.325d7d0f@gentoo.org> In-Reply-To: <20130528061933.325d7d0f@gentoo.org> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit X-Archives-Salt: 1cb5185c-bb55-4305-86d9-40bcff38307a X-Archives-Hash: 0c18d2a86d1d635d3bd33d782a7b080e On 5/28/13 6:19 AM, Michał Górny wrote: > And you actually make the boot depend on: > > 1) valid /bin/sh If it doesn't exist you have a few order of magnitude bigger problem. > 2) valid /etc/switch-init which would not interfere with boot process. I guess if you want to switch init system you need that =) > With switch-init being executed as a shell script, it can do anything. Yes and that's the beauty of it. > And I wouldn't be surprised if you made it do various things you'd like > to be done. I would be surprised if I'd make it do various things I won't like to be done, surely a possibility, albeit unlikely. > Not to mention what would happen if it gets corrupted into > binary mess and shell tries to execute that. Having your rootfs corrupted is quite bad, even horrible if an ephemeral file gets corrupted through reboot. > There's no fallback that could handle shell failures, you know. I guess your knowledge of shell needs to be expanded, beside that it is easier to write an example using shell pseudocode to explain how it could work. That said, here a friendly suggestion: try to be less destructive in your comments and fix your mailer. Both can be annoying in the long run. lu