From b2b6ff9dcf8c8b1c01ddf13894b8318becf4a8d0 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Fri, 5 Jun 2015 10:17:08 +0300 Subject: 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 Signed-off-by: Ross Burton --- scripts/lib/wic/kickstart/custom_commands/partition.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scripts') 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 -- cgit v1.2.3