Autocommit template changes after template shutdown (#96)

This commit is contained in:
Marek Marczykowski 2011-03-18 18:54:14 -04:00
parent dd2cd0dc2b
commit 2b2e09881d

View File

@ -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