Discussion:
Move Lorax templates into templates.d and a subpackage
Brian C. Lane
2016-02-05 01:06:19 UTC
Permalink
https://github.com/rhinstaller/lorax/pull/86 is a patchset to,
hopefully, make it easier for products to customize the boot.iso they
want to create.

It moves the templates from /usr/share/lorax/ into
/usr/share/lorax/templates.d/99-generic/ so that other templates can be
installed without conflict.

It picks the first template directory in templates.d (sorted
alphabetically) or falls back to the old /usr/share/lorax/ path.

--sharedir overrides this and points it to the template directory to
use.

This would allow products, like server, to ship lorax templates as part
of the productimg package and use them during the build process.

Note that the lorax.rst docs haven't been updated yet, and I just
noticed that I need to add a Requires: lorax-templates to the lorax
package to make sure it pulls in something.

Any thoughts on this would be appreciated, either here or in the PR.

Thanks,
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
Colin Walters
2016-02-12 17:46:16 UTC
Permalink
Post by Brian C. Lane
https://github.com/rhinstaller/lorax/pull/86 is a patchset to,
hopefully, make it easier for products to customize the boot.iso they
want to create.
Can the current Atomic Host build be adapted to use this?
Brian C. Lane
2016-02-12 18:15:13 UTC
Permalink
Post by Colin Walters
Post by Brian C. Lane
https://github.com/rhinstaller/lorax/pull/86 is a patchset to,
hopefully, make it easier for products to customize the boot.iso they
want to create.
Can the current Atomic Host build be adapted to use this?
Probably so, if you're still using your custom template and variable
injection. This allows you to package up your own set of templates and
have better control over what's on the boot.iso

One drawback of this is going to be keeping track of common changes that
need to be made to templates. I'll try to notify everything that
provides 'lorax-templates' when something changes, but watching the
lorax repo would also be a good idea.
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
Loading...