diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-06-05 10:17:08 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-11 23:55:39 +0100 |
commit | b2b6ff9dcf8c8b1c01ddf13894b8318becf4a8d0 (patch) | |
tree | f5aecc659e92020ac57985bd9ea52a9ab3856699 /scripts/lib/wic | |
parent | fcb891a391a34fad15d99edfea6b0f022fc0d1c9 (diff) | |
download | openembedded-core-b2b6ff9dcf8c8b1c01ddf13894b8318becf4a8d0.tar.gz openembedded-core-b2b6ff9dcf8c8b1c01ddf13894b8318becf4a8d0.tar.bz2 openembedded-core-b2b6ff9dcf8c8b1c01ddf13894b8318becf4a8d0.zip |
wic: Add --use-uuid partition option
Added --use-uuid option to the configuration of wks parser.
Processing of this option will be implemented in the following
commits.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/lib/wic')
-rw-r--r-- | scripts/lib/wic/kickstart/custom_commands/partition.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/lib/wic/kickstart/custom_commands/partition.py b/scripts/lib/wic/kickstart/custom_commands/partition.py index 5d033bb562..7d04738faa 100644 --- a/scripts/lib/wic/kickstart/custom_commands/partition.py +++ b/scripts/lib/wic/kickstart/custom_commands/partition.py @@ -51,6 +51,7 @@ class Wic_PartData(Mic_PartData): self.no_table = kwargs.get("no-table", False) self.extra_space = kwargs.get("extra-space", "10M") self.overhead_factor = kwargs.get("overhead-factor", 1.3) + self.use_uuid = kwargs.get("use-uuid", False) self.source_file = "" self.size = 0 @@ -65,6 +66,8 @@ class Wic_PartData(Mic_PartData): retval += " --rootfs-dir=%s" % self.rootfs if self.no_table: retval += " --no-table" + if self.use_uuid: + retval += " --use-uuid" retval += " --extra-space=%d" % self.extra_space retval += " --overhead-factor=%f" % self.overhead_factor @@ -561,4 +564,7 @@ class Wic_Partition(Mic_Partition): op.add_option("--overhead-factor", dest="overhead_factor", action="callback", callback=overhead_cb, type="float", nargs=1, default=1.3) + op.add_option("--use-uuid", dest="use_uuid", action="store_true", + default=False) + return op |