poky/scripts/lib/wic
Maciej Borzecki b92de9a6db wic: use partition size when creating empty partition files
It seems that prepare_empty_partition_ext() and
prepare_empty_partition_btrfs() got broken in commit
c8669749e3, thus one could observe the
following backtrace:

Backtrace:
  File "<snip>/poky/scripts/lib/wic/plugins/imager/direct_plugin.py", line 93, in do_create
    creator.create()
  File "<snip>/poky/scripts/lib/wic/imager/baseimager.py", line 159, in create
    self._create()
  File "<snip>/poky/scripts/lib/wic/imager/direct.py", line 290, in _create
    self.bootimg_dir, self.kernel_dir, self.native_sysroot)
  File "<snip>/poky/scripts/lib/wic/partition.py", line 146, in prepare
    method(rootfs, oe_builddir, native_sysroot)
  File "<snip>/poky/scripts/lib/wic/partition.py", line 325, in prepare_empty_partition_ext
    os.ftruncate(sparse.fileno(), rootfs_size * 1024)
NameError: name 'rootfs_size' is not defined

(From OE-Core rev: 0bf686739a5e8a1193f5be5aa60afbf2ea1e5074)

Signed-off-by: Maciej Borzecki <maciej.borzecki@rndity.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-11-15 15:19:55 +00:00
..
canned-wks systemd-bootdisk.wks: use PARTUUID 2016-11-15 15:19:54 +00:00
config wic: get rid of scripts/lib/image 2015-09-03 12:43:25 +01:00
imager wic: call os.ftruncate instead of running truncate 2016-11-06 23:35:36 +00:00
plugins wic: make sure that partition size is always an integer in internal processing 2016-11-15 15:19:55 +00:00
utils wic: rewrite MBR disk identifier 2016-10-07 16:43:58 +01:00
__init__.py wic: Rename /mic to /wic 2014-08-11 10:53:12 +01:00
__version__.py wic: Bump the version to 2.0 2014-08-11 10:53:12 +01:00
conf.py wic: use items instead of iteritems 2016-05-14 23:05:13 +01:00
creator.py wic: implement --bmap option 2016-05-19 09:05:19 +01:00
engine.py wic: implement --bmap option 2016-05-19 09:05:19 +01:00
filemap.py wic: use next builtin instead of .next method 2016-05-14 23:05:14 +01:00
help.py wic: encode help text 2016-06-02 08:24:01 +01:00
ksparser.py wic: mountpoint is an optional argument 2016-07-20 10:28:47 +01:00
msger.py wic: use next builtin instead of .next method 2016-05-14 23:05:14 +01:00
partition.py wic: use partition size when creating empty partition files 2016-11-15 15:19:55 +00:00
plugin.py wic: fix path parsing, use last occurrence 2016-05-20 10:20:55 +01:00
pluginbase.py wic: refactor pluginbase 2016-05-14 23:05:13 +01:00
test wic: Rename /mic to /wic 2014-08-11 10:53:12 +01:00