Use a lock LV when starting sysvms since exclusive LV activation has
[invirt/packages/invirt-xen-config.git] / debian / rules
index 090a1f7..a5765c8 100755 (executable)
@@ -3,6 +3,16 @@
 DEB_DIVERT_EXTENSION = .invirt
 
 DEB_DIVERT_FILES_invirt-xen-config += \
 DEB_DIVERT_EXTENSION = .invirt
 
 DEB_DIVERT_FILES_invirt-xen-config += \
-       /etc/xen/qemu-ifup.invirt
+       /etc/xen/qemu-ifup.invirt \
+       /etc/xen/xend-config.sxp.invirt
 
 include /usr/share/cdbs/1/rules/debhelper.mk
 
 include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/config-package.mk
+
+common-build-indep:: debian/xend-config.sxp.invirt.mako
+
+debian/xend-config.sxp.invirt.mako: $(call debian_check_files,/etc/xen/xend-config.sxp)
+       debian/transform_xend-config.sxp.invirt.mako < $< > $@
+
+clean::
+       rm -f debian/xend-config.sxp.invirt.mako