lorax/share
Colin Walters 50f9f48cc1 Add ability for external templates to graft content into boot.iso (#1202278)
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.

Resolves: rhbz#1202278
2015-06-25 09:18:25 +02:00
..
appliance livemedia-creator: Add appliance creation 2012-06-01 11:15:21 -07:00
config_files aarch64 no longer needs explicit console setting (#1170413) 2014-12-19 10:16:23 -08:00
live Update templates to use installimg for product and updates 2015-06-25 09:18:24 +02:00
pxe-live Add --make-pxe-live and --make-ostree-live (for Atomic) targets. 2015-04-13 10:05:17 +02:00
aarch64.tmpl Add ability for external templates to graft content into boot.iso (#1202278) 2015-06-25 09:18:25 +02:00
arm.tmpl Add ability for external templates to graft content into boot.iso (#1202278) 2015-06-25 09:18:25 +02:00
efi.tmpl Use shim on aarch64. 2014-10-02 15:58:04 -07:00
ppc.tmpl Add ability for external templates to graft content into boot.iso (#1202278) 2015-06-25 09:18:25 +02:00
runtime-cleanup.tmpl Merge pull request #26 from jkonecny12/rhel7-ntp-add 2015-06-22 15:02:11 +02:00
runtime-install.tmpl Merge pull request #26 from jkonecny12/rhel7-ntp-add 2015-06-22 15:02:11 +02:00
runtime-postinstall.tmpl Disable systemd-tmpfiles-clean (#1202545) 2015-06-12 16:01:07 -07:00
s390.tmpl allow setting additional dracut parameters for DVD s390x installs (#1132050) 2014-08-29 15:30:48 -07:00
x86.tmpl Add ability for external templates to graft content into boot.iso (#1202278) 2015-06-25 09:18:25 +02:00