mirror of
https://pagure.io/fedora-docs/quick-docs.git
synced 2024-11-28 14:56:35 +00:00
Remove product image page
This commit is contained in:
parent
d1f422e656
commit
475ad030b1
1 changed files with 0 additions and 31 deletions
|
@ -1,31 +0,0 @@
|
||||||
= Creating a Product image
|
|
||||||
|
|
||||||
include::{partialsdir}/unreviewed-message.adoc[]
|
|
||||||
|
|
||||||
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 xref:anaconda/anaconda_updates.adoc[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:
|
|
||||||
|
|
||||||
[source,bash]
|
|
||||||
----
|
|
||||||
$ mkdir -p product/run/install/product/pyanaconda/installclasses/
|
|
||||||
$ vim product/run/install/product/pyanaconda/installclasses/custom.py
|
|
||||||
----
|
|
||||||
|
|
||||||
Create new installclass, see link:https://github.com/rhinstaller/anaconda/tree/master/pyanaconda/installclasses[Anaconda code] for examples.
|
|
||||||
Now you can create the product.img:
|
|
||||||
|
|
||||||
[source,bash]
|
|
||||||
----
|
|
||||||
$ 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 later and is documented link:https://weldr.io/lorax/product-images.html[here] in the Lorax source tree.
|
|
Loading…
Reference in a new issue