summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-extended/libvirt/libvirt_1.2.17.bb9
1 files changed, 6 insertions, 3 deletions
diff --git a/recipes-extended/libvirt/libvirt_1.2.17.bb b/recipes-extended/libvirt/libvirt_1.2.17.bb
index 28a22bb2..6f269f99 100644
--- a/recipes-extended/libvirt/libvirt_1.2.17.bb
+++ b/recipes-extended/libvirt/libvirt_1.2.17.bb
@@ -107,6 +107,7 @@ FILES_${PN}-libvirtd = " \
107 /usr/lib/sysctl.d/60-libvirtd.conf \ 107 /usr/lib/sysctl.d/60-libvirtd.conf \
108 ${sbindir}/libvirtd \ 108 ${sbindir}/libvirtd \
109 ${systemd_unitdir}/system/* \ 109 ${systemd_unitdir}/system/* \
110 ${@base_contains('DISTRO_FEATURES', 'sysvinit', '', '${libexecdir}/libvirt-guests.sh', d)} \
110 " 111 "
111 112
112FILES_${PN}-virsh = "${bindir}/virsh" 113FILES_${PN}-virsh = "${bindir}/virsh"
@@ -215,9 +216,11 @@ do_install_append() {
215 install -m 0755 ${WORKDIR}/libvirtd.sh ${D}/etc/init.d/libvirtd 216 install -m 0755 ${WORKDIR}/libvirtd.sh ${D}/etc/init.d/libvirtd
216 install -m 0644 ${WORKDIR}/libvirtd.conf ${D}/etc/libvirt/libvirtd.conf 217 install -m 0644 ${WORKDIR}/libvirtd.conf ${D}/etc/libvirt/libvirtd.conf
217 218
218 # This will wind up in the libvirtd package, but will NOT be invoked by default. 219 if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','true','false',d)}; then
219 # 220 # This will wind up in the libvirtd package, but will NOT be invoked by default.
220 mv ${D}/${libexecdir}/libvirt-guests.sh ${D}/${sysconfdir}/init.d 221 #
222 mv ${D}/${libexecdir}/libvirt-guests.sh ${D}/${sysconfdir}/init.d
223 fi
221 224
222 # The /var/run/libvirt directories created by the Makefile 225 # The /var/run/libvirt directories created by the Makefile
223 # are wiped out in volatile, we need to create these at boot. 226 # are wiped out in volatile, we need to create these at boot.