From ab30193104c986cd50c90a61e64b62df26c2532f Mon Sep 17 00:00:00 2001 From: Joanna Rutkowska Date: Thu, 30 Sep 2010 17:28:58 +0200 Subject: [PATCH] Recreate VM conf files in the %post of template.rpm --- templates.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates.spec b/templates.spec index 1796a76..2c11ece 100644 --- a/templates.spec +++ b/templates.spec @@ -14,7 +14,8 @@ License: GPL URL: http://www.qubes-os.org Source: . -Requires: qubes-core-dom0 xdg-utils +Requires: qubes-core-dom0 >= 1.3.8 +Requires: xdg-utils %define _builddir %(pwd) %define _rpmdir %(pwd)/rpm @@ -92,6 +93,9 @@ if [ "$1" = 1 ] ; then qvm-add-template --rpm %{template_name} fi +echo "--> Recreating VM conf files..." +/usr/lib/qubes/reset_vm_configs.py %template_name} + %preun if [ "$1" = 0 ] ; then # no more packages left