Author: waldi Date: Sun Apr 22 21:43:10 2012 New Revision: 995 Log: debian/xen-utils-common.xendomains.init: Show output in case of creation failure. Modified: trunk/xen/debian/xen-utils-common.xendomains.init Modified: trunk/xen/debian/xen-utils-common.xendomains.init =============================================================================--- trunk/xen/debian/xen-utils-common.xendomains.init Sun Apr 22 21:40:17 2012 (r994) +++ trunk/xen/debian/xen-utils-common.xendomains.init Sun Apr 22 21:43:10 2012 (r995) @@ -87,6 +87,7 @@ *) domains[$name]=''failed'' log_action_end_msg 1 + echo "$out" ;; esac fi @@ -105,7 +106,15 @@ log_action_end_msg 1 "restore failed" else out=$(xen create --quiet --defconfig "$file" 2>&1 1>/dev/null) - log_action_end_msg $? + case "$?" in + 0) + log_action_end_msg 0 + ;; + *) + log_action_end_msg 1 + echo "$out" + ;; + esac fi done }