Skip to content

Commit

Permalink
lvutil: use wipefs not dd to clear existing signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
ydirson committed Jul 5, 2023
1 parent a82ff6c commit b8d4a9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,10 @@ def zeroOut(path, fromByte, bytes):
return True


def wipe(blockdev):
"Wipe filesystem signatures from `blockdev`"


def match_rootdev(s):
regex = re.compile("^PRIMARY_DISK")
return regex.search(s, 0)
Expand Down

0 comments on commit b8d4a9a

Please sign in to comment.