summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/lib/mic/kickstart/custom_commands/partition.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/lib/mic/kickstart/custom_commands/partition.py b/scripts/lib/mic/kickstart/custom_commands/partition.py
index 8973edc110..887195fa60 100644
--- a/scripts/lib/mic/kickstart/custom_commands/partition.py
+++ b/scripts/lib/mic/kickstart/custom_commands/partition.py
@@ -45,6 +45,7 @@ class Wic_PartData(Mic_PartData):
45 Mic_PartData.__init__(self, *args, **kwargs) 45 Mic_PartData.__init__(self, *args, **kwargs)
46 self.deleteRemovedAttrs() 46 self.deleteRemovedAttrs()
47 self.source = kwargs.get("source", None) 47 self.source = kwargs.get("source", None)
48 self.rootfs = kwargs.get("rootfs-dir", None)
48 self.source_file = "" 49 self.source_file = ""
49 self.size = 0 50 self.size = 0
50 51
@@ -53,6 +54,8 @@ class Wic_PartData(Mic_PartData):
53 54
54 if self.source: 55 if self.source:
55 retval += " --source=%s" % self.source 56 retval += " --source=%s" % self.source
57 if self.rootfs:
58 retval += " --rootfs-dir=%s" % self.rootfs
56 59
57 return retval 60 return retval
58 61
@@ -332,4 +335,7 @@ class Wic_Partition(Mic_Partition):
332 # and calculate partition size 335 # and calculate partition size
333 op.add_option("--source", type="string", action="store", 336 op.add_option("--source", type="string", action="store",
334 dest="source", default=None) 337 dest="source", default=None)
338 # use specified rootfs path to fill the partition
339 op.add_option("--rootfs-dir", type="string", action="store",
340 dest="rootfs", default=None)
335 return op 341 return op