Browse Source

storage/file: delete -cow.img.old on volume remove()

Rusty Bird 3 years ago
parent
commit
5d2fe7643c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      qubes/storage/file.py

+ 1 - 0
qubes/storage/file.py

@@ -218,6 +218,7 @@ class FileVolume(qubes.storage.Volume):
             _remove_if_exists(self.path)
         if self.snap_on_start or self.save_on_stop:
             _remove_if_exists(self.path_cow)
+            _remove_if_exists(self.path_cow + '.old')
 
     def is_outdated(self):
         return False  # avoid spamming the log with NotImplementedError