Updated: [rhinstaller/blivet/pulls/32 master] Master services
by dashea
The primary purpose of this patch set is just to remove services infrastructure from blivet devices and formats,
since it is no longer necessary.
Some services functions had been copied from some packages functions which were buggy, so I thought I might as well fix those, too, and any that were buggy like them. There weren't any other similar bugs that I could find, but there were a couple methods that yielded to simplification. I thought I should test changes, so it seemed like a good idea to split out devices_tests.py since it was growing over long.
--
To view this pull request on github, visit https://github.com/rhinstaller/blivet/pull/32
9 years, 3 months
New: [rhinstaller/blivet/pulls/35 master] Fix dd wipe call
by dashea
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
9 years, 3 months