2015-05-11 23:44:09 +00:00
<!DOCTYPE html>
2021-04-23 20:42:41 +00:00
< html class = "writer-html5" lang = "en" >
2015-05-11 23:44:09 +00:00
< head >
2021-10-11 23:28:44 +00:00
< meta charset = "utf-8" / > < meta name = "generator" content = "Docutils 0.17.1: http://docutils.sourceforge.net/" / >
2021-04-23 20:42:41 +00:00
2021-10-11 23:28:44 +00:00
< meta name = "viewport" content = "width=device-width, initial-scale=1.0" / >
< title > Lorax — Lorax 35.7 documentation< / title >
< link rel = "stylesheet" href = "_static/pygments.css" type = "text/css" / >
< link rel = "stylesheet" href = "_static/css/theme.css" type = "text/css" / >
2015-05-11 23:44:09 +00:00
2021-10-11 23:28:44 +00:00
< script data-url_root = "./" id = "documentation_options" src = "_static/documentation_options.js" > < / script >
2020-09-08 18:59:15 +00:00
< script src = "_static/jquery.js" > < / script >
< script src = "_static/underscore.js" > < / script >
< script src = "_static/doctools.js" > < / script >
2021-10-11 23:28:44 +00:00
< script src = "_static/js/theme.js" > < / script >
2018-05-12 00:18:21 +00:00
< link rel = "index" title = "Index" href = "genindex.html" / >
< link rel = "search" title = "Search" href = "search.html" / >
< link rel = "next" title = "livemedia-creator" href = "livemedia-creator.html" / >
< link rel = "prev" title = "Introduction to Lorax" href = "intro.html" / >
2015-05-11 23:44:09 +00:00
< / head >
2021-10-11 23:28:44 +00:00
< body class = "wy-body-for-nav" >
2015-05-11 23:44:09 +00:00
< div class = "wy-grid-for-nav" >
< nav data-toggle = "wy-nav-shift" class = "wy-nav-side" >
2016-02-13 00:06:33 +00:00
< div class = "wy-side-scroll" >
2019-03-27 23:44:14 +00:00
< div class = "wy-side-nav-search" >
2016-02-13 00:06:33 +00:00
< a href = "index.html" class = "icon icon-home" > Lorax
< / a >
< div class = "version" >
2021-10-11 23:28:44 +00:00
35.7
2016-02-13 00:06:33 +00:00
< / div >
2015-05-11 23:44:09 +00:00
< div role = "search" >
< form id = "rtd-search-form" class = "wy-form" action = "search.html" method = "get" >
< input type = "text" name = "q" placeholder = "Search docs" / >
< input type = "hidden" name = "check_keywords" value = "yes" / >
< input type = "hidden" name = "area" value = "default" / >
< / form >
< / div >
2021-10-11 23:28:44 +00:00
< / div > < div class = "wy-menu wy-menu-vertical" data-spy = "affix" role = "navigation" aria-label = "Navigation menu" >
2017-11-28 17:18:51 +00:00
< ul class = "current" >
2015-05-11 23:44:09 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "intro.html" > Introduction to Lorax< / a > < / li >
< li class = "toctree-l1" > < a class = "reference internal" href = "intro.html#before-lorax" > Before Lorax< / a > < / li >
2016-11-29 17:27:44 +00:00
< li class = "toctree-l1 current" > < a class = "current reference internal" href = "#" > Lorax< / a > < ul >
2018-08-13 23:43:20 +00:00
< li class = "toctree-l2" > < a class = "reference internal" href = "#lorax-cmdline-arguments" > lorax cmdline arguments< / a > < ul >
< li class = "toctree-l3" > < a class = "reference internal" href = "#Positional Arguments" > Positional Arguments< / a > < / li >
2021-10-11 23:28:44 +00:00
< li class = "toctree-l3" > < a class = "reference internal" href = "#options" > options< / a > < / li >
2018-08-13 23:43:20 +00:00
< li class = "toctree-l3" > < a class = "reference internal" href = "#required arguments" > required arguments< / a > < / li >
2021-10-11 23:28:44 +00:00
< li class = "toctree-l3" > < a class = "reference internal" href = "#Named Arguments" > Named Arguments< / a > < / li >
2020-01-16 18:13:02 +00:00
< li class = "toctree-l3" > < a class = "reference internal" href = "#dracut arguments: (default: )" > dracut arguments: (default: )< / a > < / li >
2018-08-13 23:43:20 +00:00
< / ul >
< / li >
2016-02-13 00:06:33 +00:00
< li class = "toctree-l2" > < a class = "reference internal" href = "#quickstart" > Quickstart< / a > < / li >
2020-04-28 18:52:52 +00:00
< li class = "toctree-l2" > < a class = "reference internal" href = "#branding" > Branding< / a > < ul >
< li class = "toctree-l3" > < a class = "reference internal" href = "#variants" > Variants< / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "#custom-branding" > Custom Branding< / a > < / li >
< / ul >
< / li >
2017-11-28 17:18:51 +00:00
< li class = "toctree-l2" > < a class = "reference internal" href = "#running-inside-of-mock" > Running inside of mock< / a > < / li >
2016-02-13 00:06:33 +00:00
< li class = "toctree-l2" > < a class = "reference internal" href = "#how-it-works" > How it works< / a > < ul >
< li class = "toctree-l3" > < a class = "reference internal" href = "#runtime-install-tmpl" > runtime-install.tmpl< / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "#runtime-postinstall-tmpl" > runtime-postinstall.tmpl< / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "#runtime-cleanup-tmpl" > runtime-cleanup.tmpl< / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "#the-squashfs-filesystem" > The squashfs filesystem< / a > < / li >
< li class = "toctree-l3" > < a class = "reference internal" href = "#iso-creation" > iso creation< / a > < / li >
2015-07-10 18:39:39 +00:00
< / ul >
< / li >
2016-02-13 00:06:33 +00:00
< li class = "toctree-l2" > < a class = "reference internal" href = "#custom-templates" > Custom Templates< / a > < / li >
2015-05-11 23:44:09 +00:00
< / ul >
< / li >
2016-02-13 00:06:33 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "livemedia-creator.html" > livemedia-creator< / a > < / li >
2019-11-05 22:36:46 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "mkksiso.html" > mkksiso< / a > < / li >
2016-02-13 00:06:33 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "product-images.html" > Product and Updates Images< / a > < / li >
2018-05-12 00:18:21 +00:00
< li class = "toctree-l1" > < a class = "reference internal" href = "modules.html" > src< / a > < / li >
2015-05-11 23:44:09 +00:00
< / ul >
2016-02-13 00:06:33 +00:00
< / div >
2015-05-11 23:44:09 +00:00
< / div >
< / nav >
2021-10-11 23:28:44 +00:00
< section data-toggle = "wy-nav-shift" class = "wy-nav-content-wrap" > < nav class = "wy-nav-top" aria-label = "Mobile navigation menu" >
2017-11-28 17:18:51 +00:00
< i data-toggle = "wy-nav-top" class = "fa fa-bars" > < / i >
< a href = "index.html" > Lorax< / a >
2015-05-11 23:44:09 +00:00
< / nav >
< div class = "wy-nav-content" >
< div class = "rst-content" >
2021-10-11 23:28:44 +00:00
< div role = "navigation" aria-label = "Page navigation" >
2015-05-11 23:44:09 +00:00
< ul class = "wy-breadcrumbs" >
2021-04-23 20:42:41 +00:00
< li > < a href = "index.html" class = "icon icon-home" > < / a > » < / li >
2017-11-28 17:18:51 +00:00
< li > Lorax< / li >
2015-05-11 23:44:09 +00:00
< li class = "wy-breadcrumbs-aside" >
2017-11-28 17:18:51 +00:00
< a href = "_sources/lorax.rst.txt" rel = "nofollow" > View page source< / a >
2015-05-11 23:44:09 +00:00
< / li >
< / ul >
< hr / >
< / div >
2016-02-13 00:06:33 +00:00
< div role = "main" class = "document" itemscope = "itemscope" itemtype = "http://schema.org/Article" >
< div itemprop = "articleBody" >
2021-10-11 23:28:44 +00:00
< section id = "lorax" >
2016-02-13 00:06:33 +00:00
< h1 > Lorax< a class = "headerlink" href = "#lorax" title = "Permalink to this headline" > ¶< / a > < / h1 >
2019-03-27 23:44:14 +00:00
< dl class = "field-list simple" >
< dt class = "field-odd" > Authors< / dt >
< dd class = "field-odd" > < p > Brian C. Lane < < a class = "reference external" href = "mailto:bcl%40redhat.com" > bcl< span > @ < / span > redhat< span > . < / span > com< / a > > < / p >
< / dd >
< / dl >
< p > " I am the Lorax. I speak for the trees [and images]." < / p >
2016-02-13 00:06:33 +00:00
< p > The < a class = "reference external" href = "https://github.com/rhinstaller/lorax" > lorax< / a > tool is used to create the
< a class = "reference external" href = "https://github.com/rhinstaller/anaconda" > Anaconda< / a > installer boot.iso as
well as the basic release tree, and .treeinfo metadata file. Its dependencies
are fairly light-weight because it needs to be able to run in a mock chroot
environment. It is best to run lorax from the same release as is being targeted
because the templates may have release specific logic in them. eg. Use the
rawhide version to build the boot.iso for rawhide, along with the rawhide
repositories.< / p >
2021-10-11 23:28:44 +00:00
< section id = "lorax-cmdline-arguments" >
2016-03-18 23:30:48 +00:00
< h2 > lorax cmdline arguments< a class = "headerlink" href = "#lorax-cmdline-arguments" title = "Permalink to this headline" > ¶< / a > < / h2 >
2019-03-27 23:44:14 +00:00
< p > < p > Create the Anaconda boot.iso< / p >
< / p >
2021-10-11 23:28:44 +00:00
< div class = "highlight-default notranslate" > < div class = "highlight" > < pre > < span > < / span > < span class = "n" > usage< / span > < span class = "p" > :< / span > < span class = "n" > lorax< / span > < span class = "p" > [< / span > < span class = "o" > -< / span > < span class = "n" > h< / span > < span class = "p" > ]< / span > < span class = "o" > -< / span > < span class = "n" > p< / span > < span class = "n" > PRODUCT< / span > < span class = "o" > -< / span > < span class = "n" > v< / span > < span class = "n" > VERSION< / span > < span class = "o" > -< / span > < span class = "n" > r< / span > < span class = "n" > RELEASE< / span > < span class = "p" > [< / span > < span class = "o" > -< / span > < span class = "n" > s< / span > < span class = "n" > REPOSITORY< / span > < span class = "p" > ]< / span > < span class = "p" > [< / span > < span class = "o" > --< / span > < span class = "n" > repo< / span > < span class = "n" > REPOSITORY< / span > < span class = "p" > ]< / span > < span class = "p" > [< / span > < span class = "o" > -< / span > < span class = "n" > m< / span > < span class = "n" > REPOSITORY< / span > < span class = "p" > ]< / span >
< span class = "p" > [< / span > < span class = "o" > -< / span > < span class = "n" > t< / span > < span class = "n" > VARIANT< / span > < span class = "p" > ]< / span > < span class = "p" > [< / span > < span class = "o" > -< / span > < span class = "n" > b< / span > < span class = "n" > URL< / span > < span class = "p" > ]< / span > < span class = "p" > [< / span > < span class = "o" > --< / span > < span class = "n" > isfinal< / span > < span class = "p" > ]< / span > < span class = "p" > [< / span > < span class = "o" > -< / span > < span class = "n" > c< / span > < span class = "n" > CONFIGFILE< / span > < span class = "p" > ]< / span > < span class = "p" > [< / span > < span class = "o" > --< / span > < span class = "n" > proxy< / span > < span class = "n" > HOST< / span > < span class = "p" > ]< / span > < span class = "p" > [< / span > < span class = "o" > -< / span > < span class = "n" > i< / span > < span class = "n" > PACKAGE< / span > < span class = "p" > ]< / span > < span class = "p" > [< / span > < span class = "o" > -< / span > < span class = "n" > e< / span > < span class = "n" > PACKAGE< / span > < span class = "p" > ]< / span >
< span class = "p" > [< / span > < span class = "o" > --< / span > < span class = "n" > buildarch< / span > < span class = "n" > ARCH< / span > < span class = "p" > ]< / span > < span class = "p" > [< / span > < span class = "o" > --< / span > < span class = "n" > volid< / span > < span class = "n" > VOLID< / span > < span class = "p" > ]< / span > < span class = "p" > [< / span > < span class = "o" > --< / span > < span class = "n" > macboot< / span > < span class = "p" > ]< / span > < span class = "p" > [< / span > < span class = "o" > --< / span > < span class = "n" > nomacboot< / span > < span class = "p" > ]< / span > < span class = "p" > [< / span > < span class = "o" > --< / span > < span class = "n" > noupgrade< / span > < span class = "p" > ]< / span >
< span class = "p" > [< / span > < span class = "o" > --< / span > < span class = "n" > logfile< / span > < span class = "n" > LOGFILE< / span > < span class = "p" > ]< / span > < span class = "p" > [< / span > < span class = "o" > --< / span > < span class = "n" > tmp< / span > < span class = "n" > TMP< / span > < span class = "p" > ]< / span > < span class = "p" > [< / span > < span class = "o" > --< / span > < span class = "n" > cachedir< / span > < span class = "n" > CACHEDIR< / span > < span class = "p" > ]< / span > < span class = "p" > [< / span > < span class = "o" > --< / span > < span class = "n" > workdir< / span > < span class = "n" > WORKDIR< / span > < span class = "p" > ]< / span > < span class = "p" > [< / span > < span class = "o" > --< / span > < span class = "n" > force< / span > < span class = "p" > ]< / span >
< span class = "p" > [< / span > < span class = "o" > --< / span > < span class = "n" > add< / span > < span class = "o" > -< / span > < span class = "n" > template< / span > < span class = "n" > ADD_TEMPLATES< / span > < span class = "p" > ]< / span > < span class = "p" > [< / span > < span class = "o" > --< / span > < span class = "n" > add< / span > < span class = "o" > -< / span > < span class = "n" > template< / span > < span class = "o" > -< / span > < span class = "n" > var< / span > < span class = "n" > ADD_TEMPLATE_VARS< / span > < span class = "p" > ]< / span >
< span class = "p" > [< / span > < span class = "o" > --< / span > < span class = "n" > add< / span > < span class = "o" > -< / span > < span class = "n" > arch< / span > < span class = "o" > -< / span > < span class = "n" > template< / span > < span class = "n" > ADD_ARCH_TEMPLATES< / span > < span class = "p" > ]< / span > < span class = "p" > [< / span > < span class = "o" > --< / span > < span class = "n" > add< / span > < span class = "o" > -< / span > < span class = "n" > arch< / span > < span class = "o" > -< / span > < span class = "n" > template< / span > < span class = "o" > -< / span > < span class = "n" > var< / span > < span class = "n" > ADD_ARCH_TEMPLATE_VARS< / span > < span class = "p" > ]< / span >
< span class = "p" > [< / span > < span class = "o" > --< / span > < span class = "n" > noverify< / span > < span class = "p" > ]< / span > < span class = "p" > [< / span > < span class = "o" > --< / span > < span class = "n" > sharedir< / span > < span class = "n" > SHAREDIR< / span > < span class = "p" > ]< / span > < span class = "p" > [< / span > < span class = "o" > --< / span > < span class = "n" > enablerepo< / span > < span class = "p" > [< / span > < span class = "n" > repo< / span > < span class = "p" > ]]< / span > < span class = "p" > [< / span > < span class = "o" > --< / span > < span class = "n" > disablerepo< / span > < span class = "p" > [< / span > < span class = "n" > repo< / span > < span class = "p" > ]]< / span >
< span class = "p" > [< / span > < span class = "o" > --< / span > < span class = "n" > rootfs< / span > < span class = "o" > -< / span > < span class = "n" > size< / span > < span class = "n" > ROOTFS_SIZE< / span > < span class = "p" > ]< / span > < span class = "p" > [< / span > < span class = "o" > --< / span > < span class = "n" > noverifyssl< / span > < span class = "p" > ]< / span > < span class = "p" > [< / span > < span class = "o" > --< / span > < span class = "n" > dnfplugin< / span > < span class = "n" > DNFPLUGINS< / span > < span class = "p" > ]< / span > < span class = "p" > [< / span > < span class = "o" > --< / span > < span class = "n" > squashfs< / span > < span class = "o" > -< / span > < span class = "n" > only< / span > < span class = "p" > ]< / span >
< span class = "p" > [< / span > < span class = "o" > --< / span > < span class = "n" > skip< / span > < span class = "o" > -< / span > < span class = "n" > branding< / span > < span class = "p" > ]< / span > < span class = "p" > [< / span > < span class = "o" > --< / span > < span class = "n" > dracut< / span > < span class = "o" > -< / span > < span class = "n" > conf< / span > < span class = "n" > DRACUT_CONF< / span > < span class = "p" > ]< / span > < span class = "p" > [< / span > < span class = "o" > --< / span > < span class = "n" > dracut< / span > < span class = "o" > -< / span > < span class = "n" > arg< / span > < span class = "n" > DRACUT_ARGS< / span > < span class = "p" > ]< / span > < span class = "p" > [< / span > < span class = "o" > -< / span > < span class = "n" > V< / span > < span class = "p" > ]< / span >
2018-08-13 23:43:20 +00:00
< span class = "n" > OUTPUTDIR< / span >
< / pre > < / div >
< / div >
2021-10-11 23:28:44 +00:00
< section id = "Positional Arguments" >
2018-08-13 23:43:20 +00:00
< h3 > Positional Arguments< a class = "headerlink" href = "#Positional Arguments" title = "Permalink to this headline" > ¶< / a > < / h3 >
2019-03-27 23:44:14 +00:00
< dl class = "option-list" >
< dt > < kbd > OUTPUTDIR< / kbd > < / dt >
< dd > < p > Output directory< / p >
< / dd >
< / dl >
2021-10-11 23:28:44 +00:00
< / section >
< section id = "options" >
< h3 > options< a class = "headerlink" href = "#options" title = "Permalink to this headline" > ¶< / a > < / h3 >
2019-03-27 23:44:14 +00:00
< dl class = "option-list" >
< dt > < kbd > -V< / kbd > < / dt >
< dd > < p > show program's version number and exit< / p >
< / dd >
< / dl >
2021-10-11 23:28:44 +00:00
< / section >
< section id = "required arguments" >
2018-08-13 23:43:20 +00:00
< h3 > required arguments< a class = "headerlink" href = "#required arguments" title = "Permalink to this headline" > ¶< / a > < / h3 >
2019-03-27 23:44:14 +00:00
< dl class = "option-list" >
< dt > < kbd > -p, --product< / kbd > < / dt >
< dd > < p > product name< / p >
< / dd >
< dt > < kbd > -v, --version< / kbd > < / dt >
< dd > < p > version identifier< / p >
< / dd >
< dt > < kbd > -r, --release< / kbd > < / dt >
< dd > < p > release information< / p >
< / dd >
< dt > < kbd > -s, --source< / kbd > < / dt >
< dd > < p > source repository (may be listed multiple times)< / p >
< p > Default: []< / p >
< / dd >
< dt > < kbd > --repo< / kbd > < / dt >
< dd > < p > source dnf repository file< / p >
< p > Default: []< / p >
< / dd >
< / dl >
2021-10-11 23:28:44 +00:00
< / section >
< section id = "Named Arguments" >
< h3 > Named Arguments< a class = "headerlink" href = "#Named Arguments" title = "Permalink to this headline" > ¶< / a > < / h3 >
2019-03-27 23:44:14 +00:00
< dl class = "option-list" >
< dt > < kbd > -m, --mirrorlist< / kbd > < / dt >
< dd > < p > mirrorlist repository (may be listed multiple times)< / p >
< p > Default: []< / p >
< / dd >
< dt > < kbd > -t, --variant< / kbd > < / dt >
< dd > < p > variant name< / p >
< p > Default: " " < / p >
< / dd >
< dt > < kbd > -b, --bugurl< / kbd > < / dt >
< dd > < p > bug reporting URL for the product< / p >
< p > Default: " your distribution provided bug reporting tool" < / p >
< / dd >
< dt > < kbd > --isfinal< / kbd > < / dt >
< dd > < p > Default: False< / p >
< / dd >
< dt > < kbd > -c, --config< / kbd > < / dt >
< dd > < p > config file< / p >
< p > Default: " /etc/lorax/lorax.conf" < / p >
< / dd >
< dt > < kbd > --proxy< / kbd > < / dt >
< dd > < p > repo proxy url:port< / p >
< / dd >
< dt > < kbd > -i, --installpkgs< / kbd > < / dt >
< dd > < p > package glob to install before runtime-install.tmpl runs. (may be listed multiple times)< / p >
< p > Default: []< / p >
< / dd >
< dt > < kbd > -e, --excludepkgs< / kbd > < / dt >
< dd > < p > package glob to remove before runtime-install.tmpl runs. (may be listed multiple times)< / p >
< p > Default: []< / p >
< / dd >
< dt > < kbd > --buildarch< / kbd > < / dt >
< dd > < p > build architecture< / p >
< / dd >
< dt > < kbd > --volid< / kbd > < / dt >
< dd > < p > volume id< / p >
< / dd >
< dt > < kbd > --macboot< / kbd > < / dt >
2019-11-05 22:36:46 +00:00
< dd > < p > Make the iso bootable on UEFI based Mac systems< / p >
< p > Default: True< / p >
2019-03-27 23:44:14 +00:00
< / dd >
< dt > < kbd > --nomacboot< / kbd > < / dt >
2019-11-05 22:36:46 +00:00
< dd > < p > Do not create a Mac bootable iso< / p >
< p > Default: False< / p >
2019-03-27 23:44:14 +00:00
< / dd >
< dt > < kbd > --noupgrade< / kbd > < / dt >
< dd > < p > Default: True< / p >
< / dd >
< dt > < kbd > --logfile< / kbd > < / dt >
< dd > < p > Path to logfile< / p >
< p > Default: ./lorax.log< / p >
< / dd >
< dt > < kbd > --tmp< / kbd > < / dt >
< dd > < p > Top level temporary directory< / p >
< p > Default: " /var/tmp/lorax" < / p >
< / dd >
< dt > < kbd > --cachedir< / kbd > < / dt >
< dd > < p > DNF cache directory. Default is a temporary dir.< / p >
< / dd >
< dt > < kbd > --workdir< / kbd > < / dt >
< dd > < p > Work directory, overrides --tmp. Default is a temporary dir under /var/tmp/lorax< / p >
< / dd >
< dt > < kbd > --force< / kbd > < / dt >
< dd > < p > Run even when the destination directory exists< / p >
< p > Default: False< / p >
< / dd >
< dt > < kbd > --add-template< / kbd > < / dt >
< dd > < p > Additional template for runtime image< / p >
< p > Default: []< / p >
< / dd >
< dt > < kbd > --add-template-var< / kbd > < / dt >
< dd > < p > Set variable for runtime image template< / p >
< p > Default: []< / p >
< / dd >
< dt > < kbd > --add-arch-template< / kbd > < / dt >
< dd > < p > Additional template for architecture-specific image< / p >
< p > Default: []< / p >
< / dd >
< dt > < kbd > --add-arch-template-var< / kbd > < / dt >
< dd > < p > Set variable for architecture-specific image< / p >
< p > Default: []< / p >
< / dd >
< dt > < kbd > --noverify< / kbd > < / dt >
< dd > < p > Do not verify the install root< / p >
< p > Default: True< / p >
< / dd >
< dt > < kbd > --sharedir< / kbd > < / dt >
< dd > < p > Directory containing all the templates. Overrides config file sharedir< / p >
< / dd >
< dt > < kbd > --enablerepo< / kbd > < / dt >
< dd > < p > Names of repos to enable< / p >
< p > Default: []< / p >
< / dd >
< dt > < kbd > --disablerepo< / kbd > < / dt >
< dd > < p > Names of repos to disable< / p >
< p > Default: []< / p >
< / dd >
< dt > < kbd > --rootfs-size< / kbd > < / dt >
< dd > < p > Size of root filesystem in GiB. Defaults to 2.< / p >
< p > Default: 2< / p >
< / dd >
< dt > < kbd > --noverifyssl< / kbd > < / dt >
< dd > < p > Do not verify SSL certificates< / p >
< p > Default: False< / p >
< / dd >
< dt > < kbd > --dnfplugin< / kbd > < / dt >
< dd > < p > Enable a DNF plugin by name/glob, or * to enable all of them.< / p >
< p > Default: []< / p >
< / dd >
< dt > < kbd > --squashfs-only< / kbd > < / dt >
< dd > < p > Use a plain squashfs filesystem for the runtime.< / p >
< p > Default: False< / p >
< / dd >
2020-04-28 18:52:52 +00:00
< dt > < kbd > --skip-branding< / kbd > < / dt >
< dd > < p > Disable automatic branding package selection. Use --installpkgs to add custom branding.< / p >
< p > Default: False< / p >
< / dd >
2019-03-27 23:44:14 +00:00
< / dl >
2021-10-11 23:28:44 +00:00
< / section >
< section id = "dracut arguments: (default: )" >
2020-01-16 18:13:02 +00:00
< h3 > dracut arguments: (default: )< a class = "headerlink" href = "#dracut arguments: (default: )" title = "Permalink to this headline" > ¶< / a > < / h3 >
2019-03-27 23:44:14 +00:00
< dl class = "option-list" >
2020-01-16 18:13:02 +00:00
< dt > < kbd > --dracut-conf< / kbd > < / dt >
< dd > < p > Path to a dracut.conf file to use instead of the default arguments. See the dracut.conf(5) manpage.< / p >
< / dd >
2019-03-27 23:44:14 +00:00
< dt > < kbd > --dracut-arg< / kbd > < / dt >
2020-01-16 18:13:02 +00:00
< dd > < p > Argument to pass to dracut when rebuilding the initramfs. Pass this once for each argument. NOTE: this overrides the defaults.< / p >
2019-03-27 23:44:14 +00:00
< / dd >
< / dl >
2021-10-11 23:28:44 +00:00
< / section >
< / section >
< section id = "quickstart" >
2016-02-13 00:06:33 +00:00
< h2 > Quickstart< a class = "headerlink" href = "#quickstart" title = "Permalink to this headline" > ¶< / a > < / h2 >
2018-05-12 00:18:21 +00:00
< p > Run this as root to create a boot.iso in < code class = "docutils literal notranslate" > < span class = "pre" > ./results/< / span > < / code > :< / p >
< div class = "highlight-default notranslate" > < div class = "highlight" > < pre > < span > < / span > < span class = "n" > dnf< / span > < span class = "n" > install< / span > < span class = "n" > lorax< / span >
2016-11-29 17:27:44 +00:00
< span class = "n" > setenforce< / span > < span class = "mi" > 0< / span >
< span class = "n" > lorax< / span > < span class = "o" > -< / span > < span class = "n" > p< / span > < span class = "n" > Fedora< / span > < span class = "o" > -< / span > < span class = "n" > v< / span > < span class = "mi" > 23< / span > < span class = "o" > -< / span > < span class = "n" > r< / span > < span class = "mi" > 23< / span > \
< span class = "o" > -< / span > < span class = "n" > s< / span > < span class = "n" > http< / span > < span class = "p" > :< / span > < span class = "o" > //< / span > < span class = "n" > dl< / span > < span class = "o" > .< / span > < span class = "n" > fedoraproject< / span > < span class = "o" > .< / span > < span class = "n" > org< / span > < span class = "o" > /< / span > < span class = "n" > pub< / span > < span class = "o" > /< / span > < span class = "n" > fedora< / span > < span class = "o" > /< / span > < span class = "n" > linux< / span > < span class = "o" > /< / span > < span class = "n" > releases< / span > < span class = "o" > /< / span > < span class = "mi" > 23< / span > < span class = "o" > /< / span > < span class = "n" > Everything< / span > < span class = "o" > /< / span > < span class = "n" > x86_64< / span > < span class = "o" > /< / span > < span class = "n" > os< / span > < span class = "o" > /< / span > \
< span class = "o" > -< / span > < span class = "n" > s< / span > < span class = "n" > http< / span > < span class = "p" > :< / span > < span class = "o" > //< / span > < span class = "n" > dl< / span > < span class = "o" > .< / span > < span class = "n" > fedoraproject< / span > < span class = "o" > .< / span > < span class = "n" > org< / span > < span class = "o" > /< / span > < span class = "n" > pub< / span > < span class = "o" > /< / span > < span class = "n" > fedora< / span > < span class = "o" > /< / span > < span class = "n" > linux< / span > < span class = "o" > /< / span > < span class = "n" > updates< / span > < span class = "o" > /< / span > < span class = "mi" > 23< / span > < span class = "o" > /< / span > < span class = "n" > x86_64< / span > < span class = "o" > /< / span > \
< span class = "o" > ./< / span > < span class = "n" > results< / span > < span class = "o" > /< / span >
< span class = "n" > setenforce< / span > < span class = "mi" > 1< / span >
2016-02-13 00:06:33 +00:00
< / pre > < / div >
< / div >
2018-05-12 00:18:21 +00:00
< p > You can add your own repos with < code class = "docutils literal notranslate" > < span class = "pre" > -s< / span > < / code > and packages with higher NVRs will
2016-02-13 00:06:33 +00:00
override the ones in the distribution repositories.< / p >
2018-05-12 00:18:21 +00:00
< p > Under < code class = "docutils literal notranslate" > < span class = "pre" > ./results/< / span > < / code > will be the release tree files: .discinfo, .treeinfo, everything that
2021-04-23 20:42:41 +00:00
goes onto the boot.iso, the pxeboot directory, and the boot.iso under < code class = "docutils literal notranslate" > < span class = "pre" > ./results/images/< / span > < / code > .< / p >
2021-10-11 23:28:44 +00:00
< / section >
< section id = "branding" >
2020-04-28 18:52:52 +00:00
< h2 > Branding< a class = "headerlink" href = "#branding" title = "Permalink to this headline" > ¶< / a > < / h2 >
< p > By default lorax will search for the first package that provides < code class = "docutils literal notranslate" > < span class = "pre" > system-release< / span > < / code >
that doesn't start with < code class = "docutils literal notranslate" > < span class = "pre" > generic-< / span > < / code > and will install it. It then selects a
corresponding logo package by using the first part of the system-release package and
appending < code class = "docutils literal notranslate" > < span class = "pre" > -logos< / span > < / code > to it. eg. fedora-release and fedora-logos.< / p >
2021-10-11 23:28:44 +00:00
< section id = "variants" >
2020-04-28 18:52:52 +00:00
< h3 > Variants< a class = "headerlink" href = "#variants" title = "Permalink to this headline" > ¶< / a > < / h3 >
< p > If a < code class = "docutils literal notranslate" > < span class = "pre" > variant< / span > < / code > is passed to lorax it will select a < code class = "docutils literal notranslate" > < span class = "pre" > system-release< / span > < / code > package that
ends with the variant name. eg. Passing < code class = "docutils literal notranslate" > < span class = "pre" > --variant< / span > < span class = "pre" > workstation< / span > < / code > will select the
< code class = "docutils literal notranslate" > < span class = "pre" > fedora-release-workstation< / span > < / code > package if it exists. It will select a logo package
the same way it does for non-variants. eg. < code class = "docutils literal notranslate" > < span class = "pre" > fedora-logos< / span > < / code > .< / p >
< p > If there is no package ending with the variant name it will fall back to using the
first non-generic package providing < code class = "docutils literal notranslate" > < span class = "pre" > system-release< / span > < / code > .< / p >
2021-10-11 23:28:44 +00:00
< / section >
< section id = "custom-branding" >
2020-04-28 18:52:52 +00:00
< h3 > Custom Branding< a class = "headerlink" href = "#custom-branding" title = "Permalink to this headline" > ¶< / a > < / h3 >
< p > If < code class = "docutils literal notranslate" > < span class = "pre" > --skip-branding< / span > < / code > is passed to lorax it will skip selecting the
< code class = "docutils literal notranslate" > < span class = "pre" > system-release< / span > < / code > , and logos packages and leave it up to the user to pass any
branding related packages to lorax using < code class = "docutils literal notranslate" > < span class = "pre" > --installpkgs< / span > < / code > . When using
< code class = "docutils literal notranslate" > < span class = "pre" > skip-branding< / span > < / code > you must make sure that you provide all of the expected files,
otherwise Anaconda may not work as expected. See the contents of < code class = "docutils literal notranslate" > < span class = "pre" > fedora-release< / span > < / code >
and < code class = "docutils literal notranslate" > < span class = "pre" > fedora-logos< / span > < / code > for examples of what to include.< / p >
< p > Note that this does not prevent something else in the dependency tree from
causing these packages to be included. Using < code class = "docutils literal notranslate" > < span class = "pre" > --excludepkgs< / span > < / code > may help if they
are unexpectedly included.< / p >
2021-10-11 23:28:44 +00:00
< / section >
< / section >
< section id = "running-inside-of-mock" >
2017-11-28 17:18:51 +00:00
< h2 > Running inside of mock< a class = "headerlink" href = "#running-inside-of-mock" title = "Permalink to this headline" > ¶< / a > < / h2 >
2020-02-12 21:24:33 +00:00
< p > As of mock version 2.0 you no longer need to pass < code class = "docutils literal notranslate" > < span class = "pre" > --old-chroot< / span > < / code > . You will,
however, need to pass < code class = "docutils literal notranslate" > < span class = "pre" > --enable-network< / span > < / code > so that the mock container can download
packages.< / p >
< p > Older versions of mock, between 1.3.4 and 2.0, will need to pass < code class = "docutils literal notranslate" > < span class = "pre" > --old-chroot< / span > < / code >
to mock. These versions of mock default to using systemd-nspawn which cannot
2018-05-12 00:18:21 +00:00
create the needed loop device nodes. Passing < code class = "docutils literal notranslate" > < span class = "pre" > --old-chroot< / span > < / code > will use the old
system where < code class = "docutils literal notranslate" > < span class = "pre" > /dev/loop*< / span > < / code > is setup for you.< / p >
2021-10-11 23:28:44 +00:00
< / section >
< section id = "how-it-works" >
2016-02-13 00:06:33 +00:00
< h2 > How it works< a class = "headerlink" href = "#how-it-works" title = "Permalink to this headline" > ¶< / a > < / h2 >
< p > Lorax uses < a class = "reference external" href = "https://github.com/rpm-software-management/dnf" > dnf< / a > to install
packages into a temporary directory, sets up configuration files, it then
removes unneeded files to save space, and creates a squashfs filesystem of the
files. The iso is then built using a generic initramfs and the kernel from the
selected repositories.< / p >
< p > To drive these processes Lorax uses a custom template system, based on < a class = "reference external" href = "http://www.makotemplates.org/" > Mako
templates< / a > with the addition of custom
2018-08-13 23:43:20 +00:00
commands (documented in < a class = "reference internal" href = "pylorax.html#pylorax.ltmpl.LoraxTemplateRunner" title = "pylorax.ltmpl.LoraxTemplateRunner" > < code class = "xref py py-class docutils literal notranslate" > < span class = "pre" > pylorax.ltmpl.LoraxTemplateRunner< / span > < / code > < / a > ). Mako
2018-05-12 00:18:21 +00:00
supports < code class = "docutils literal notranslate" > < span class = "pre" > %if/%endif< / span > < / code > blocks as well as free-form python code inside < code class = "docutils literal notranslate" > < span class = "pre" > < %< / span >
< span class = "pre" > %> < / span > < / code > tags and variable substitution with < code class = "docutils literal notranslate" > < span class = "pre" > ${}< / span > < / code > . The default templates are
shipped with lorax in < code class = "docutils literal notranslate" > < span class = "pre" > /usr/share/lorax/templates.d/99-generic/< / span > < / code > and use the
< code class = "docutils literal notranslate" > < span class = "pre" > .tmpl< / span > < / code > extension.< / p >
2021-10-11 23:28:44 +00:00
< section id = "runtime-install-tmpl" >
2016-02-13 00:06:33 +00:00
< h3 > runtime-install.tmpl< a class = "headerlink" href = "#runtime-install-tmpl" title = "Permalink to this headline" > ¶< / a > < / h3 >
2018-05-12 00:18:21 +00:00
< p > The < code class = "docutils literal notranslate" > < span class = "pre" > runtime-install.tmpl< / span > < / code > template lists packages to be installed using the
< code class = "docutils literal notranslate" > < span class = "pre" > installpkg< / span > < / code > command. This template is fairly simple, installing common packages and
architecture specific packages. It must end with the < code class = "docutils literal notranslate" > < span class = "pre" > run_pkg_transaction< / span > < / code >
2016-02-13 00:06:33 +00:00
command which tells dnf to download and install the packages.< / p >
2021-10-11 23:28:44 +00:00
< / section >
< section id = "runtime-postinstall-tmpl" >
2016-02-13 00:06:33 +00:00
< h3 > runtime-postinstall.tmpl< a class = "headerlink" href = "#runtime-postinstall-tmpl" title = "Permalink to this headline" > ¶< / a > < / h3 >
2018-05-12 00:18:21 +00:00
< p > The < code class = "docutils literal notranslate" > < span class = "pre" > runtime-postinstall.tmpl< / span > < / code > template is where the system configuration
2016-02-13 00:06:33 +00:00
happens. The installer environment is similar to a normal running system, but
needs some special handling. Configuration files are setup, systemd is told to
start the anaconda.target instead of a default system target, and a number of
unneeded services are disabled, some of which can interfere with the
installation. A number of template commands are used here:< / p >
< ul class = "simple" >
2019-03-27 23:44:14 +00:00
< li > < p > < a class = "reference internal" href = "pylorax.html#pylorax.ltmpl.LoraxTemplateRunner.append" title = "pylorax.ltmpl.LoraxTemplateRunner.append" > < code class = "xref py py-func docutils literal notranslate" > < span class = "pre" > append< / span > < / code > < / a > to add text to a file.< / p > < / li >
< li > < p > < a class = "reference internal" href = "pylorax.html#pylorax.ltmpl.LoraxTemplateRunner.chmod" title = "pylorax.ltmpl.LoraxTemplateRunner.chmod" > < code class = "xref py py-func docutils literal notranslate" > < span class = "pre" > chmod< / span > < / code > < / a > changes the file's mode.< / p > < / li >
< li > < p > < a class = "reference internal" href = "pylorax.html#pylorax.ltmpl.LoraxTemplateRunner.install" title = "pylorax.ltmpl.LoraxTemplateRunner.install" > < code class = "xref py py-func docutils literal notranslate" > < span class = "pre" > install< / span > < / code > < / a > to install a file into the installroot.< / p > < / li >
< li > < p > < a class = "reference internal" href = "pylorax.html#pylorax.ltmpl.LoraxTemplateRunner.mkdir" title = "pylorax.ltmpl.LoraxTemplateRunner.mkdir" > < code class = "xref py py-func docutils literal notranslate" > < span class = "pre" > mkdir< / span > < / code > < / a > makes a new directory.< / p > < / li >
< li > < p > < a class = "reference internal" href = "pylorax.html#pylorax.ltmpl.LoraxTemplateRunner.move" title = "pylorax.ltmpl.LoraxTemplateRunner.move" > < code class = "xref py py-func docutils literal notranslate" > < span class = "pre" > move< / span > < / code > < / a > to move a file into the installroot< / p > < / li >
< li > < p > < a class = "reference internal" href = "pylorax.html#pylorax.ltmpl.LoraxTemplateRunner.replace" title = "pylorax.ltmpl.LoraxTemplateRunner.replace" > < code class = "xref py py-func docutils literal notranslate" > < span class = "pre" > replace< / span > < / code > < / a > does text substitution in a file< / p > < / li >
< li > < p > < a class = "reference internal" href = "pylorax.html#pylorax.ltmpl.LoraxTemplateRunner.remove" title = "pylorax.ltmpl.LoraxTemplateRunner.remove" > < code class = "xref py py-func docutils literal notranslate" > < span class = "pre" > remove< / span > < / code > < / a > deletes a file< / p > < / li >
< li > < p > < a class = "reference internal" href = "pylorax.html#pylorax.ltmpl.LoraxTemplateRunner.runcmd" title = "pylorax.ltmpl.LoraxTemplateRunner.runcmd" > < code class = "xref py py-func docutils literal notranslate" > < span class = "pre" > runcmd< / span > < / code > < / a > run arbitrary commands.< / p > < / li >
< li > < p > < a class = "reference internal" href = "pylorax.html#pylorax.ltmpl.LoraxTemplateRunner.symlink" title = "pylorax.ltmpl.LoraxTemplateRunner.symlink" > < code class = "xref py py-func docutils literal notranslate" > < span class = "pre" > symlink< / span > < / code > < / a > creates a symlink< / p > < / li >
< li > < p > < a class = "reference internal" href = "pylorax.html#pylorax.ltmpl.LoraxTemplateRunner.systemctl" title = "pylorax.ltmpl.LoraxTemplateRunner.systemctl" > < code class = "xref py py-func docutils literal notranslate" > < span class = "pre" > systemctl< / span > < / code > < / a > runs systemctl in the installroot< / p > < / li >
2016-02-13 00:06:33 +00:00
< / ul >
2021-10-11 23:28:44 +00:00
< / section >
< section id = "runtime-cleanup-tmpl" >
2016-02-13 00:06:33 +00:00
< h3 > runtime-cleanup.tmpl< a class = "headerlink" href = "#runtime-cleanup-tmpl" title = "Permalink to this headline" > ¶< / a > < / h3 >
2019-03-27 23:44:14 +00:00
< p > The < code class = "docutils literal notranslate" > < span class = "pre" > runtime-cleanup.tmpl< / span > < / code > template is used to remove files that aren't strictly needed
2018-05-12 00:18:21 +00:00
by the installation environment. In addition to the < code class = "docutils literal notranslate" > < span class = "pre" > remove< / span > < / code > template command it uses:< / p >
2016-02-13 00:06:33 +00:00
< ul class = "simple" >
2019-03-27 23:44:14 +00:00
< li > < p > < a class = "reference internal" href = "pylorax.html#pylorax.ltmpl.LoraxTemplateRunner.removepkg" title = "pylorax.ltmpl.LoraxTemplateRunner.removepkg" > < code class = "xref py py-func docutils literal notranslate" > < span class = "pre" > removepkg< / span > < / code > < / a >
remove all of a specific package's contents. A package may be pulled in as a dependency, but
not really used. eg. sound support.< / p > < / li >
< li > < p > < a class = "reference internal" href = "pylorax.html#pylorax.ltmpl.LoraxTemplateRunner.removefrom" title = "pylorax.ltmpl.LoraxTemplateRunner.removefrom" > < code class = "xref py py-func docutils literal notranslate" > < span class = "pre" > removefrom< / span > < / code > < / a >
Removes some files from a package. A file glob can be used, or the --allbut option to
remove everything except a select few.< / p > < / li >
< li > < p > < a class = "reference internal" href = "pylorax.html#pylorax.ltmpl.LoraxTemplateRunner.removekmod" title = "pylorax.ltmpl.LoraxTemplateRunner.removekmod" > < code class = "xref py py-func docutils literal notranslate" > < span class = "pre" > removekmod< / span > < / code > < / a >
Removes kernel modules< / p > < / li >
2016-02-13 00:06:33 +00:00
< / ul >
2021-10-11 23:28:44 +00:00
< / section >
< section id = "the-squashfs-filesystem" >
2016-02-13 00:06:33 +00:00
< h3 > The squashfs filesystem< a class = "headerlink" href = "#the-squashfs-filesystem" title = "Permalink to this headline" > ¶< / a > < / h3 >
2018-05-12 00:18:21 +00:00
< p > After < code class = "docutils literal notranslate" > < span class = "pre" > runtime-*.tmpl< / span > < / code > templates have finished their work lorax creates an
2016-02-13 00:06:33 +00:00
empty ext4 filesystem, copies the remaining files to it, and makes a squashfs
2019-03-27 23:44:14 +00:00
filesystem of it. This file is the / of the boot.iso's installer environment
2016-02-13 00:06:33 +00:00
and is what is in the LiveOS/squashfs.img file on the iso.< / p >
2021-10-11 23:28:44 +00:00
< / section >
< section id = "iso-creation" >
2016-02-13 00:06:33 +00:00
< h3 > iso creation< a class = "headerlink" href = "#iso-creation" title = "Permalink to this headline" > ¶< / a > < / h3 >
< p > The iso creation is handled by another set of templates. The one used depends
on the architecture that the iso is being created for. They are also stored in
2018-05-12 00:18:21 +00:00
< code class = "docutils literal notranslate" > < span class = "pre" > /usr/share/lorax/templates.d/99-generic< / span > < / code > and are named after the arch, like
< code class = "docutils literal notranslate" > < span class = "pre" > x86.tmpl< / span > < / code > and < code class = "docutils literal notranslate" > < span class = "pre" > aarch64.tmpl< / span > < / code > . They handle creation of the tree, copying
2016-02-13 00:06:33 +00:00
configuration template files, configuration variable substitution, treeinfo
2018-08-13 23:43:20 +00:00
metadata (via the < a class = "reference internal" href = "pylorax.html#pylorax.ltmpl.LoraxTemplateRunner.treeinfo" title = "pylorax.ltmpl.LoraxTemplateRunner.treeinfo" > < code class = "xref py py-func docutils literal notranslate" > < span class = "pre" > treeinfo< / span > < / code > < / a >
2016-02-13 00:06:33 +00:00
template command). Kernel and initrd are copied from the installroot to their
2019-03-27 23:44:14 +00:00
final locations and then xorrisofs is run to create the boot.iso< / p >
2021-10-11 23:28:44 +00:00
< / section >
< / section >
< section id = "custom-templates" >
2016-02-13 00:06:33 +00:00
< h2 > Custom Templates< a class = "headerlink" href = "#custom-templates" title = "Permalink to this headline" > ¶< / a > < / h2 >
< p > The default set of templates and configuration files from the lorax-generic-templates package
2018-05-12 00:18:21 +00:00
are shipped in the < code class = "docutils literal notranslate" > < span class = "pre" > /usr/share/lorax/templates.d/99-generic/< / span > < / code > directory. You can
make a copy of them and place them into another directory under < code class = "docutils literal notranslate" > < span class = "pre" > templates.d< / span > < / code >
2016-02-13 00:06:33 +00:00
and they will be used instead if their sort order is below all other directories. This
allows multiple packages to ship lorax templates without conflict. You can (and probably
2018-05-12 00:18:21 +00:00
should) select the specific template directory by passing < code class = "docutils literal notranslate" > < span class = "pre" > --sharedir< / span > < / code > to lorax.< / p >
2021-10-11 23:28:44 +00:00
< / section >
< / section >
2015-05-11 23:44:09 +00:00
2017-11-28 17:18:51 +00:00
< / div >
2015-05-11 23:44:09 +00:00
< / div >
2021-10-11 23:28:44 +00:00
< footer > < div class = "rst-footer-buttons" role = "navigation" aria-label = "Footer" >
2021-04-23 20:42:41 +00:00
< a href = "intro.html" class = "btn btn-neutral float-left" title = "Introduction to Lorax" accesskey = "p" rel = "prev" > < span class = "fa fa-arrow-circle-left" aria-hidden = "true" > < / span > Previous< / a >
2021-10-11 23:28:44 +00:00
< a href = "livemedia-creator.html" class = "btn btn-neutral float-right" title = "livemedia-creator" accesskey = "n" rel = "next" > Next < span class = "fa fa-arrow-circle-right" aria-hidden = "true" > < / span > < / a >
2015-05-11 23:44:09 +00:00
< / div >
< hr / >
< div role = "contentinfo" >
2021-10-11 23:28:44 +00:00
< p > © Copyright 2018, Red Hat, Inc..< / p >
2015-05-11 23:44:09 +00:00
< / div >
2021-10-11 23:28:44 +00:00
Built with < a href = "https://www.sphinx-doc.org/" > Sphinx< / a > using a
2021-04-23 20:42:41 +00:00
< a href = "https://github.com/readthedocs/sphinx_rtd_theme" > theme< / a >
2021-10-11 23:28:44 +00:00
provided by < a href = "https://readthedocs.org" > Read the Docs< / a > .
2015-07-10 18:39:39 +00:00
2015-05-11 23:44:09 +00:00
< / footer >
< / div >
< / div >
< / section >
< / div >
2021-10-11 23:28:44 +00:00
< script >
2015-05-11 23:44:09 +00:00
jQuery(function () {
2018-06-04 23:27:56 +00:00
SphinxRtdTheme.Navigation.enable(true);
2015-05-11 23:44:09 +00:00
});
2021-10-11 23:28:44 +00:00
< / script >
2015-05-11 23:44:09 +00:00
< / body >
< / html >