Gentoo Archives: gentoo-dev

From: William Hubbs <williamh@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] rfc: openrc use flag
Date: Thu, 21 Apr 2011 20:53:31
Message-Id: 20110421205243.GA12956@linux1
In Reply to: Re: [gentoo-dev] rfc: openrc use flag by Pacho Ramos
1 On Thu, Apr 21, 2011 at 10:03:42PM +0200, Pacho Ramos wrote:
2 > El jue, 21-04-2011 a las 14:30 -0500, William Hubbs escribió:
3 > > On Wed, Apr 20, 2011 at 08:20:32PM +0200, Pacho Ramos wrote:
4 > > > El mié, 20-04-2011 a las 22:02 +0400, Peter Volkov escribió:
5 > > > > В Срд, 20/04/2011 в 12:24 -0500, William Hubbs пишет:
6 > > > > > The author of the bug feels that the way to fix this is for us to put a
7 > > > > > check in openrc that makes it refuse to run services if it was not used
8 > > > > > in the boot process.
9 > > > >
10 > > > > This is good idea to have in any case since I remember my system went
11 > > > > crazy after I've tried to start some service inside chroot.
12 > > > >
13 > > > > > This may work; however, I do not feel that it addresses the root cause
14 > > > > > of the bug. I feel that the root cause is packages unconditionally
15 > > > > > installing udev rules which assume everyone uses openrc.
16 > > > >
17 > > > > I'd voted to have both implemented.
18 > > > >
19 > > >
20 > > > I would vote for the first one, I still don't like "openrc" USE flag
21 > > > approach much because:
22 > > > 1. Would need to rebuild some packages when switching between init
23 > > > systems.
24 > >
25 > > I don't think you can get away from this, no matter how you approach
26 > > it. The other approach I thought of is to include the udev pieces
27 > > directly in openrc and make it possible to build openrc with or without
28 > > udev integration. That will still mean you have to rebuild openrc though
29 > > if you want udev support.
30 > >
31 >
32 > With mgorny's approach looks like recompiling wouldn't be needed :-/
33
34 His approach doesn't stop udev from attempting to run the services; it
35 just makes openrc print an error message and abort each service we try
36 to run.
37
38 With the integration into udev that we have right now, some of our udev
39 rules expect openrc to be usable.
40
41 William

Replies

Subject Author
Re: [gentoo-dev] rfc: openrc use flag Pacho Ramos <pacho@g.o>