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 24f523ae41..3920adbd53 100644
--- a/scripts/lib/wic/kickstart/custom_commands/partition.py
+++ b/scripts/lib/wic/kickstart/custom_commands/partition.py
@@ -47,6 +47,7 @@ class Wic_PartData(Mic_PartData):
47 Mic_PartData.__init__(self, *args, **kwargs) 47 Mic_PartData.__init__(self, *args, **kwargs)
48 self.deleteRemovedAttrs() 48 self.deleteRemovedAttrs()
49 self.source = kwargs.get("source", None) 49 self.source = kwargs.get("source", None)
50 self.sourceparams = kwargs.get("sourceparams", None)
50 self.rootfs = kwargs.get("rootfs-dir", None) 51 self.rootfs = kwargs.get("rootfs-dir", None)
51 self.source_file = "" 52 self.source_file = ""
52 self.size = 0 53 self.size = 0
@@ -56,6 +57,8 @@ class Wic_PartData(Mic_PartData):
56 57
57 if self.source: 58 if self.source:
58 retval += " --source=%s" % self.source 59 retval += " --source=%s" % self.source
60 if self.sourceparams:
61 retval += " --sourceparams=%s" % self.sourceparams
59 if self.rootfs: 62 if self.rootfs:
60 retval += " --rootfs-dir=%s" % self.rootfs 63 retval += " --rootfs-dir=%s" % self.rootfs
61 64
@@ -490,6 +493,9 @@ class Wic_Partition(Mic_Partition):
490 # and calculate partition size 493 # and calculate partition size
491 op.add_option("--source", type="string", action="store", 494 op.add_option("--source", type="string", action="store",
492 dest="source", default=None) 495 dest="source", default=None)
496 # comma-separated list of param=value pairs
497 op.add_option("--sourceparams", type="string", action="store",
498 dest="sourceparams", default=None)
493 # use specified rootfs path to fill the partition 499 # use specified rootfs path to fill the partition
494 op.add_option("--rootfs-dir", type="string", action="store", 500 op.add_option("--rootfs-dir", type="string", action="store",
495 dest="rootfs", default=None) 501 dest="rootfs", default=None)