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 CC9971381F3 for ; Tue, 28 May 2013 03:55:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5529AE0999; Tue, 28 May 2013 03:55:44 +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 664F6E098F for ; Tue, 28 May 2013 03:55:43 +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 4655C33DEE1 for ; Tue, 28 May 2013 03:55:42 +0000 (UTC) Message-ID: <51A42ABB.7090408@gentoo.org> Date: Tue, 28 May 2013 05:55:39 +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> In-Reply-To: <51A22310.70202@gentoo.org> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 34792215-8f29-49bb-8f09-6407ec769558 X-Archives-Hash: d185d6ec8ce9d2c52a390f758da9b862 On 5/26/13 4:58 PM, Ian Stakenvicius wrote: > The way it's being proposed (and please correct me if i'm wrong), the > wrapper is a direct replacement binary (small C program) for all init > systems, and would based on some configuration file or whatnot > determine and exec the init system it's supposed to -- and make any > other necessary changes too, such as switching /etc/inittab) The really minimal wrapper would be something like #!/bin/sh INIT=/bin/init if [[ -e /etc/switch-init ]]; then . /etc/switch-init fi exec ${INIT} With switch-init doing stuff needed, including remounting the rootfs rw if there are stuff to be changed and if we want stick to symlinks it could replace itself by a symlink. Yes, it would be that simple. lu