summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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