2015-04-08 21:02:26 +00:00
|
|
|
Product and Updates Images
|
|
|
|
==========================
|
|
|
|
|
2014-11-05 03:07:57 +00:00
|
|
|
Lorax now supports creation of product.img and updates.img as part of the build
|
2015-12-02 21:22:44 +00:00
|
|
|
process. This is implemented using the installimg template command which will
|
|
|
|
take the contents of a directory and create a compressed archive from it. The
|
|
|
|
directory must be created by one of the packages installed by
|
|
|
|
runtime-install.tmpl or by passing ``--installpkgs <pkgname>`` to lorax at
|
|
|
|
runtime. The x86, ppc, ppc64le and aarch64 templates all look for
|
|
|
|
/usr/share/lorax/product/ and /usr/share/lorax/updates/ directories in the
|
|
|
|
install chroot while creating the final install tree. If there are files in
|
|
|
|
those directories lorax will create images/product.img and/or
|
|
|
|
images/updates.img
|
2014-11-05 03:07:57 +00:00
|
|
|
|
2015-04-08 21:02:26 +00:00
|
|
|
These archives are just like an anaconda updates image -- their contents are
|
|
|
|
copied over the top of the filesystem at boot time so that you can drop in
|
|
|
|
files to add to or replace anything on the filesystem.
|
2014-11-05 03:07:57 +00:00
|
|
|
|
|
|
|
Anaconda has several places that it looks for updates, the one for product.img
|
2015-04-08 21:02:26 +00:00
|
|
|
is in /run/install/product. So for example, to add an installclass to Anaconda
|
2014-11-05 03:07:57 +00:00
|
|
|
you would put your custom class here:
|
|
|
|
|
2015-04-08 21:02:26 +00:00
|
|
|
``/usr/share/lorax/product/run/install/product/pyanaconda/installclasses/custom.py``
|
2014-11-05 03:07:57 +00:00
|
|
|
|
2015-01-12 22:55:20 +00:00
|
|
|
If the packages containing the product/updates files are not included as part
|
2015-04-08 21:02:26 +00:00
|
|
|
of normal dependencies you can add specific packages with the ``--installpkgs``
|
|
|
|
command or the installpkgs paramater of :class:`pylorax.treebuilder.RuntimeBuilder`
|