Gentoo Archives: gentoo-dev

From: William Hubbs <williamh@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] rfc: making sysvinit optional
Date: Thu, 11 Jul 2019 00:03:40
Message-Id: 20190711000332.GA6104@whubbs1.dev.av1.gaikai.org
In Reply to: Re: [gentoo-dev] rfc: making sysvinit optional by Michael Orlitzky
1 On Wed, Jul 10, 2019 at 07:30:57PM -0400, Michael Orlitzky wrote:
2 > On 7/10/19 7:16 PM, William Hubbs wrote:
3 > > 3. add a sysvinit use flag to openrc, which will be off by default. When
4 > > it is on, openrc will block sysvinit since it will provide /sbin/init
5 > > and /sbin/shutdown.
6 > >
7 >
8 > This logic, or maybe the name of the flag, sounds backwards to me. I
9 > only get sysvinit when USE=sysvinit is NOT set?
10
11 If you don't set sys-apps/openrc[sysvinit], you would have /sbin/init
12 and /sbin/shutdown as they are now, from sys-apps/sysvinit.
13
14 If you do set sys-apps/openrc[sysvinit], /sbin/init and /sbin/shutdown
15 would become wrappers for /sbin/openrc-init and /sbin/openrc-shutdown.
16
17 Actually, I'm thinking that the use flag can't happen until the next
18 OpenRC release, because I need to set up openrc-shutdown so it can shut down
19 a system that is booted with sysvinit first.
20
21 >
22 >
23 >
24 > > RDEPEND="
25 > > kernel_linux? (
26 > > || (
27 > > sys-apps/sysvinit
28 > > sys-apps/systemd
29 > > sys-apps/openrc
30 > > sys-process/runit
31 > > virtual/daemontools
32 > > )
33 >
34 > Modulo my first comment, you'll want some USE flag (un)set for
35 > sys-apps/openrc to ensure that /sbin/init is provided.
36
37 I am willing to be convinced, but I'm not sure all providers of a virtual
38 are required to provide the same binaries. A couple of examples off the
39 top of my head are virtual/editor, virtual/logger and virtual/mta.
40
41 William

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] rfc: making sysvinit optional Michael Orlitzky <mjo@g.o>
Re: [gentoo-dev] rfc: making sysvinit optional Rich Freeman <rich0@g.o>
Re: [gentoo-dev] rfc: making sysvinit optional William Hubbs <williamh@g.o>