Skip to content

RFC hybrid systemd/sysvinit

Ross Burton openembedded-core 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest9 patches 20 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9systemd: merge udev-systemd into udevmeta/recipes-core/systemd/systemd_197.bb+4 -50 replies
2/9busybox: add systemd enabling for syslog and klogdmeta/recipes-core/busybox/busybox.inc meta/recipes-core/busybox/busybox_1.20.2.bb meta/recipes-core/busybox/files/busybox-klogd.service.in +1 more+39 -10 replies
3/9systemd: make xz support (compressed journal) optionalmeta/recipes-core/systemd/systemd_197.bb+4 -20 replies
4/9default-providers: change udev selection logicmeta/conf/distro/include/default-providers.inc+1 -10 replies
5/9update-rcd.bbclass: handle both sysvinit and systemd features being presentmeta/classes/update-rc.d.bbclass meta/recipes-core/packagegroups/packagegroup-core-boot.bb+8 -51 reply
6/9systemd: allow postinsts to run without systemd being presentmeta/classes/systemd.bbclass+11 -167 replies
7/9systemd: add udev init script for hybrid sysvinit/systemd usagemeta/recipes-core/systemd/systemd/init meta/recipes-core/systemd/systemd_197.bb+113 -10 replies
8/9update-rc.d/systemd: change communication variable namemeta/classes/systemd.bbclass meta/classes/update-rc.d.bbclass+9 -90 replies
9/9default-distrovars: don't add DISTRO_FEATURES_INITMAN to DISTRO_FEATURESmeta/conf/distro/include/default-distrovars.inc+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/9] hybrid systemd/sysvinit

Hi,

This series allows you to have both sysvinit and systemd in DISTRO_FEATURES. Packages will be built with both init scripts, and some daemons will be linking to libsystemd-daemon so that will be pulled in to sysvinit images.

The init manager used at image construction time is DISTRO_FEATURES_INITMAN (maybe this should be renamed) and that value is also backfilled into DISTRO_FEATURES.

The key change is that systemd.bbclass only recommends systemd, and will check that there's a systemctl binary before calling it - this allows packages built like this to be installed on a systemd-free image.

This is very much a RFC, I've done some basic testing but between illness and having to prepare for a presentation at this conference I've not been able to test it as much as I'd hoped. Review and testing very much appreciated.

Some metrics: adding the systemd feature but still using sysvinit when building the image results in just libsystemd-daemon and the service files being added to the image, with a negliable size increase.

Ross

The following changes since commit 1fd5b960dd36458b7b829f9094df18cd8b5ac201:

systemd: remove libsystemd-daemon linkage in libudev (2013-03-11 10:59:54 -0700)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib ross/systemd

for you to fetch changes up to ba7c15ae47ace8a15d97b4c58d2aa5b2ebb4c47a:

default-distrovars: don't add DISTRO_FEATURES_INITMAN to DISTRO_FEATURES (2013-03-11 12:17:49 -0700)

----------------------------------------------------------------
Radu Moisan (1):
busybox: add systemd enabling for syslog and klogd

Ross Burton (8):
systemd: merge udev-systemd into udev
systemd: make xz support (compressed journal) optional
default-providers: change udev selection logic update-rcd.bbclass: handle both sysvinit and systemd features being present
systemd: allow postinsts to run without systemd being present
systemd: add udev init script for hybrid sysvinit/systemd usage update-rc.d/systemd: change communication variable name
default-distrovars: don't add DISTRO_FEATURES_INITMAN to DISTRO_FEATURES

 meta/classes/systemd.bbclass                       |   37 ++++---
 meta/classes/update-rc.d.bbclass                   |    7 +-
 meta/conf/distro/include/default-distrovars.inc    |    2 +-
 meta/conf/distro/include/default-providers.inc     |    2 +-
 meta/recipes-core/busybox/busybox.inc              |   17 +++-
 meta/recipes-core/busybox/busybox_1.20.2.bb        |    2 +
 .../busybox/files/busybox-klogd.service.in         |    8 ++
 .../busybox/files/busybox-syslog.service.in        |   13 +++
 .../packagegroups/packagegroup-core-boot.bb        |    4 +-
 meta/recipes-core/systemd/systemd/init             |  101 ++++++++++++++++++++
 meta/recipes-core/systemd/systemd_197.bb           |   26 +++--
 11 files changed, 184 insertions(+), 35 deletions(-)
 create mode 100644 meta/recipes-core/busybox/files/busybox-klogd.service.in
 create mode 100644 meta/recipes-core/busybox/files/busybox-syslog.service.in
 create mode 100644 meta/recipes-core/systemd/systemd/init

Radu Moisan (1):
busybox: add systemd enabling for syslog and klogd

Ross Burton (8):
systemd: merge udev-systemd into udev
systemd: make xz support (compressed journal) optional
default-providers: change udev selection logic update-rcd.bbclass: handle both sysvinit and systemd features being
present
systemd: allow postinsts to run without systemd being present
systemd: add udev init script for hybrid sysvinit/systemd usage update-rc.d/systemd: change communication variable name
default-distrovars: don't add DISTRO_FEATURES_INITMAN to
DISTRO_FEATURES

 meta/classes/systemd.bbclass                       |   37 ++++---
 meta/classes/update-rc.d.bbclass                   |    7 +-
 meta/conf/distro/include/default-distrovars.inc    |    2 +-
 meta/conf/distro/include/default-providers.inc     |    2 +-
 meta/recipes-core/busybox/busybox.inc              |   17 +++-
 meta/recipes-core/busybox/busybox_1.20.2.bb        |    2 +
 .../busybox/files/busybox-klogd.service.in         |    8 ++
 .../busybox/files/busybox-syslog.service.in        |   13 +++
 .../packagegroups/packagegroup-core-boot.bb        |    4 +-
 meta/recipes-core/systemd/systemd/init             |  101 ++++++++++++++++++++
 meta/recipes-core/systemd/systemd_197.bb           |   26 +++--
 11 files changed, 184 insertions(+), 35 deletions(-)
 create mode 100644 meta/recipes-core/busybox/files/busybox-klogd.service.in
 create mode 100644 meta/recipes-core/busybox/files/busybox-syslog.service.in
 create mode 100644 meta/recipes-core/systemd/systemd/init
Signature · 1 line
1.7.10.4