From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QD0sV-0001Vi-G6 for garchives@archives.gentoo.org; Thu, 21 Apr 2011 20:53:31 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 317871C016; Thu, 21 Apr 2011 20:53:21 +0000 (UTC) Received: from mail-gx0-f181.google.com (mail-gx0-f181.google.com [209.85.161.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 5B1FA1C003 for ; Thu, 21 Apr 2011 20:52:46 +0000 (UTC) Received: by gxk9 with SMTP id 9so39374gxk.40 for ; Thu, 21 Apr 2011 13:52:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:date:from:to:subject:message-id :mail-followup-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=Qwu9E8t8lQgTG1KF3ox5h7umlq9a3zRvWDN1/VEIJxQ=; b=iqnC2QjWdMTVnrA6MOYE0U1yak6O4uZaIq/kbJhK4tx4QS/oQgEFQWeQ5Do0Cd2BjI kGdpKExEEXc0T1vfJn13dtybV/fYOJOSdf85Yo6KH7gOFtrfEcuf7XU4zI8vCsrBOpCH RYZj1IlDsNPWTFx0SVIIrR1y697hgAnWMRA6g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; b=EIFRf7M7JCo+uex1USUCd2ADCy/05zh0gL2ME8hxQ7X2nWH+OPHmL0qFROe8F9j6hG ID1VvzQiuxRHfP0fYKhZlJpgLN07eShh/ILR+x3UHuUqnV2Mz8nJ3INJC7gensykAm6u MPtHDv/AgYj93mENnwWWGwhV26zojP88g0ov4= Received: by 10.236.181.135 with SMTP id l7mr453869yhm.118.1303419165646; Thu, 21 Apr 2011 13:52:45 -0700 (PDT) Received: from linux1 (cpe-76-183-49-63.tx.res.rr.com [76.183.49.63]) by mx.google.com with ESMTPS id a5sm367601yhe.75.2011.04.21.13.52.43 (version=SSLv3 cipher=OTHER); Thu, 21 Apr 2011 13:52:45 -0700 (PDT) Sender: William Hubbs Received: by linux1 (sSMTP sendmail emulation); Thu, 21 Apr 2011 15:52:43 -0500 Date: Thu, 21 Apr 2011 15:52:43 -0500 From: William Hubbs To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] rfc: openrc use flag Message-ID: <20110421205243.GA12956@linux1> Mail-Followup-To: gentoo-dev@lists.gentoo.org References: <20110420172419.GC12411@linux1> <1303322561.22688.9.camel@tablet> <1303323632.9092.30.camel@localhost.localdomain> <20110421193058.GB12112@linux1> <1303416222.4481.6.camel@localhost.localdomain> 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; protocol="application/pgp-signature"; boundary="ikeVEW9yuYc//A+q" Content-Disposition: inline In-Reply-To: <1303416222.4481.6.camel@localhost.localdomain> User-Agent: Mutt/1.5.21 (2010-09-15) X-Archives-Salt: X-Archives-Hash: 76891487f401c0f0f4d1def21516c43a --ikeVEW9yuYc//A+q Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 21, 2011 at 10:03:42PM +0200, Pacho Ramos wrote: > El jue, 21-04-2011 a las 14:30 -0500, William Hubbs escribi=C3=B3: > > On Wed, Apr 20, 2011 at 08:20:32PM +0200, Pacho Ramos wrote: > > > El mi=C3=A9, 20-04-2011 a las 22:02 +0400, Peter Volkov escribi=C3=B3: > > > > =D0=92 =D0=A1=D1=80=D0=B4, 20/04/2011 =D0=B2 12:24 -0500, William H= ubbs =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > > > > The author of the bug feels that the way to fix this is for us to= put a > > > > > check in openrc that makes it refuse to run services if it was no= t used > > > > > in the boot process. > > > >=20 > > > > This is good idea to have in any case since I remember my system we= nt > > > > crazy after I've tried to start some service inside chroot. > > > >=20 > > > > > This may work; however, I do not feel that it addresses the root = cause > > > > > of the bug. I feel that the root cause is packages unconditionally > > > > > installing udev rules which assume everyone uses openrc. > > > >=20 > > > > I'd voted to have both implemented. > > > >=20 > > >=20 > > > I would vote for the first one, I still don't like "openrc" USE flag > > > approach much because: > > > 1. Would need to rebuild some packages when switching between init > > > systems. > >=20 > > I don't think you can get away from this, no matter how you approach > > it. The other approach I thought of is to include the udev pieces > > directly in openrc and make it possible to build openrc with or without > > udev integration. That will still mean you have to rebuild openrc though > > if you want udev support. > >=20 >=20 > With mgorny's approach looks like recompiling wouldn't be needed :-/ His approach doesn't stop udev from attempting to run the services; it just makes openrc print an error message and abort each service we try to run. With the integration into udev that we have right now, some of our udev rules expect openrc to be usable. William --ikeVEW9yuYc//A+q Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iEYEARECAAYFAk2wmRsACgkQblQW9DDEZTi04QCZAQgng/ZHSic8Wz/aAP7v5Chu RFwAoI8wwwLmyCdaPrEdGTnFHO7cdrno =GNOS -----END PGP SIGNATURE----- --ikeVEW9yuYc//A+q--