All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ross Burton <ross.burton@intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [RFC PATCH 0/9] hybrid systemd/sysvinit
Date: Mon, 11 Mar 2013 13:07:30 -0700	[thread overview]
Message-ID: <cover.1363031776.git.ross.burton@intel.com> (raw)

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

-- 
1.7.10.4




             reply	other threads:[~2013-03-11 20:24 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-11 20:07 Ross Burton [this message]
2013-03-11 20:07 ` [PATCH 1/9] systemd: merge udev-systemd into udev Ross Burton
2013-03-11 20:07 ` [PATCH 2/9] busybox: add systemd enabling for syslog and klogd Ross Burton
2013-03-11 20:07 ` [PATCH 3/9] systemd: make xz support (compressed journal) optional Ross Burton
2013-03-11 20:07 ` [PATCH 4/9] default-providers: change udev selection logic Ross Burton
2013-03-11 20:07 ` [PATCH 5/9] update-rcd.bbclass: handle both sysvinit and systemd features being present Ross Burton
2013-03-12  7:12   ` Martin Jansa
2013-03-11 20:07 ` [PATCH 6/9] systemd: allow postinsts to run without systemd " Ross Burton
2013-03-12 10:36   ` Enrico Scholz
2013-03-19 11:23     ` Burton, Ross
2013-03-19 12:09       ` Enrico Scholz
2013-03-19 12:11         ` Burton, Ross
2013-03-19 13:00           ` Enrico Scholz
2013-03-19 11:39     ` Burton, Ross
2013-03-19 12:12       ` Enrico Scholz
2013-03-11 20:07 ` [PATCH 7/9] systemd: add udev init script for hybrid sysvinit/systemd usage Ross Burton
2013-03-11 20:07 ` [PATCH 8/9] update-rc.d/systemd: change communication variable name Ross Burton
2013-03-11 20:07 ` [PATCH 9/9] default-distrovars: don't add DISTRO_FEATURES_INITMAN to DISTRO_FEATURES Ross Burton
2013-03-11 21:37 ` [RFC PATCH 0/9] hybrid systemd/sysvinit Burton, Ross
2013-03-11 21:47   ` Otavio Salvador
2013-03-11 21:58     ` Burton, Ross
2013-03-11 22:49     ` Khem Raj
2013-03-11 23:21       ` Burton, Ross
2013-03-12  7:42         ` Koen Kooi
2013-03-12 20:18           ` Burton, Ross
2013-03-12  7:42       ` Koen Kooi
2013-03-12 18:50         ` Richard Purdie
2013-03-13  9:09           ` Koen Kooi
2013-03-13 19:18             ` Richard Purdie
2013-03-13 22:09               ` Martin Jansa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1363031776.git.ross.burton@intel.com \
    --to=ross.burton@intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.