aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Puhlman <jpuhlman@mvista.com>2022-06-21 18:00:11 -0400
committerBruce Ashfield <bruce.ashfield@gmail.com>2022-06-27 23:38:41 -0400
commit16d6581fe4d09d7ea7e1f5b4149507b964fe3dd4 (patch)
treefb506ede0c6745d14f74f9b18375e1b4ab5795df
parent466db3796a831f06e5cb5ecb7033510121175513 (diff)
downloadmeta-virtualization-kirkstone.tar.gz
meta-virtualization-kirkstone.tar.bz2
meta-virtualization-kirkstone.zip
cloud-init: install sysvinit initscriptskirkstone
The redhat versions work with out modification. Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
-rw-r--r--recipes-extended/cloud-init/cloud-init_21.4.bb5
1 files changed, 5 insertions, 0 deletions
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