summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/help.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/help.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/help.py')
-rw-r--r--scripts/lib/wic/help.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/scripts/lib/wic/help.py b/scripts/lib/wic/help.py
index e5347ec4b7..daa11bf489 100644
--- a/scripts/lib/wic/help.py
+++ b/scripts/lib/wic/help.py
@@ -646,6 +646,12 @@ DESCRIPTION
646 not specified, the size is in MB. 646 not specified, the size is in MB.
647 You do not need this option if you use --source. 647 You do not need this option if you use --source.
648 648
649 --fixed-size: Exact partition size. Value format is the same
650 as for --size option. This option cannot be
651 specified along with --size. If partition data
652 is larger than --fixed-size and error will be
653 raised when assembling disk image.
654
649 --source: This option is a wic-specific option that names the 655 --source: This option is a wic-specific option that names the
650 source of the data that will populate the 656 source of the data that will populate the
651 partition. The most common value for this option 657 partition. The most common value for this option
@@ -719,13 +725,15 @@ DESCRIPTION
719 space after the space filled by the content 725 space after the space filled by the content
720 of the partition. The final size can go 726 of the partition. The final size can go
721 beyond the size specified by --size. 727 beyond the size specified by --size.
722 By default, 10MB. 728 By default, 10MB. This option cannot be used
729 with --fixed-size option.
723 730
724 --overhead-factor: This option is specific to wic. The 731 --overhead-factor: This option is specific to wic. The
725 size of the partition is multiplied by 732 size of the partition is multiplied by
726 this factor. It has to be greater than or 733 this factor. It has to be greater than or
727 equal to 1. 734 equal to 1. The default value is 1.3.
728 The default value is 1.3. 735 This option cannot be used with --fixed-size
736 option.
729 737
730 --part-type: This option is specific to wic. It specifies partition 738 --part-type: This option is specific to wic. It specifies partition
731 type GUID for GPT partitions. 739 type GUID for GPT partitions.