diff options
author | Tom Zanussi <tom.zanussi@linux.intel.com> | 2014-08-11 20:35:35 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-15 18:19:54 +0100 |
commit | f5b9ef65453b3f66282c49f5e2584ad33ac6d2d7 (patch) | |
tree | 9f0da298f7538f4e7df4797e11b36222a09e3b92 /scripts/lib | |
parent | c225613d997ef40dedf64b880b5ca4ae89adfded (diff) | |
download | openembedded-core-f5b9ef65453b3f66282c49f5e2584ad33ac6d2d7.tar.gz openembedded-core-f5b9ef65453b3f66282c49f5e2584ad33ac6d2d7.tar.bz2 openembedded-core-f5b9ef65453b3f66282c49f5e2584ad33ac6d2d7.zip |
wic: Add '--sourceparams' partition option
To go along with '--source' as a way to parameterize source plugins.
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-rw-r--r-- | scripts/lib/wic/kickstart/custom_commands/partition.py | 6 |
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): Mic_PartData.__init__(self, *args, **kwargs) self.deleteRemovedAttrs() self.source = kwargs.get("source", None) + self.sourceparams = kwargs.get("sourceparams", None) self.rootfs = kwargs.get("rootfs-dir", None) self.source_file = "" self.size = 0 @@ -56,6 +57,8 @@ class Wic_PartData(Mic_PartData): if self.source: retval += " --source=%s" % self.source + if self.sourceparams: + retval += " --sourceparams=%s" % self.sourceparams if self.rootfs: retval += " --rootfs-dir=%s" % self.rootfs @@ -490,6 +493,9 @@ class Wic_Partition(Mic_Partition): # and calculate partition size op.add_option("--source", type="string", action="store", dest="source", default=None) + # comma-separated list of param=value pairs + op.add_option("--sourceparams", type="string", action="store", + dest="sourceparams", default=None) # use specified rootfs path to fill the partition op.add_option("--rootfs-dir", type="string", action="store", dest="rootfs", default=None) |