dom0: preserve old root-cow - for qvm-revert-template-changes

This commit is contained in:
Marek Marczykowski 2011-06-09 14:22:22 +02:00
parent f1f98d47df
commit 3571a34010

View File

@ -1217,7 +1217,7 @@ class QubesTemplateVm(QubesVm):
if dry_run:
return
if os.path.exists (self.rootcow_img):
os.remove (self.rootcow_img)
os.rename (self.rootcow_img, self.rootcow_img + '.old')
f_cow = open (self.rootcow_img, "w")
f_root = open (self.root_img, "r")