storage/lvm: don't fail on removing already removed volumes
This may happen when removing not fully created VM. QubesOS/qubes-issues#2256
This commit is contained in:
parent
400e92b25a
commit
37dbf29bc1
@ -160,6 +160,8 @@ class ThinPool(qubes.storage.Pool):
|
||||
cmd = ['remove', volume._vid_snap]
|
||||
qubes_lvm(cmd, self.log)
|
||||
|
||||
if not os.path.exists(volume.path):
|
||||
return
|
||||
cmd = ['remove', volume.vid]
|
||||
qubes_lvm(cmd, self.log)
|
||||
reset_cache()
|
||||
|
Loading…
Reference in New Issue
Block a user