lorax/share
Colin Walters 67217f5642 Add ability for external templates to graft content into boot.iso
I originally added --add-template to support doing something similar
to pungi, which injects content into the system to be used by default.
However, this causes the content to be part of the squashfs, which
means PXE installations have to download significantly more data that
they may not need (if they actually want to pull the tree data from
the network, which is not an unusual case).

What I actually need is to be able to modify *both* the runtime image
and the arch-specific content.  For the runtime, I need to change
/usr/share/anaconda/interactive-defaults.ks to point to the new
content.  (Although, potentially we could patch Anaconda itself to
auto-detect an ostree repository configured in disk image, similar to
what it does for yum repositories)

For the arch-specfic image, I want to drop my content into the ISO
root.

So this patch adds --add-arch-template and --add-arch-template-var
in order to do the latter, while preserving the --add-template
to affect the runtime image.

Further, the templates will automatically graft in a directory named
"iso-graft/" from the working directory (if it exists).

(I suggest that external templates create a subdirectory named
 "content" to avoid clashes with any future lorax work)

Thus, this will be used by the Atomic Host lorax templates to inject
content/repo, but could be used by e.g. pungi to add content/rpms as
well.

I tried to avoid code deduplication by creating a new template for the
product.img bits and this, but that broke because the parent boot.iso
code needs access to the `${imggraft}` variable.  I think a real fix
here would involve turning the product.img, content/, *and* boot.iso
into a new template.
2015-03-19 16:48:16 -04:00
..
appliance livemedia-creator: Add appliance creation 2012-06-01 11:15:21 -07:00
config_files Change console font to eurlatgr 2015-01-19 10:10:18 -08:00
live Add product.img support for arm templates 2014-11-06 18:56:56 -08:00
pxe-live Add --make-pxe-live and --make-ostree-live (for Atomic) targets. 2015-01-13 12:45:06 +01:00
aarch64.tmpl Add ability for external templates to graft content into boot.iso 2015-03-19 16:48:16 -04:00
arm.tmpl Add ability for external templates to graft content into boot.iso 2015-03-19 16:48:16 -04:00
efi.tmpl Use shim on aarch64. 2014-10-02 15:41:31 -07:00
ppc64le.tmpl Add ability for external templates to graft content into boot.iso 2015-03-19 16:48:16 -04:00
ppc.tmpl Add ability for external templates to graft content into boot.iso 2015-03-19 16:48:16 -04:00
runtime-cleanup.tmpl Keep logitech hid drivers (#1199770) 2015-03-17 16:45:18 -07:00
runtime-install.tmpl Explicitly install notification-daemon 2015-02-18 17:07:29 -05:00
runtime-postinstall.tmpl Turn off ldconfig 2015-03-06 11:26:50 -08:00
s390.tmpl allow setting additional dracut parameters for DVD s390x installs 2014-08-29 15:28:46 -07:00
x86.tmpl Add ability for external templates to graft content into boot.iso 2015-03-19 16:48:16 -04:00