<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Product and Updates Images — Lorax 19.7.43 documentation</title> <link rel="stylesheet" href="_static/default.css" type="text/css" /> <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '', VERSION: '19.7.43', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="_static/jquery.js"></script> <script type="text/javascript" src="_static/underscore.js"></script> <script type="text/javascript" src="_static/doctools.js"></script> <link rel="top" title="Lorax 19.7.43 documentation" href="index.html" /> <link rel="next" title="src" href="modules.html" /> <link rel="prev" title="composer-cli" href="composer-cli.html" /> </head> <body> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="genindex.html" title="General Index" accesskey="I">index</a></li> <li class="right" > <a href="py-modindex.html" title="Python Module Index" >modules</a> |</li> <li class="right" > <a href="modules.html" title="src" accesskey="N">next</a> |</li> <li class="right" > <a href="composer-cli.html" title="composer-cli" accesskey="P">previous</a> |</li> <li><a href="index.html">Lorax 19.7.43 documentation</a> »</li> </ul> </div> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body"> <div class="section" id="product-and-updates-images"> <h1>Product and Updates Images<a class="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 <tt class="docutils literal"><span class="pre">--installpkgs</span> <span class="pre"><pkgname></span></tt> 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 you would put your custom class here:</p> <p><tt class="docutils literal"><span class="pre">/usr/share/lorax/product/run/install/product/pyanaconda/installclasses/custom.py</span></tt></p> <p>If the packages containing the product/updates files are not included as part of normal dependencies you can add specific packages with the <tt class="docutils literal"><span class="pre">--installpkgs</span></tt> command or the installpkgs paramater of <a class="reference internal" href="pylorax.html#pylorax.treebuilder.RuntimeBuilder" title="pylorax.treebuilder.RuntimeBuilder"><tt class="xref py py-class docutils literal"><span class="pre">pylorax.treebuilder.RuntimeBuilder</span></tt></a></p> </div> </div> </div> </div> <div class="sphinxsidebar"> <div class="sphinxsidebarwrapper"> <h4>Previous topic</h4> <p class="topless"><a href="composer-cli.html" title="previous chapter">composer-cli</a></p> <h4>Next topic</h4> <p class="topless"><a href="modules.html" title="next chapter">src</a></p> <h3>This Page</h3> <ul class="this-page-menu"> <li><a href="_sources/product-images.txt" rel="nofollow">Show Source</a></li> </ul> <div id="searchbox" style="display: none"> <h3>Quick search</h3> <form class="search" action="search.html" method="get"> <input type="text" name="q" /> <input type="submit" value="Go" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> <p class="searchtip" style="font-size: 90%"> Enter search terms or a module, class or function name. </p> </div> <script type="text/javascript">$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="related"> <h3>Navigation</h3> <ul> <li class="right" style="margin-right: 10px"> <a href="genindex.html" title="General Index" >index</a></li> <li class="right" > <a href="py-modindex.html" title="Python Module Index" >modules</a> |</li> <li class="right" > <a href="modules.html" title="src" >next</a> |</li> <li class="right" > <a href="composer-cli.html" title="composer-cli" >previous</a> |</li> <li><a href="index.html">Lorax 19.7.43 documentation</a> »</li> </ul> </div> <div class="footer"> © Copyright 2018, Red Hat, Inc.. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3. </div> </body> </html>