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

This commit is contained in:
Rusty Bird 2021-02-15 14:10:47 +00:00
parent c7d74f2a63
commit 5d2fe7643c
No known key found for this signature in database
GPG Key ID: 469D78F47AAF2ADF

View File

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