Recreate VM conf files in the %post of template.rpm

This commit is contained in:
Joanna Rutkowska 2010-09-30 17:28:58 +02:00
parent ac6271546b
commit ab30193104

View File

@ -14,7 +14,8 @@ License: GPL
URL: http://www.qubes-os.org URL: http://www.qubes-os.org
Source: . Source: .
Requires: qubes-core-dom0 xdg-utils Requires: qubes-core-dom0 >= 1.3.8
Requires: xdg-utils
%define _builddir %(pwd) %define _builddir %(pwd)
%define _rpmdir %(pwd)/rpm %define _rpmdir %(pwd)/rpm
@ -92,6 +93,9 @@ if [ "$1" = 1 ] ; then
qvm-add-template --rpm %{template_name} qvm-add-template --rpm %{template_name}
fi fi
echo "--> Recreating VM conf files..."
/usr/lib/qubes/reset_vm_configs.py %template_name}
%preun %preun
if [ "$1" = 0 ] ; then if [ "$1" = 0 ] ; then
# no more packages left # no more packages left