From 9e60987e405df9c00cb490a62a55d00676ad4a32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A9ri=20Le=20Bouder?= Date: Wed, 16 Apr 2014 12:06:37 +0200 Subject: [PATCH] debian: add systemd support This patch adds a debian-systemd element to get systemd support with Debian. A backport of systemd is used on Debian Wheezy. Change-Id: I095c81b2c32844fccf940c97b79054923c25b8c2 --- elements/debian-systemd/README.md | 2 ++ elements/debian-systemd/element-deps | 1 + elements/debian-systemd/root.d/05-debian-systemd | 5 +++++ 3 files changed, 8 insertions(+) create mode 100644 elements/debian-systemd/README.md create mode 100644 elements/debian-systemd/element-deps create mode 100755 elements/debian-systemd/root.d/05-debian-systemd diff --git a/elements/debian-systemd/README.md b/elements/debian-systemd/README.md new file mode 100644 index 000000000..13ff9cee4 --- /dev/null +++ b/elements/debian-systemd/README.md @@ -0,0 +1,2 @@ +You may want to use `systemd` instead of the classic sysv init system. +In this case, include this element in your element list. diff --git a/elements/debian-systemd/element-deps b/elements/debian-systemd/element-deps new file mode 100644 index 000000000..2dee1753e --- /dev/null +++ b/elements/debian-systemd/element-deps @@ -0,0 +1 @@ +debian diff --git a/elements/debian-systemd/root.d/05-debian-systemd b/elements/debian-systemd/root.d/05-debian-systemd new file mode 100755 index 000000000..0a37a3067 --- /dev/null +++ b/elements/debian-systemd/root.d/05-debian-systemd @@ -0,0 +1,5 @@ +#!/bin/bash +set -eux +cat > ${TARGET_ROOT}/.extra_settings << EOF +DIB_DEBIAN_ALT_INIT_PACKAGE=systemd-sysv +EOF