Skip to content

Commit

Permalink
Fix dd wipe call
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderlaw committed Mar 7, 2015
1 parent 9f04bc9 commit 9890444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blivet/devices/partition.py
Expand Up @@ -539,7 +539,7 @@ def _wipe(self):
# Erase 1MiB or to end of partition
count = min(int(Size("1 MiB") // bs), part_len)

cmd = ["dd", "if=/dev/zero", "of=%s" % device, "bs=%s" % bs,
cmd = ["dd", "if=/dev/zero", "of=%s" % device, "bs=%d" % int(bs),
"seek=%s" % start, "count=%s" % count]
try:
util.run_program(cmd)
Expand Down

0 comments on commit 9890444

Please sign in to comment.