Skip to content

Commit

Permalink
Use wipefs to remove disklabels.
Browse files Browse the repository at this point in the history
libparted's clobber does not remove a protective MBR, which makes it
useless for our purposes.
  • Loading branch information
dwlehman committed Feb 1, 2016
1 parent e8363a4 commit 90b18e7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions blivet/formats/disklabel.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,6 @@ def _create(self, **kwargs):
# other problems.
self.commit()

def _destroy(self, **kwargs):
""" Wipe the disklabel from the device. """
log_method_call(self, device=self.device,
type=self.type, status=self.status)
self.parted_device.clobber()

def commit(self):
""" Commit the current partition table to disk and notify the OS. """
log_method_call(self, device=self.device,
Expand Down

0 comments on commit 90b18e7

Please sign in to comment.