diff options
author | Erik Botö <erik.boto@pelagicore.com> | 2015-06-09 15:33:47 +0200 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2015-06-10 16:14:42 -0400 |
commit | c9622afa32b05019286985fcc5b502be8711c57f (patch) | |
tree | ba57e302976e198f9f1d8ccce8601753063c83ef | |
parent | 1c1be83047035da25a14c28ac1f9453f7fdc67bc (diff) | |
download | meta-virtualization-c9622afa32b05019286985fcc5b502be8711c57f.tar.gz |
lxc: allow multiple init systems in DISTRO_FEATURES
Add handling for distros with both systemd and sysvinit by passing
multiple init systems to configure with --with-init-script=
Signed-off-by: Erik Botö <erik.boto@pelagicore.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
-rw-r--r-- | recipes-containers/lxc/lxc_1.0.7.bb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/recipes-containers/lxc/lxc_1.0.7.bb b/recipes-containers/lxc/lxc_1.0.7.bb index f79ba762..faa31b7d 100644 --- a/recipes-containers/lxc/lxc_1.0.7.bb +++ b/recipes-containers/lxc/lxc_1.0.7.bb | |||
@@ -46,7 +46,9 @@ S = "${WORKDIR}/${BPN}-${PV}" | |||
46 | PTEST_CONF = "${@base_contains('DISTRO_FEATURES', 'ptest', '--enable-tests', '', d)}" | 46 | PTEST_CONF = "${@base_contains('DISTRO_FEATURES', 'ptest', '--enable-tests', '', d)}" |
47 | EXTRA_OECONF += "--with-distro=${DISTRO} ${PTEST_CONF}" | 47 | EXTRA_OECONF += "--with-distro=${DISTRO} ${PTEST_CONF}" |
48 | 48 | ||
49 | EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', '--with-init-script=sysvinit', '--with-init-script=systemd', d)}" | 49 | EXTRA_OECONF += "--with-init-script=\ |
50 | ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'sysvinit,', '', d)}\ | ||
51 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}" | ||
50 | 52 | ||
51 | PACKAGECONFIG ??= "templates \ | 53 | PACKAGECONFIG ??= "templates \ |
52 | ${@base_contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \ | 54 | ${@base_contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \ |