diff options
Diffstat (limited to 'scripts/lib/wic')
-rw-r--r-- | scripts/lib/wic/kickstart/custom_commands/partition.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/lib/wic/kickstart/custom_commands/partition.py b/scripts/lib/wic/kickstart/custom_commands/partition.py index 874b20766d..fea4d6deb4 100644 --- a/scripts/lib/wic/kickstart/custom_commands/partition.py +++ b/scripts/lib/wic/kickstart/custom_commands/partition.py | |||
@@ -53,7 +53,7 @@ class Wic_PartData(Mic_PartData): | |||
53 | self.extra_space = kwargs.get("extra-space", "10M") | 53 | self.extra_space = kwargs.get("extra-space", "10M") |
54 | self.overhead_factor = kwargs.get("overhead-factor", 1.3) | 54 | self.overhead_factor = kwargs.get("overhead-factor", 1.3) |
55 | self._use_uuid = False | 55 | self._use_uuid = False |
56 | self.uuid = None | 56 | self.uuid = kwargs.get("uuid", None) |
57 | self.use_uuid = kwargs.get("use-uuid", False) | 57 | self.use_uuid = kwargs.get("use-uuid", False) |
58 | self.source_file = "" | 58 | self.source_file = "" |
59 | self.size = 0 | 59 | self.size = 0 |
@@ -71,6 +71,8 @@ class Wic_PartData(Mic_PartData): | |||
71 | retval += " --no-table" | 71 | retval += " --no-table" |
72 | if self.use_uuid: | 72 | if self.use_uuid: |
73 | retval += " --use-uuid" | 73 | retval += " --use-uuid" |
74 | if self.uuid: | ||
75 | retval += " --uuid=%s" % self.uuid | ||
74 | retval += " --extra-space=%s" % self.extra_space | 76 | retval += " --extra-space=%s" % self.extra_space |
75 | retval += " --overhead-factor=%f" % self.overhead_factor | 77 | retval += " --overhead-factor=%f" % self.overhead_factor |
76 | 78 | ||
@@ -491,5 +493,6 @@ class Wic_Partition(Mic_Partition): | |||
491 | nargs=1, default=1.3) | 493 | nargs=1, default=1.3) |
492 | op.add_option("--use-uuid", dest="use_uuid", action="store_true", | 494 | op.add_option("--use-uuid", dest="use_uuid", action="store_true", |
493 | default=False) | 495 | default=False) |
496 | op.add_option("--uuid") | ||
494 | 497 | ||
495 | return op | 498 | return op |