mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
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. (From OE-Core rev: b2b6ff9dcf8c8b1c01ddf13894b8318becf4a8d0) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
0e364973a4
commit
8535185235
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user