diff options
author | Maciej Borzecki <maciej.borzecki@rndity.com> | 2016-12-19 12:20:58 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-22 08:50:16 +0000 |
commit | 1988bae5bfed203ddf889a7def2a49422e5d5e60 (patch) | |
tree | 7ea3490a77b1e5cd854480609956a0a489d22339 /scripts/lib/wic/utils | |
parent | 5903182484276fec4d9ccbe7ad2c859e9588e5ba (diff) | |
download | poky-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/utils')
-rw-r--r-- | scripts/lib/wic/utils/partitionedfs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py index 9ea4a30cbb..68301f0b47 100644 --- a/scripts/lib/wic/utils/partitionedfs.py +++ b/scripts/lib/wic/utils/partitionedfs.py | |||
@@ -210,7 +210,7 @@ class Image(): | |||
210 | msger.debug("Assigned %s to %s%d, sectors range %d-%d size %d " | 210 | msger.debug("Assigned %s to %s%d, sectors range %d-%d size %d " |
211 | "sectors (%d bytes)." \ | 211 | "sectors (%d bytes)." \ |
212 | % (part['mountpoint'], part['disk_name'], part['num'], | 212 | % (part['mountpoint'], part['disk_name'], part['num'], |
213 | part['start'], part['start'] + part['size'] - 1, | 213 | part['start'], disk['offset'] - 1, |
214 | part['size'], part['size'] * self.sector_size)) | 214 | part['size'], part['size'] * self.sector_size)) |
215 | 215 | ||
216 | # Once all the partitions have been layed out, we can calculate the | 216 | # Once all the partitions have been layed out, we can calculate the |