summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/kickstart
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-06-05 10:17:08 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-11 23:59:11 +0100
commit853518523538b274b83e1b7dba2f51a600aa3b02 (patch)
treed06fabd9491aeee3fda1c77d2433fe389f0a8476 /scripts/lib/wic/kickstart
parent0e364973a43b1e117367c7187d9d1cd6caaa0f70 (diff)
downloadpoky-853518523538b274b83e1b7dba2f51a600aa3b02.tar.gz
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>
Diffstat (limited to 'scripts/lib/wic/kickstart')
-rw-r--r--scripts/lib/wic/kickstart/custom_commands/partition.py6
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):
51 self.no_table = kwargs.get("no-table", False) 51 self.no_table = kwargs.get("no-table", False)
52 self.extra_space = kwargs.get("extra-space", "10M") 52 self.extra_space = kwargs.get("extra-space", "10M")
53 self.overhead_factor = kwargs.get("overhead-factor", 1.3) 53 self.overhead_factor = kwargs.get("overhead-factor", 1.3)
54 self.use_uuid = kwargs.get("use-uuid", False)
54 self.source_file = "" 55 self.source_file = ""
55 self.size = 0 56 self.size = 0
56 57
@@ -65,6 +66,8 @@ class Wic_PartData(Mic_PartData):
65 retval += " --rootfs-dir=%s" % self.rootfs 66 retval += " --rootfs-dir=%s" % self.rootfs
66 if self.no_table: 67 if self.no_table:
67 retval += " --no-table" 68 retval += " --no-table"
69 if self.use_uuid:
70 retval += " --use-uuid"
68 retval += " --extra-space=%d" % self.extra_space 71 retval += " --extra-space=%d" % self.extra_space
69 retval += " --overhead-factor=%f" % self.overhead_factor 72 retval += " --overhead-factor=%f" % self.overhead_factor
70 73
@@ -561,4 +564,7 @@ class Wic_Partition(Mic_Partition):
561 op.add_option("--overhead-factor", dest="overhead_factor", 564 op.add_option("--overhead-factor", dest="overhead_factor",
562 action="callback", callback=overhead_cb, type="float", 565 action="callback", callback=overhead_cb, type="float",
563 nargs=1, default=1.3) 566 nargs=1, default=1.3)
567 op.add_option("--use-uuid", dest="use_uuid", action="store_true",
568 default=False)
569
564 return op 570 return op