From 9e979f760b07db258e77ca35acfb7455e6b52037 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Mon, 18 Nov 2013 17:17:41 -0800 Subject: [PATCH] lorax: pass size from Lorax.run to create_runtime (#903385) 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 37829da8..30e998f6 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,