dom0: preserve old root-cow - for qvm-revert-template-changes
This commit is contained in:
parent
f1f98d47df
commit
3571a34010
@ -1217,7 +1217,7 @@ class QubesTemplateVm(QubesVm):
|
|||||||
if dry_run:
|
if dry_run:
|
||||||
return
|
return
|
||||||
if os.path.exists (self.rootcow_img):
|
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_cow = open (self.rootcow_img, "w")
|
||||||
f_root = open (self.root_img, "r")
|
f_root = open (self.root_img, "r")
|
||||||
|
Loading…
Reference in New Issue
Block a user