Skip to contentSkip to conversation

lxc: allow multiple init systems in DISTRO_FEATURES

PATCH In review Erik Botö 2 participants 2 messages Jun 9, 2015 – Jun 10, 2015

lore
Share & tools
lore

Erik Botö

author
#0 lore raw

PATCH 1/1 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=

---
 recipes-containers/lxc/lxc_1.0.7.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
recipes-containers/lxc/lxc_1.0.7.bb +3 -1
index f79ba76..faa31b7 100644
@@ -46,7 +46,9 @@ S = "${WORKDIR}/${BPN}-${PV}"
 PTEST_CONF = "${@base_contains('DISTRO_FEATURES', 'ptest', '--enable-tests', '', d)}"
 EXTRA_OECONF += "--with-distro=${DISTRO} ${PTEST_CONF}"
 
-EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', '--with-init-script=sysvinit', '--with-init-script=systemd', d)}"
+EXTRA_OECONF += "--with-init-script=\
+${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'sysvinit,', '', d)}\
+${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
 
 PACKAGECONFIG ??= "templates \
     ${@base_contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \
Signature · 1 line
1.9.1
#1 lore raw
Quoted 2 lines · Erik Botö

Add handling for distros with both systemd and sysvinit by passing multiple init systems to configure with --with-init-script=

I've never had much luck with multiple init systems .. but no issues in merging this change. It is now on the master branch.

Cheers,

Bruce

Quoted 29 lines
---
 recipes-containers/lxc/lxc_1.0.7.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
recipes-containers/lxc/lxc_1.0.7.bb +3 -2
index f79ba76..faa31b7 100644
@@ -46,7 +46,9 @@ S = "${WORKDIR}/${BPN}-${PV}"
 PTEST_CONF = "${@base_contains('DISTRO_FEATURES', 'ptest', '--enable-tests', '', d)}"
 EXTRA_OECONF += "--with-distro=${DISTRO} ${PTEST_CONF}"
 
-EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', '--with-init-script=sysvinit', '--with-init-script=systemd', d)}"
+EXTRA_OECONF += "--with-init-script=\
+${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'sysvinit,', '', d)}\
+${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
 
 PACKAGECONFIG ??= "templates \
     ${@base_contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \
--

1.9.1

--
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Signature · 2 lines
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"