5.15. Deploying and testing an Anaconda add-on
You can deploy and test your own Anaconda add-on into the installation environment. To do so, follow the steps:
Prerequisites
- You created an Add-on.
-
You have access to your
D-Busfiles. -
You have installed the
loraxpackage.
Procedure
-
Create a directory
DIRat the place of your preference. -
Add the
Add-onpython files intoDIR/usr/share/anaconda/addons/. -
Copy your
D-Busservice file intoDIR/usr/share/anaconda/dbus/services/. -
Copy your
D-Busservice configuration file to/usr/share/anaconda/dbus/confs/. Create the updates image.
Access the
DIRdirectory:cd DIRLocate the updates image.
find . | cpio -c -o | pigz -9cv > DIR/updates.imgUse the mkksiso utility to include the
updatesimage into the ISO boot image:sudo mkksiso -u updates.img boot.iso new_boot.isoBoot the resulting new_boot.iso.
It automatically applies the embedded updates image with the addon, resulting in your addon being used during installation.
For specific instructions on unpacking an existing boot image, creating a
product.imgfile and repackaging the image, see Extracting Red Hat Enterprise Linux boot images.