diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-06-27 17:18:10 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-02 23:01:41 +0100 |
commit | c7ffe3785e61f3c57aeeebc34ec573685f0ea6a8 (patch) | |
tree | f7181e1003a735ea2314bc6edc19bb703508b159 /scripts/lib/wic/kickstart | |
parent | e9e860d4dcc73c8e19e0e39180d30c85dc155871 (diff) | |
download | openembedded-core-c7ffe3785e61f3c57aeeebc34ec573685f0ea6a8.tar.gz openembedded-core-c7ffe3785e61f3c57aeeebc34ec573685f0ea6a8.tar.bz2 openembedded-core-c7ffe3785e61f3c57aeeebc34ec573685f0ea6a8.zip |
wic: Add --uuid partition option
Added --uuid option to the configuration of wks parser.
This option specifies partition UUID. The code to process
it is already in place. It was implemented for --use-uuid
option.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Diffstat (limited to 'scripts/lib/wic/kickstart')
-rw-r--r-- | scripts/lib/wic/kickstart/custom_commands/partition.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/lib/wic/kickstart/custom_commands/partition.py b/scripts/lib/wic/kickstart/custom_commands/partition.py index 874b20766d..fea4d6deb4 100644 --- a/scripts/lib/wic/kickstart/custom_commands/partition.py +++ b/scripts/lib/wic/kickstart/custom_commands/partition.py @@ -53,7 +53,7 @@ class Wic_PartData(Mic_PartData): self.extra_space = kwargs.get("extra-space", "10M") self.overhead_factor = kwargs.get("overhead-factor", 1.3) self._use_uuid = False - self.uuid = None + self.uuid = kwargs.get("uuid", None) self.use_uuid = kwargs.get("use-uuid", False) self.source_file = "" self.size = 0 @@ -71,6 +71,8 @@ class Wic_PartData(Mic_PartData): retval += " --no-table" if self.use_uuid: retval += " --use-uuid" + if self.uuid: + retval += " --uuid=%s" % self.uuid retval += " --extra-space=%s" % self.extra_space retval += " --overhead-factor=%f" % self.overhead_factor @@ -491,5 +493,6 @@ class Wic_Partition(Mic_Partition): nargs=1, default=1.3) op.add_option("--use-uuid", dest="use_uuid", action="store_true", default=False) + op.add_option("--uuid") return op |