Gentoo Archives: gentoo-dev

From: Fabio Erculiani <lxnay@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] eselect init
Date: Thu, 20 Jun 2013 10:17:23
Message-Id: CAN3AtvrjQaQ-86ripLB9yj2KQvK8=_kcoeq1sJw=3Yeum_uC6g@mail.gmail.com
In Reply to: [gentoo-dev] eselect init by Luca Barbato
1 There is a new version of eselect-init in the systemd-love overlay to play with.
2 The new version saw the following major changes:
3
4 - the /sbin/init (aka the symlink that eselect-init handles) can be
5 changed to whatever one wants through make.conf [1] (this is a compile
6 time option, as documented in the eclass)
7 - only init is currently handled by eselect-init, which is now using a
8 very small wrapper POSIX shell script to redirect the calls to the
9 currently running init [2]
10 - the wrapper and its code paths are now documented in the
11 eselect-init eclass [2] [3]
12
13 You need systemd and sysvinit from the same overlay for it to work.
14 If you intend to use switch between systemd to openrc (and vice
15 versa), make sure to install the rest of the packages in that overlay.
16 At the moment, if you want to switch, you also need to use
17 eselect-settingsd. However, I am planning to drop eselect-settingsd:
18 openrc-settingsd and systemd share the same settingsd dbus interface
19 while they call different executables, systemd initializes its dbus
20 services without relying on dbus activation, so the Exec= part of the
21 service descriptor file is currently set to /bin/false, this rings a
22 bell :D, because it is possible to replace /bin/false with a script
23 that starts the respective services when dbus activation is used
24 (which means that systemd hasn't booted the system). This would make
25 possible to remove the blocker dependency in openrc-settingsd and
26 systemd somehow.
27
28 [1] https://github.com/Sabayon/systemd-love/commit/ced29311348a81a2573b030b1316f1c3a0335c5b
29 [2] https://github.com/Sabayon/systemd-love/commit/9eea3ff713c8fa0391e7b1bfa494d533dc21c0be
30 [3] https://github.com/Sabayon/systemd-love/blob/master/eclass/eselect-init.eclass
31
32 --
33 Fabio Erculiani

Replies

Subject Author
[gentoo-dev] Re: eselect init "Steven J. Long" <slong@××××××××××××××××××.uk>
Re: [gentoo-dev] eselect init William Hubbs <williamh@g.o>