<h1>Product and Updates Images<aclass="headerlink"href="#product-and-updates-images"title="Permalink to this headline">¶</a></h1>
<p>Lorax now supports creation of product.img and updates.img as part of the build
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 <codeclass="docutils literal notranslate"><spanclass="pre">--installpkgs</span><spanclass="pre"><pkgname></span></code> 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</p>
<p>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.</p>
<p>Anaconda has several places that it looks for updates, the one for product.img
is in /run/install/product. So for example, to add an installclass to Anaconda
<p>If the packages containing the product/updates files are not included as part
of normal dependencies you can add specific packages with the <codeclass="docutils literal notranslate"><spanclass="pre">--installpkgs</span></code>
command or the installpkgs paramater of <aclass="reference internal"href="pylorax.html#pylorax.treebuilder.RuntimeBuilder"title="pylorax.treebuilder.RuntimeBuilder"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">pylorax.treebuilder.RuntimeBuilder</span></code></a></p>
Built with <ahref="http://sphinx-doc.org/">Sphinx</a> using a <ahref="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <ahref="https://readthedocs.org">Read the Docs</a>.