lorax: Add --rootfs-size (#1368743)
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.
This commit is contained in:
parent
442d0a0140
commit
37d36daa9c
@ -105,6 +105,8 @@ def lorax_parser():
|
||||
metavar="[repo]", help="Names of repos to enable")
|
||||
optional.add_argument("--disablerepo", action="append", default=[], dest="disablerepos",
|
||||
metavar="[repo]", help="Names of repos to disable")
|
||||
optional.add_argument("--rootfs-size", type=int, default=2,
|
||||
help="Size of root filesystem in GiB. Defaults to 2.")
|
||||
|
||||
# add the show version option
|
||||
parser.add_argument("-V", help="show program's version number and exit",
|
||||
|
@ -125,6 +125,7 @@ def main():
|
||||
workdir=tempdir, outputdir=opts.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,
|
||||
|
Loading…
Reference in New Issue
Block a user