lxc: allow multiple init systems in DISTRO_FEATURES
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=
Signed-off-by Erik Botö <[email protected]>
--- 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
@@ -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
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
Signed-off-by Erik Botö <[email protected]>--- 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@@ -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"