diff options
-rw-r--r-- | recipes-extended/xen/xen-tools.inc | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/recipes-extended/xen/xen-tools.inc b/recipes-extended/xen/xen-tools.inc index 6bbc8cd8..27972c16 100644 --- a/recipes-extended/xen/xen-tools.inc +++ b/recipes-extended/xen/xen-tools.inc | |||
@@ -807,13 +807,24 @@ do_install() { | |||
807 | done | 807 | done |
808 | fi | 808 | fi |
809 | 809 | ||
810 | # fixup default path to qemu-system-i386 | ||
811 | sed -i 's#\(test -z "$QEMU_XEN" && QEMU_XEN=\).*$#\1"/usr/bin/qemu-system-i386"#' ${D}/etc/init.d/xencommons | ||
812 | |||
813 | if [ -e ${D}${systemd_unitdir}/system/xen-qemu-dom0-disk-backend.service ]; then | 810 | if [ -e ${D}${systemd_unitdir}/system/xen-qemu-dom0-disk-backend.service ]; then |
814 | sed -i 's#ExecStart=.*qemu-system-i386\(.*\)$#ExecStart=/usr/bin/qemu-system-i386\1#' \ | 811 | sed -i 's#ExecStart=.*qemu-system-i386\(.*\)$#ExecStart=/usr/bin/qemu-system-i386\1#' \ |
815 | ${D}${systemd_unitdir}/system/xen-qemu-dom0-disk-backend.service | 812 | ${D}${systemd_unitdir}/system/xen-qemu-dom0-disk-backend.service |
816 | fi | 813 | fi |
814 | |||
815 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | ||
816 | rm -f ${D}/${sysconfdir}/init.d/xencommons | ||
817 | else | ||
818 | # fixup default path to qemu-system-i386 | ||
819 | sed -i 's#\(test -z "$QEMU_XEN" && QEMU_XEN=\).*$#\1"/usr/bin/qemu-system-i386"#' ${D}/etc/init.d/xencommons | ||
820 | |||
821 | # remove the uncondiontally installed systemd service files | ||
822 | rm -f ${D}/${systemd_unitdir}/system/xen-qemu-dom0-disk-backend.service | ||
823 | rm -f ${D}/${systemd_unitdir}/system/xenconsoled.service | ||
824 | rm -f ${D}/${systemd_unitdir}/system/xen-init-dom0.service | ||
825 | rm -f ${D}/${systemd_unitdir}/system/xenstored.service | ||
826 | rm -f ${D}/${systemd_unitdir}/system/var-lib-xenstored.mount | ||
827 | fi | ||
817 | } | 828 | } |
818 | 829 | ||
819 | pkg_postinst:${PN}-volatiles() { | 830 | pkg_postinst:${PN}-volatiles() { |