Add Anaconda product image page

This commit is contained in:
Jared Smith 2018-02-27 06:43:10 -05:00
parent c331dbb5f0
commit f3ba413c3b
3 changed files with 30 additions and 1 deletions

View file

@ -63,6 +63,8 @@ Topics:
File: anaconda_updates File: anaconda_updates
- Name: Anaconda Logging - Name: Anaconda Logging
File: anaconda_logging File: anaconda_logging
- Name: Anaconda Product Image
File: anaconda_product_image
- Name: (FIX ME!) AutoUpdates - Name: (FIX ME!) AutoUpdates
File: autoupdates File: autoupdates
- Name: (FIX ME!) Building a custom kernel - Name: (FIX ME!) Building a custom kernel

View file

@ -40,7 +40,7 @@ This is the best place to share tips and tricks about kickstart.
[id="distribution-builders"] [id="distribution-builders"]
== Distribution Builders == Distribution Builders
For information on how to customize Anaconda and trees created with it, please see link:Anaconda/ProductImage[product.img], link:Anaconda/BuildDocProject[BuildDocProject] and link:Anaconda/Customization[Customization]. For information on how to customize Anaconda and trees created with it, please see link:anaconda_product_image[product.img], link:Anaconda/BuildDocProject[BuildDocProject] and link:Anaconda/Customization[Customization].
[id="mailing-lists"] [id="mailing-lists"]
== Mailing Lists == Mailing Lists

View file

@ -0,0 +1,27 @@
= Creating a Product image
Anaconda supports several ways to load new code at runtime.
Passing `inst.updates=<url>` is one way to do this and is documented on the file:anaconda_updates.html[updates]] page.
Another is to include a product.img in the install tree, inside the `/images/` directory.
It will be applied at runtime and can overwrite any file on the system, just like the updates.img.
One use for a product.img is to add a new installclass to Anaconda.
A product image for a new installclass can be created from a directory of files like this:
----
mkdir -p product/run/install/product/pyanaconda/installclasses/
vim product/run/install/product/pyanaconda/installclasses/custom.py
----
Create new installclass, see link:https://git.fedorahosted.org/cgit/anaconda.git/tree/pyanaconda/installclasses[Anaconda] for examples.
Now you can create the product.img:
----
cd product/
find . | cpio -c -o | pigz -9cv > ../product.img
----
Now you can include product.img in the tree, inside `/images/`.
Alternatively you can now use lorax to create product.img as part of the boot.iso creation process.
This is supported by lorax-21.27-1 and is documented link:http://rhinstaller.github.io/lorax/product-images.html[here] in the Lorax source tree.