From 8f5444aad2b906cc3ffbdb7f727f9c1456ebe99e Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Mon, 22 Aug 2016 17:20:48 -0700 Subject: [PATCH] lorax: Add --rootfs-size This controls how big the root filesystem is for the squashfs used in the boot.iso, the default is 2GiB. Note that larger rootfs sizes will require more memory and may cause the build to fail. (cherry picked from commit 37d36daa9c672e428e677a6a7bacea99cc16c5c4) Resolves: rhbz#1715116 --- src/sbin/lorax | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sbin/lorax b/src/sbin/lorax index 86f15d8b..a83006d4 100755 --- a/src/sbin/lorax +++ b/src/sbin/lorax @@ -189,6 +189,8 @@ def main(args): default=[]) optional.add_option("--noverifyssl", action="store_true", default=False, help="Do not verify SSL certificates") + optional.add_option("--rootfs-size", type=int, default=2, + help="Size of root filesystem in GiB. Defaults to 2.") # dracut arguments dracut_group = OptionGroup(parser, "dracut arguments") @@ -293,6 +295,7 @@ def main(args): workdir=tempdir, outputdir=outputdir, buildarch=opts.buildarch, volid=opts.volid, domacboot=opts.domacboot, doupgrade=opts.doupgrade, installpkgs=opts.installpkgs, + size=opts.rootfs_size, add_templates=opts.add_templates, add_template_vars=parsed_add_template_vars, add_arch_templates=opts.add_arch_templates,