[master 1/1] Fix dd wipe call

alexanderlaw installerbot-noreply at redhat.com
Sat Mar 7 11:26:00 UTC 2015


From: Alexander Lakhin <exclusion at gmail.com>

---
 blivet/devices/partition.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/blivet/devices/partition.py b/blivet/devices/partition.py
index 504d7e1..5cccf4e 100644
--- a/blivet/devices/partition.py
+++ b/blivet/devices/partition.py
@@ -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)


-- 
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/9890444d1b410efc87e4aae28a65a388d1e3ce64


More information about the anaconda-patches mailing list