From 064629b63a96dc06a03a481b2dfef850e5814c66 Mon Sep 17 00:00:00 2001 From: Bahtiar `kalkin-` Gadimov Date: Thu, 21 Jul 2016 22:56:29 +0200 Subject: [PATCH] Fix qubes.lvm _reset --- qubes/storage/lvm.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qubes/storage/lvm.py b/qubes/storage/lvm.py index 9f2949cd..5bb09107 100644 --- a/qubes/storage/lvm.py +++ b/qubes/storage/lvm.py @@ -190,7 +190,11 @@ class ThinPool(qubes.storage.Pool): return volume def _reset(self, volume): - self.remove(volume) + try: + self.remove(volume) + except qubes.storage.StoragePoolException: + pass + self.create(volume) def setup(self):