mirror of
https://pagure.io/fedora-docs/quick-docs.git
synced 2024-11-28 14:56:35 +00:00
Add Anaconda product image page
This commit is contained in:
parent
fa232ef104
commit
65530d498d
3 changed files with 30 additions and 1 deletions
|
@ -61,6 +61,8 @@ Topics:
|
|||
File: anaconda_updates
|
||||
- Name: Anaconda Logging
|
||||
File: anaconda_logging
|
||||
- Name: Anaconda Product Image
|
||||
File: anaconda_product_image
|
||||
- Name: (FIX ME!) AutoUpdates
|
||||
File: autoupdates
|
||||
- Name: (FIX ME!) Building a custom kernel
|
||||
|
|
|
@ -40,7 +40,7 @@ This is the best place to share tips and tricks about kickstart.
|
|||
[id="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"]
|
||||
== Mailing Lists
|
||||
|
|
27
en-US/anaconda/anaconda_product_image.adoc
Normal file
27
en-US/anaconda/anaconda_product_image.adoc
Normal 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.
|
Loading…
Reference in a new issue