[lorax] lorax: pass size from Lorax.run to create_runtime (#903385)

Brian C. Lane bcl at redhat.com
Tue Nov 19 01:45:23 UTC 2013


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,
-- 
1.8.3.1



More information about the anaconda-patches mailing list