From 2b2e09881db371a67942687201bfa5676f9a9fa3 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Fri, 18 Mar 2011 18:54:14 -0400 Subject: [PATCH] Autocommit template changes after template shutdown (#96) --- common/block-snapshot | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/block-snapshot b/common/block-snapshot index e787a01..14752da 100755 --- a/common/block-snapshot +++ b/common/block-snapshot @@ -174,6 +174,12 @@ case "$command" in dmsetup remove $snap fi done + # Commit template changes + domain=$(xenstore_read "$XENBUS_PATH/domain") + if [ "$domain" ]; then + # Dont stop on errors + /usr/bin/qvm-template-commit "$domain" || true + fi fi if [ -e $node ]; then