Revision 6f319b6a image_creator/disk.py
b/image_creator/disk.py | ||
---|---|---|
275 | 275 |
self.g.e2fsck_f(part_dev) |
276 | 276 |
self.g.resize2fs_M(part_dev) |
277 | 277 |
|
278 |
output = self.g.tune2fs_l(part_dev)
|
|
278 |
out = self.g.tune2fs_l(part_dev) |
|
279 | 279 |
block_size = int( |
280 |
filter(lambda x: x[0] == 'Block size', output)[0][1])
|
|
280 |
filter(lambda x: x[0] == 'Block size', out)[0][1]) |
|
281 | 281 |
block_cnt = int( |
282 |
filter(lambda x: x[0] == 'Block count', output)[0][1])
|
|
282 |
filter(lambda x: x[0] == 'Block count', out)[0][1]) |
|
283 | 283 |
|
284 | 284 |
sector_size = self.g.blockdev_getss(dev) |
285 | 285 |
|
Also available in: Unified diff