Add a new option for customizing version in .treeinfo

There was an attempt to achieve this by customizing --version and
--release arguments for Lorax, but Pungi does not take the [general] and
[release] sections from its .treeinfo. Instead it was always using
release version.

The value from this new option will be put into .treeinfo and used for
--version and --release arguments in Lorax (unless explicitly defined in
lorax_options to another value).

JIRA: COMPOSE-4029
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2020-01-06 15:22:47 +01:00
parent 2c2462970d
commit aa6a213c8d
4 changed files with 13 additions and 4 deletions

View file

@ -69,6 +69,10 @@ Options
**release_internal** = False
(*bool*) -- whether the compose is meant for public consumption
**treeinfo_version**
(*str*) Version to display in ``.treeinfo`` files. If not configured, the
value from ``release_version`` will be used.
Example
-------
@ -536,8 +540,9 @@ Options
* ``add_template_var`` -- *[str]* (default empty)
* ``add_arch_template_var`` -- *[str]* (default empty)
* ``rootfs_size`` -- [*int*] (default empty)
* ``version`` -- [*str*] (default from ``release_version``) -- used as
``--version`` and ``--release`` argument on the lorax command line
* ``version`` -- [*str*] (default from ``treeinfo_version`` or
``release_version``) -- used as ``--version`` and ``--release``
argument on the lorax command line
* ``dracut_args`` -- [*[str]*] (default empty) override arguments for
dracut. Please note that if this option is used, lorax will not use any
other arguments, so you have to provide a full list and can not just