lorax: provide runtime lorax config in debug log

This commit is contained in:
Pat Riehecky 2019-07-08 09:28:29 -05:00 committed by Brian C. Lane
parent 6b55c8f8f0
commit 1f811523b5

View File

@ -187,6 +187,9 @@ def main():
if opts.sharedir: if opts.sharedir:
lorax.conf.set("lorax", "sharedir", opts.sharedir) lorax.conf.set("lorax", "sharedir", opts.sharedir)
with open(lorax.conf.get("lorax", "logdir") + '/lorax.conf', 'w') as f:
lorax.conf.write(f)
lorax.run(dnfbase, opts.product, opts.version, opts.release, lorax.run(dnfbase, opts.product, opts.version, opts.release,
opts.variant, opts.bugurl, opts.isfinal, opts.variant, opts.bugurl, opts.isfinal,
workdir=tempdir, outputdir=opts.outputdir, buildarch=opts.buildarch, workdir=tempdir, outputdir=opts.outputdir, buildarch=opts.buildarch,