Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage/lvm: remove old volume only after successfully cloning new one
In some cases, it may happen that new volume (`self._vid_snap`) does not exists. This is normally an error, but even in such a case, do not remove the only remaining instance of volume (`self.vid`). Instead, rename it temporarily and remove only after new volume is successfully cloned. Fixes QubesOS/qubes-issues#3164
- Loading branch information