Correctly calculate the lists of both the sysvms to startup and the
[invirt/packages/invirt-xen-config.git] / debian / invirt-xen-config.init
index 3b76a54..567d7d2 100755 (executable)
@@ -13,8 +13,10 @@ PACKAGE=invirt-xen-config
 NAME="$PACKAGE"
 DESC="Invirt Xen host"
 PARENTPACKAGE=xend
-SYSVMS=(s_master s_remote s_console)
-GEN_FILES=(/etc/xen/xend-config.sxp.invirt "${SYSVMS[@]/#//etc/xen/sysvms/}")
+SYSVM_TEMPLATES=(/etc/xen/sysvms/s_*.mako)
+SYSVM_FILES=("${SYSVM_TEMPLATES[@]/.mako/}")
+SYSVMS=("${SYSVM_FILES[@]/#\/etc\/xen\/sysvms\/}")
+GEN_FILES=(/etc/xen/xend-config.sxp.invirt "${SYSVM_FILES[@]}")
 
 dpkg -s "$PACKAGE" >/dev/null 2>/dev/null || exit 0