wic: Add option --rootfs-dir to --source
The '--rootfs-dir' option is optional and only takes efect is a partition is set up like this: part /standby --source rootfs --rootfs-dir=<special rootfs> ... So '--rootfs-dir' is used instead of bitbake ROOTFS_DIR variable or '-r' param. (From OE-Core rev: d486db593e6643bd10b8fe90257d547a9f341043) Signed-off-by: João Henrique Ferreira de Freitas <joaohf@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
cbee7cb5f8
commit
13afd35868
|
@ -45,6 +45,7 @@ class Wic_PartData(Mic_PartData):
|
|||
Mic_PartData.__init__(self, *args, **kwargs)
|
||||
self.deleteRemovedAttrs()
|
||||
self.source = kwargs.get("source", None)
|
||||
self.rootfs = kwargs.get("rootfs-dir", None)
|
||||
self.source_file = ""
|
||||
self.size = 0
|
||||
|
||||
|
@ -53,6 +54,8 @@ class Wic_PartData(Mic_PartData):
|
|||
|
||||
if self.source:
|
||||
retval += " --source=%s" % self.source
|
||||
if self.rootfs:
|
||||
retval += " --rootfs-dir=%s" % self.rootfs
|
||||
|
||||
return retval
|
||||
|
||||
|
@ -332,4 +335,7 @@ class Wic_Partition(Mic_Partition):
|
|||
# and calculate partition size
|
||||
op.add_option("--source", type="string", action="store",
|
||||
dest="source", default=None)
|
||||
# use specified rootfs path to fill the partition
|
||||
op.add_option("--rootfs-dir", type="string", action="store",
|
||||
dest="rootfs", default=None)
|
||||
return op
|
||||
|
|
Loading…
Reference in New Issue