[lorax] lorax: pass size from Lorax.run to create_runtime (#903385)
Vratislav Podzimek
vpodzime at redhat.com
Tue Nov 19 06:08:19 UTC 2013
On Mon, 2013-11-18 at 17:45 -0800, Brian C. Lane wrote:
> From: "Brian C. Lane" <bcl at redhat.com>
>
> This allows Lorax class users to specify the image size when calling
> run()
> ---
> src/pylorax/__init__.py | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/src/pylorax/__init__.py b/src/pylorax/__init__.py
> index 37829da..30e998f 100644
> --- a/src/pylorax/__init__.py
> +++ b/src/pylorax/__init__.py
> @@ -138,7 +138,7 @@ class Lorax(BaseLoraxClass):
>
> def run(self, ybo, product, version, release, variant="", bugurl="",
> isfinal=False, workdir=None, outputdir=None, buildarch=None, volid=None,
> - domacboot=True, doupgrade=True, remove_temp=False):
> + domacboot=True, doupgrade=True, remove_temp=False, size=2):
>
> assert self._configured
>
> @@ -282,7 +282,8 @@ class Lorax(BaseLoraxClass):
> else:
> logger.info("no BCJ filter for arch %s", self.arch.basearch)
> rb.create_runtime(joinpaths(installroot,runtime),
> - compression=compression, compressargs=compressargs)
> + compression=compression, compressargs=compressargs,
> + size=size)
>
> logger.info("preparing to build output tree and boot images")
> treebuilder = TreeBuilder(product=self.product, arch=self.arch,
ACK.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
More information about the anaconda-patches
mailing list