[master|kirkstone][PATCH 2/2] cloud-init: install sysvinit initscripts


Jeremy Puhlman
 

The redhat versions work with out modification.

Signed-off-by: Jeremy A. Puhlman <jpuhlman@...>
---
recipes-extended/cloud-init/cloud-init_21.4.bb | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/recipes-extended/cloud-init/cloud-init_21.4.bb b/recipes-extended/cloud-init/cloud-init_21.4.bb
index 9c2dae7..5cb6227 100644
--- a/recipes-extended/cloud-init/cloud-init_21.4.bb
+++ b/recipes-extended/cloud-init/cloud-init_21.4.bb
@@ -19,6 +19,11 @@ DISTUTILS_INSTALL_ARGS:append = " ${@bb.utils.contains('DISTRO_FEATURES', 'syste
do_install:append() {
ln -s ${libdir}/${BPN}/uncloud-init ${D}${sysconfdir}/cloud/uncloud-init
ln -s ${libdir}/${BPN}/write-ssh-key-fingerprints ${D}${sysconfdir}/cloud/write-ssh-key-fingerprints
+ if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
+ install -m 755 -d ${D}${sysconfdir}/init.d/
+ install -m 755 ${S}/sysvinit/redhat/* ${D}${sysconfdir}/init.d/
+ fi
+
}

inherit pkgconfig
--
2.35.3