From 3571a34010d0f74ea02c63531c7f1da1a9205e38 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Thu, 9 Jun 2011 14:22:22 +0200 Subject: [PATCH] dom0: preserve old root-cow - for qvm-revert-template-changes --- dom0/qvm-core/qubes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom0/qvm-core/qubes.py b/dom0/qvm-core/qubes.py index 56208d6f..594eb27c 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -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")