New: [rhinstaller/blivet/pulls/35 master] Fix dd wipe call

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


When running test script:

```python
b = blivet.Blivet()
b.reset()
disk = b.devicetree.getDeviceByName('sda')
part = b.newPartition(parents=[disk], size=10*1024*1024, grow=False)
action = blivet.deviceaction.ActionCreateDevice(part)
b.devicetree.registerAction(action)
blivet.partitioning.doPartitioning(storage=b)
b.devicetree.processActions()
```
I see in the log:

INFO:program:Running... dd if=/dev/zero of=/dev/sda bs=512 Б seek=22022144 count=2048
INFO:program:stderr:
INFO:program:dd: invalid number '512 \320\221'
DEBUG:program:Return code: 1

Where 'Б' is first letter in Russian 'Байт' (Bytes).
It seems, blivet should pass sector size as a number, not as a human-readable string.

BTW, result code is not checked so you can see the error only when increasing log verbosity.

-- 
To view this pull request on github, visit https://github.com/rhinstaller/blivet/pull/35


More information about the anaconda-patches mailing list