summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/imager/direct.py
diff options
context:
space:
mode:
authorMaciej Borzecki <maciej.borzecki@rndity.com>2016-12-19 12:20:58 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-12-22 08:50:16 +0000
commit1988bae5bfed203ddf889a7def2a49422e5d5e60 (patch)
tree7ea3490a77b1e5cd854480609956a0a489d22339 /scripts/lib/wic/imager/direct.py
parent5903182484276fec4d9ccbe7ad2c859e9588e5ba (diff)
downloadpoky-1988bae5bfed203ddf889a7def2a49422e5d5e60.tar.gz
wic: add --fixed-size wks option
Added new option --fixed-size to wks. The option can be used to indicate the exact size of a partition. The option cannot be added together with --size, in which case an error will be raised. Other options that influence automatic partition size (--extra-space, --overhead-factor), if specifiec along with --fixed-size, will raise an error. If it partition data is larger than the amount of space specified with --fixed-size option wic will raise an error. (From OE-Core rev: fdd217ba874bd480e0180830fe2e6bd54dde19d9) 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>
Diffstat (limited to 'scripts/lib/wic/imager/direct.py')
-rw-r--r--scripts/lib/wic/imager/direct.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/imager/direct.py b/scripts/lib/wic/imager/direct.py
index 2bedef08d6..11ec15e33f 100644
--- a/scripts/lib/wic/imager/direct.py
+++ b/scripts/lib/wic/imager/direct.py
@@ -290,7 +290,7 @@ class DirectImageCreator(BaseImageCreator):
290 self.bootimg_dir, self.kernel_dir, self.native_sysroot) 290 self.bootimg_dir, self.kernel_dir, self.native_sysroot)
291 291
292 292
293 self.__image.add_partition(int(part.size), 293 self.__image.add_partition(part.disk_size,
294 part.disk, 294 part.disk,
295 part.mountpoint, 295 part.mountpoint,
296 part.source_file, 296 part.source_file,