summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Zanussi <tom.zanussi@linux.intel.com>2014-08-11 20:35:35 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-15 18:21:52 +0100
commit3c90ee9bc242a623cc0a09de59e7d20ac5bd061a (patch)
tree67a8c4d6302c0ef4348a9e1e6ae470f201924fd4
parentc4f51a048ffbf29b36670fab2db35b8af10228a2 (diff)
downloadpoky-3c90ee9bc242a623cc0a09de59e7d20ac5bd061a.tar.gz
wic: Add '--sourceparams' partition option
To go along with '--source' as a way to parameterize source plugins. (From OE-Core rev: f5b9ef65453b3f66282c49f5e2584ad33ac6d2d7) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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)