Skip to content

Commit

Permalink
Remove old hack meant to remove stale metadata.
Browse files Browse the repository at this point in the history
There are several such mechanisms being employed elsewhere in blivet
and even in the lvm tools themselves. This should not be needed anymore.
  • Loading branch information
dwlehman committed Feb 1, 2016
1 parent 851a49d commit 74a01d6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions blivet/formats/lvmpv.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,6 @@ def _create(self, **kwargs):

# Consider use of -Z|--zero
# -f|--force or -y|--yes may be required

# lvm has issues with persistence of metadata, so here comes the
# hammer...
# XXX This format doesn't exist yet, so bypass the precondition checking
# for destroy by calling _destroy directly.
DeviceFormat._destroy(self, **kwargs)
blockdev.lvm.pvscan(self.device)
blockdev.lvm.pvcreate(self.device, data_alignment=self.data_alignment)
blockdev.lvm.pvscan(self.device)
Expand Down

0 comments on commit 74a01d6

Please sign in to comment.