Lorax 28.2 Documentation
@ -1,4 +1,4 @@
|
|||||||
# Sphinx build info version 1
|
# Sphinx build info version 1
|
||||||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
|
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
|
||||||
config: 11c6f98750cb29c4471896c8eb138869
|
config: f1415c4a8da85a626a1e43de08e00a62
|
||||||
tags: 645f666f9bcd5a90fca523b33c5a78b7
|
tags: 645f666f9bcd5a90fca523b33c5a78b7
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<title>Overview: module code — Lorax 26.2 documentation</title>
|
<title>Overview: module code — Lorax 28.2 documentation</title>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -33,7 +35,7 @@
|
|||||||
<link rel="index" title="Index"
|
<link rel="index" title="Index"
|
||||||
href="../genindex.html"/>
|
href="../genindex.html"/>
|
||||||
<link rel="search" title="Search" href="../search.html"/>
|
<link rel="search" title="Search" href="../search.html"/>
|
||||||
<link rel="top" title="Lorax 26.2 documentation" href="../index.html"/>
|
<link rel="top" title="Lorax 28.2 documentation" href="../index.html"/>
|
||||||
|
|
||||||
|
|
||||||
<script src="../_static/js/modernizr.min.js"></script>
|
<script src="../_static/js/modernizr.min.js"></script>
|
||||||
@ -42,6 +44,7 @@
|
|||||||
|
|
||||||
<body class="wy-body-for-nav" role="document">
|
<body class="wy-body-for-nav" role="document">
|
||||||
|
|
||||||
|
|
||||||
<div class="wy-grid-for-nav">
|
<div class="wy-grid-for-nav">
|
||||||
|
|
||||||
|
|
||||||
@ -61,7 +64,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="version">
|
<div class="version">
|
||||||
26.2
|
28.2
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -82,6 +85,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<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">Introduction to Lorax</a></li>
|
||||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html#before-lorax">Before Lorax</a></li>
|
<li class="toctree-l1"><a class="reference internal" href="../intro.html#before-lorax">Before Lorax</a></li>
|
||||||
@ -101,8 +107,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||||
|
|
||||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||||
<a href="../index.html">Lorax</a>
|
<a href="../index.html">Lorax</a>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
@ -115,17 +123,34 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div role="navigation" aria-label="breadcrumbs navigation">
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
||||||
|
|
||||||
<ul class="wy-breadcrumbs">
|
<ul class="wy-breadcrumbs">
|
||||||
|
|
||||||
<li><a href="../index.html">Docs</a> »</li>
|
<li><a href="../index.html">Docs</a> »</li>
|
||||||
|
|
||||||
<li>Overview: module code</li>
|
<li>Overview: module code</li>
|
||||||
|
|
||||||
|
|
||||||
<li class="wy-breadcrumbs-aside">
|
<li class="wy-breadcrumbs-aside">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||||
@ -149,6 +174,9 @@
|
|||||||
<li><a href="pylorax/treeinfo.html">pylorax.treeinfo</a></li>
|
<li><a href="pylorax/treeinfo.html">pylorax.treeinfo</a></li>
|
||||||
</ul></ul>
|
</ul></ul>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="articleComments">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
@ -180,10 +208,11 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var DOCUMENTATION_OPTIONS = {
|
var DOCUMENTATION_OPTIONS = {
|
||||||
URL_ROOT:'../',
|
URL_ROOT:'../',
|
||||||
VERSION:'26.2',
|
VERSION:'28.2',
|
||||||
COLLAPSE_INDEX:false,
|
COLLAPSE_INDEX:false,
|
||||||
FILE_SUFFIX:'.html',
|
FILE_SUFFIX:'.html',
|
||||||
HAS_SOURCE: true
|
HAS_SOURCE: true,
|
||||||
|
SOURCELINK_SUFFIX: '.txt'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<title>pylorax — Lorax 26.2 documentation</title>
|
<title>pylorax — Lorax 28.2 documentation</title>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -33,7 +35,7 @@
|
|||||||
<link rel="index" title="Index"
|
<link rel="index" title="Index"
|
||||||
href="../genindex.html"/>
|
href="../genindex.html"/>
|
||||||
<link rel="search" title="Search" href="../search.html"/>
|
<link rel="search" title="Search" href="../search.html"/>
|
||||||
<link rel="top" title="Lorax 26.2 documentation" href="../index.html"/>
|
<link rel="top" title="Lorax 28.2 documentation" href="../index.html"/>
|
||||||
<link rel="up" title="Module code" href="index.html"/>
|
<link rel="up" title="Module code" href="index.html"/>
|
||||||
|
|
||||||
|
|
||||||
@ -43,6 +45,7 @@
|
|||||||
|
|
||||||
<body class="wy-body-for-nav" role="document">
|
<body class="wy-body-for-nav" role="document">
|
||||||
|
|
||||||
|
|
||||||
<div class="wy-grid-for-nav">
|
<div class="wy-grid-for-nav">
|
||||||
|
|
||||||
|
|
||||||
@ -62,7 +65,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="version">
|
<div class="version">
|
||||||
26.2
|
28.2
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -83,6 +86,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<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">Introduction to Lorax</a></li>
|
||||||
<li class="toctree-l1"><a class="reference internal" href="../intro.html#before-lorax">Before Lorax</a></li>
|
<li class="toctree-l1"><a class="reference internal" href="../intro.html#before-lorax">Before Lorax</a></li>
|
||||||
@ -102,8 +108,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||||
|
|
||||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||||
<a href="../index.html">Lorax</a>
|
<a href="../index.html">Lorax</a>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
@ -116,19 +124,36 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div role="navigation" aria-label="breadcrumbs navigation">
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
||||||
|
|
||||||
<ul class="wy-breadcrumbs">
|
<ul class="wy-breadcrumbs">
|
||||||
|
|
||||||
<li><a href="../index.html">Docs</a> »</li>
|
<li><a href="../index.html">Docs</a> »</li>
|
||||||
|
|
||||||
<li><a href="index.html">Module code</a> »</li>
|
<li><a href="index.html">Module code</a> »</li>
|
||||||
|
|
||||||
<li>pylorax</li>
|
<li>pylorax</li>
|
||||||
|
|
||||||
|
|
||||||
<li class="wy-breadcrumbs-aside">
|
<li class="wy-breadcrumbs-aside">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||||
@ -186,6 +211,15 @@
|
|||||||
<span class="kn">from</span> <span class="nn">pylorax.discinfo</span> <span class="k">import</span> <span class="n">DiscInfo</span>
|
<span class="kn">from</span> <span class="nn">pylorax.discinfo</span> <span class="k">import</span> <span class="n">DiscInfo</span>
|
||||||
<span class="kn">from</span> <span class="nn">pylorax.executils</span> <span class="k">import</span> <span class="n">runcmd</span><span class="p">,</span> <span class="n">runcmd_output</span>
|
<span class="kn">from</span> <span class="nn">pylorax.executils</span> <span class="k">import</span> <span class="n">runcmd</span><span class="p">,</span> <span class="n">runcmd_output</span>
|
||||||
|
|
||||||
|
|
||||||
|
<span class="c1"># get lorax version</span>
|
||||||
|
<span class="k">try</span><span class="p">:</span>
|
||||||
|
<span class="kn">import</span> <span class="nn">pylorax.version</span>
|
||||||
|
<span class="k">except</span> <span class="ne">ImportError</span><span class="p">:</span>
|
||||||
|
<span class="n">vernum</span> <span class="o">=</span> <span class="s2">"devel"</span>
|
||||||
|
<span class="k">else</span><span class="p">:</span>
|
||||||
|
<span class="n">vernum</span> <span class="o">=</span> <span class="n">pylorax</span><span class="o">.</span><span class="n">version</span><span class="o">.</span><span class="n">num</span>
|
||||||
|
|
||||||
<span class="c1"># List of drivers to remove on ppc64 arch to keep initrd < 32MiB</span>
|
<span class="c1"># List of drivers to remove on ppc64 arch to keep initrd < 32MiB</span>
|
||||||
<span class="n">REMOVE_PPC64_DRIVERS</span> <span class="o">=</span> <span class="s2">"floppy scsi_debug nouveau radeon cirrus mgag200"</span>
|
<span class="n">REMOVE_PPC64_DRIVERS</span> <span class="o">=</span> <span class="s2">"floppy scsi_debug nouveau radeon cirrus mgag200"</span>
|
||||||
<span class="n">REMOVE_PPC64_MODULES</span> <span class="o">=</span> <span class="s2">"drm plymouth"</span>
|
<span class="n">REMOVE_PPC64_MODULES</span> <span class="o">=</span> <span class="s2">"drm plymouth"</span>
|
||||||
@ -197,7 +231,7 @@
|
|||||||
<span class="n">arm</span><span class="o">=</span><span class="s2">"arm"</span><span class="p">,</span> <span class="n">armhfp</span><span class="o">=</span><span class="s2">"arm"</span><span class="p">)</span>
|
<span class="n">arm</span><span class="o">=</span><span class="s2">"arm"</span><span class="p">,</span> <span class="n">armhfp</span><span class="o">=</span><span class="s2">"arm"</span><span class="p">)</span>
|
||||||
|
|
||||||
<span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">buildarch</span><span class="p">):</span>
|
<span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">buildarch</span><span class="p">):</span>
|
||||||
<span class="nb">super</span><span class="p">(</span><span class="n">ArchData</span><span class="p">,</span> <span class="bp">self</span><span class="p">)</span><span class="o">.</span><span class="n">__init__</span><span class="p">()</span>
|
<span class="nb">super</span><span class="p">(</span><span class="n">ArchData</span><span class="p">,</span> <span class="bp">self</span><span class="p">)</span><span class="o">.</span><span class="fm">__init__</span><span class="p">()</span>
|
||||||
<span class="bp">self</span><span class="o">.</span><span class="n">buildarch</span> <span class="o">=</span> <span class="n">buildarch</span>
|
<span class="bp">self</span><span class="o">.</span><span class="n">buildarch</span> <span class="o">=</span> <span class="n">buildarch</span>
|
||||||
<span class="bp">self</span><span class="o">.</span><span class="n">basearch</span> <span class="o">=</span> <span class="n">dnf</span><span class="o">.</span><span class="n">rpm</span><span class="o">.</span><span class="n">basearch</span><span class="p">(</span><span class="n">buildarch</span><span class="p">)</span>
|
<span class="bp">self</span><span class="o">.</span><span class="n">basearch</span> <span class="o">=</span> <span class="n">dnf</span><span class="o">.</span><span class="n">rpm</span><span class="o">.</span><span class="n">basearch</span><span class="p">(</span><span class="n">buildarch</span><span class="p">)</span>
|
||||||
<span class="bp">self</span><span class="o">.</span><span class="n">libdir</span> <span class="o">=</span> <span class="s2">"lib64"</span> <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">basearch</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">lib64_arches</span> <span class="k">else</span> <span class="s2">"lib"</span>
|
<span class="bp">self</span><span class="o">.</span><span class="n">libdir</span> <span class="o">=</span> <span class="s2">"lib64"</span> <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">basearch</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">lib64_arches</span> <span class="k">else</span> <span class="s2">"lib"</span>
|
||||||
@ -206,7 +240,7 @@
|
|||||||
<div class="viewcode-block" id="Lorax"><a class="viewcode-back" href="../pylorax.html#pylorax.Lorax">[docs]</a><span class="k">class</span> <span class="nc">Lorax</span><span class="p">(</span><span class="n">BaseLoraxClass</span><span class="p">):</span>
|
<div class="viewcode-block" id="Lorax"><a class="viewcode-back" href="../pylorax.html#pylorax.Lorax">[docs]</a><span class="k">class</span> <span class="nc">Lorax</span><span class="p">(</span><span class="n">BaseLoraxClass</span><span class="p">):</span>
|
||||||
|
|
||||||
<span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
|
<span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
|
||||||
<span class="n">BaseLoraxClass</span><span class="o">.</span><span class="n">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span>
|
<span class="n">BaseLoraxClass</span><span class="o">.</span><span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span>
|
||||||
<span class="bp">self</span><span class="o">.</span><span class="n">_configured</span> <span class="o">=</span> <span class="kc">False</span>
|
<span class="bp">self</span><span class="o">.</span><span class="n">_configured</span> <span class="o">=</span> <span class="kc">False</span>
|
||||||
<span class="bp">self</span><span class="o">.</span><span class="n">product</span> <span class="o">=</span> <span class="kc">None</span>
|
<span class="bp">self</span><span class="o">.</span><span class="n">product</span> <span class="o">=</span> <span class="kc">None</span>
|
||||||
<span class="bp">self</span><span class="o">.</span><span class="n">workdir</span> <span class="o">=</span> <span class="kc">None</span>
|
<span class="bp">self</span><span class="o">.</span><span class="n">workdir</span> <span class="o">=</span> <span class="kc">None</span>
|
||||||
@ -315,14 +349,6 @@
|
|||||||
<span class="n">installpkgs</span> <span class="o">=</span> <span class="n">installpkgs</span> <span class="ow">or</span> <span class="p">[]</span>
|
<span class="n">installpkgs</span> <span class="o">=</span> <span class="n">installpkgs</span> <span class="ow">or</span> <span class="p">[]</span>
|
||||||
<span class="n">excludepkgs</span> <span class="o">=</span> <span class="n">excludepkgs</span> <span class="ow">or</span> <span class="p">[]</span>
|
<span class="n">excludepkgs</span> <span class="o">=</span> <span class="n">excludepkgs</span> <span class="ow">or</span> <span class="p">[]</span>
|
||||||
|
|
||||||
<span class="c1"># get lorax version</span>
|
|
||||||
<span class="k">try</span><span class="p">:</span>
|
|
||||||
<span class="kn">import</span> <span class="nn">pylorax.version</span>
|
|
||||||
<span class="k">except</span> <span class="ne">ImportError</span><span class="p">:</span>
|
|
||||||
<span class="n">vernum</span> <span class="o">=</span> <span class="s2">"devel"</span>
|
|
||||||
<span class="k">else</span><span class="p">:</span>
|
|
||||||
<span class="n">vernum</span> <span class="o">=</span> <span class="n">pylorax</span><span class="o">.</span><span class="n">version</span><span class="o">.</span><span class="n">num</span>
|
|
||||||
|
|
||||||
<span class="k">if</span> <span class="n">domacboot</span><span class="p">:</span>
|
<span class="k">if</span> <span class="n">domacboot</span><span class="p">:</span>
|
||||||
<span class="k">try</span><span class="p">:</span>
|
<span class="k">try</span><span class="p">:</span>
|
||||||
<span class="n">runcmd</span><span class="p">([</span><span class="s2">"rpm"</span><span class="p">,</span> <span class="s2">"-q"</span><span class="p">,</span> <span class="s2">"hfsplus-tools"</span><span class="p">])</span>
|
<span class="n">runcmd</span><span class="p">([</span><span class="s2">"rpm"</span><span class="p">,</span> <span class="s2">"-q"</span><span class="p">,</span> <span class="s2">"hfsplus-tools"</span><span class="p">])</span>
|
||||||
@ -477,7 +503,7 @@
|
|||||||
<span class="n">workdir</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">workdir</span><span class="p">)</span>
|
<span class="n">workdir</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">workdir</span><span class="p">)</span>
|
||||||
|
|
||||||
<span class="n">logger</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="s2">"rebuilding initramfs images"</span><span class="p">)</span>
|
<span class="n">logger</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="s2">"rebuilding initramfs images"</span><span class="p">)</span>
|
||||||
<span class="n">dracut_args</span> <span class="o">=</span> <span class="p">[</span><span class="s2">"--xz"</span><span class="p">,</span> <span class="s2">"--install"</span><span class="p">,</span> <span class="s2">"/.buildstamp"</span><span class="p">,</span> <span class="s2">"--no-early-microcode"</span><span class="p">]</span>
|
<span class="n">dracut_args</span> <span class="o">=</span> <span class="p">[</span><span class="s2">"--xz"</span><span class="p">,</span> <span class="s2">"--install"</span><span class="p">,</span> <span class="s2">"/.buildstamp"</span><span class="p">,</span> <span class="s2">"--no-early-microcode"</span><span class="p">,</span> <span class="s2">"--add"</span><span class="p">,</span> <span class="s2">"fips"</span><span class="p">]</span>
|
||||||
<span class="n">anaconda_args</span> <span class="o">=</span> <span class="n">dracut_args</span> <span class="o">+</span> <span class="p">[</span><span class="s2">"--add"</span><span class="p">,</span> <span class="s2">"anaconda pollcdrom qemu qemu-net"</span><span class="p">]</span>
|
<span class="n">anaconda_args</span> <span class="o">=</span> <span class="n">dracut_args</span> <span class="o">+</span> <span class="p">[</span><span class="s2">"--add"</span><span class="p">,</span> <span class="s2">"anaconda pollcdrom qemu qemu-net"</span><span class="p">]</span>
|
||||||
|
|
||||||
<span class="c1"># ppc64 cannot boot an initrd > 32MiB so remove some drivers</span>
|
<span class="c1"># ppc64 cannot boot an initrd > 32MiB so remove some drivers</span>
|
||||||
@ -510,12 +536,12 @@
|
|||||||
<span class="n">buildarch</span> <span class="o">=</span> <span class="kc">None</span>
|
<span class="n">buildarch</span> <span class="o">=</span> <span class="kc">None</span>
|
||||||
<span class="n">q</span> <span class="o">=</span> <span class="n">dbo</span><span class="o">.</span><span class="n">sack</span><span class="o">.</span><span class="n">query</span><span class="p">()</span>
|
<span class="n">q</span> <span class="o">=</span> <span class="n">dbo</span><span class="o">.</span><span class="n">sack</span><span class="o">.</span><span class="n">query</span><span class="p">()</span>
|
||||||
<span class="n">a</span> <span class="o">=</span> <span class="n">q</span><span class="o">.</span><span class="n">available</span><span class="p">()</span>
|
<span class="n">a</span> <span class="o">=</span> <span class="n">q</span><span class="o">.</span><span class="n">available</span><span class="p">()</span>
|
||||||
<span class="k">for</span> <span class="n">anaconda</span> <span class="ow">in</span> <span class="n">a</span><span class="o">.</span><span class="n">filter</span><span class="p">(</span><span class="n">name</span><span class="o">=</span><span class="s2">"anaconda"</span><span class="p">):</span>
|
<span class="k">for</span> <span class="n">anaconda</span> <span class="ow">in</span> <span class="n">a</span><span class="o">.</span><span class="n">filter</span><span class="p">(</span><span class="n">name</span><span class="o">=</span><span class="s2">"anaconda-core"</span><span class="p">):</span>
|
||||||
<span class="k">if</span> <span class="n">anaconda</span><span class="o">.</span><span class="n">arch</span> <span class="o">!=</span> <span class="s2">"src"</span><span class="p">:</span>
|
<span class="k">if</span> <span class="n">anaconda</span><span class="o">.</span><span class="n">arch</span> <span class="o">!=</span> <span class="s2">"src"</span><span class="p">:</span>
|
||||||
<span class="n">buildarch</span> <span class="o">=</span> <span class="n">anaconda</span><span class="o">.</span><span class="n">arch</span>
|
<span class="n">buildarch</span> <span class="o">=</span> <span class="n">anaconda</span><span class="o">.</span><span class="n">arch</span>
|
||||||
<span class="k">break</span>
|
<span class="k">break</span>
|
||||||
<span class="k">if</span> <span class="ow">not</span> <span class="n">buildarch</span><span class="p">:</span>
|
<span class="k">if</span> <span class="ow">not</span> <span class="n">buildarch</span><span class="p">:</span>
|
||||||
<span class="n">logger</span><span class="o">.</span><span class="n">critical</span><span class="p">(</span><span class="s2">"no anaconda package in the repository"</span><span class="p">)</span>
|
<span class="n">logger</span><span class="o">.</span><span class="n">critical</span><span class="p">(</span><span class="s2">"no anaconda-core package in the repository"</span><span class="p">)</span>
|
||||||
<span class="n">sys</span><span class="o">.</span><span class="n">exit</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span>
|
<span class="n">sys</span><span class="o">.</span><span class="n">exit</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span>
|
||||||
|
|
||||||
<span class="k">return</span> <span class="n">buildarch</span></div>
|
<span class="k">return</span> <span class="n">buildarch</span></div>
|
||||||
@ -579,6 +605,9 @@
|
|||||||
<span class="k">return</span> <span class="n">templatedir</span></div>
|
<span class="k">return</span> <span class="n">templatedir</span></div>
|
||||||
</pre></div>
|
</pre></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="articleComments">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
@ -610,10 +639,11 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var DOCUMENTATION_OPTIONS = {
|
var DOCUMENTATION_OPTIONS = {
|
||||||
URL_ROOT:'../',
|
URL_ROOT:'../',
|
||||||
VERSION:'26.2',
|
VERSION:'28.2',
|
||||||
COLLAPSE_INDEX:false,
|
COLLAPSE_INDEX:false,
|
||||||
FILE_SUFFIX:'.html',
|
FILE_SUFFIX:'.html',
|
||||||
HAS_SOURCE: true
|
HAS_SOURCE: true,
|
||||||
|
SOURCELINK_SUFFIX: '.txt'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<title>pylorax.base — Lorax 26.2 documentation</title>
|
<title>pylorax.base — Lorax 28.2 documentation</title>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -33,7 +35,7 @@
|
|||||||
<link rel="index" title="Index"
|
<link rel="index" title="Index"
|
||||||
href="../../genindex.html"/>
|
href="../../genindex.html"/>
|
||||||
<link rel="search" title="Search" href="../../search.html"/>
|
<link rel="search" title="Search" href="../../search.html"/>
|
||||||
<link rel="top" title="Lorax 26.2 documentation" href="../../index.html"/>
|
<link rel="top" title="Lorax 28.2 documentation" href="../../index.html"/>
|
||||||
<link rel="up" title="pylorax" href="../pylorax.html"/>
|
<link rel="up" title="pylorax" href="../pylorax.html"/>
|
||||||
|
|
||||||
|
|
||||||
@ -43,6 +45,7 @@
|
|||||||
|
|
||||||
<body class="wy-body-for-nav" role="document">
|
<body class="wy-body-for-nav" role="document">
|
||||||
|
|
||||||
|
|
||||||
<div class="wy-grid-for-nav">
|
<div class="wy-grid-for-nav">
|
||||||
|
|
||||||
|
|
||||||
@ -62,7 +65,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="version">
|
<div class="version">
|
||||||
26.2
|
28.2
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -83,6 +86,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<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">Introduction to Lorax</a></li>
|
||||||
<li class="toctree-l1"><a class="reference internal" href="../../intro.html#before-lorax">Before Lorax</a></li>
|
<li class="toctree-l1"><a class="reference internal" href="../../intro.html#before-lorax">Before Lorax</a></li>
|
||||||
@ -102,8 +108,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||||
|
|
||||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||||
<a href="../../index.html">Lorax</a>
|
<a href="../../index.html">Lorax</a>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
@ -116,8 +124,20 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div role="navigation" aria-label="breadcrumbs navigation">
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
||||||
|
|
||||||
<ul class="wy-breadcrumbs">
|
<ul class="wy-breadcrumbs">
|
||||||
|
|
||||||
<li><a href="../../index.html">Docs</a> »</li>
|
<li><a href="../../index.html">Docs</a> »</li>
|
||||||
|
|
||||||
<li><a href="../index.html">Module code</a> »</li>
|
<li><a href="../index.html">Module code</a> »</li>
|
||||||
@ -125,12 +145,17 @@
|
|||||||
<li><a href="../pylorax.html">pylorax</a> »</li>
|
<li><a href="../pylorax.html">pylorax</a> »</li>
|
||||||
|
|
||||||
<li>pylorax.base</li>
|
<li>pylorax.base</li>
|
||||||
|
|
||||||
|
|
||||||
<li class="wy-breadcrumbs-aside">
|
<li class="wy-breadcrumbs-aside">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||||
@ -188,7 +213,7 @@
|
|||||||
<div class="viewcode-block" id="DataHolder"><a class="viewcode-back" href="../../pylorax.html#pylorax.base.DataHolder">[docs]</a><span class="k">class</span> <span class="nc">DataHolder</span><span class="p">(</span><span class="nb">dict</span><span class="p">):</span>
|
<div class="viewcode-block" id="DataHolder"><a class="viewcode-back" href="../../pylorax.html#pylorax.base.DataHolder">[docs]</a><span class="k">class</span> <span class="nc">DataHolder</span><span class="p">(</span><span class="nb">dict</span><span class="p">):</span>
|
||||||
|
|
||||||
<span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span>
|
<span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span>
|
||||||
<span class="nb">dict</span><span class="o">.</span><span class="n">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span>
|
<span class="nb">dict</span><span class="o">.</span><span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span>
|
||||||
|
|
||||||
<span class="k">for</span> <span class="n">attr</span><span class="p">,</span> <span class="n">value</span> <span class="ow">in</span> <span class="n">kwargs</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
|
<span class="k">for</span> <span class="n">attr</span><span class="p">,</span> <span class="n">value</span> <span class="ow">in</span> <span class="n">kwargs</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
|
||||||
<span class="bp">self</span><span class="p">[</span><span class="n">attr</span><span class="p">]</span> <span class="o">=</span> <span class="n">value</span>
|
<span class="bp">self</span><span class="p">[</span><span class="n">attr</span><span class="p">]</span> <span class="o">=</span> <span class="n">value</span>
|
||||||
@ -206,6 +231,9 @@
|
|||||||
<span class="k">return</span> <span class="n">DataHolder</span><span class="p">(</span><span class="o">**</span><span class="nb">dict</span><span class="o">.</span><span class="n">copy</span><span class="p">(</span><span class="bp">self</span><span class="p">))</span></div></div>
|
<span class="k">return</span> <span class="n">DataHolder</span><span class="p">(</span><span class="o">**</span><span class="nb">dict</span><span class="o">.</span><span class="n">copy</span><span class="p">(</span><span class="bp">self</span><span class="p">))</span></div></div>
|
||||||
</pre></div>
|
</pre></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="articleComments">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
@ -237,10 +265,11 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var DOCUMENTATION_OPTIONS = {
|
var DOCUMENTATION_OPTIONS = {
|
||||||
URL_ROOT:'../../',
|
URL_ROOT:'../../',
|
||||||
VERSION:'26.2',
|
VERSION:'28.2',
|
||||||
COLLAPSE_INDEX:false,
|
COLLAPSE_INDEX:false,
|
||||||
FILE_SUFFIX:'.html',
|
FILE_SUFFIX:'.html',
|
||||||
HAS_SOURCE: true
|
HAS_SOURCE: true,
|
||||||
|
SOURCELINK_SUFFIX: '.txt'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<title>pylorax.buildstamp — Lorax 26.2 documentation</title>
|
<title>pylorax.buildstamp — Lorax 28.2 documentation</title>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -33,7 +35,7 @@
|
|||||||
<link rel="index" title="Index"
|
<link rel="index" title="Index"
|
||||||
href="../../genindex.html"/>
|
href="../../genindex.html"/>
|
||||||
<link rel="search" title="Search" href="../../search.html"/>
|
<link rel="search" title="Search" href="../../search.html"/>
|
||||||
<link rel="top" title="Lorax 26.2 documentation" href="../../index.html"/>
|
<link rel="top" title="Lorax 28.2 documentation" href="../../index.html"/>
|
||||||
<link rel="up" title="pylorax" href="../pylorax.html"/>
|
<link rel="up" title="pylorax" href="../pylorax.html"/>
|
||||||
|
|
||||||
|
|
||||||
@ -43,6 +45,7 @@
|
|||||||
|
|
||||||
<body class="wy-body-for-nav" role="document">
|
<body class="wy-body-for-nav" role="document">
|
||||||
|
|
||||||
|
|
||||||
<div class="wy-grid-for-nav">
|
<div class="wy-grid-for-nav">
|
||||||
|
|
||||||
|
|
||||||
@ -62,7 +65,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="version">
|
<div class="version">
|
||||||
26.2
|
28.2
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -83,6 +86,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<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">Introduction to Lorax</a></li>
|
||||||
<li class="toctree-l1"><a class="reference internal" href="../../intro.html#before-lorax">Before Lorax</a></li>
|
<li class="toctree-l1"><a class="reference internal" href="../../intro.html#before-lorax">Before Lorax</a></li>
|
||||||
@ -102,8 +108,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||||
|
|
||||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||||
<a href="../../index.html">Lorax</a>
|
<a href="../../index.html">Lorax</a>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
@ -116,8 +124,20 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div role="navigation" aria-label="breadcrumbs navigation">
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
||||||
|
|
||||||
<ul class="wy-breadcrumbs">
|
<ul class="wy-breadcrumbs">
|
||||||
|
|
||||||
<li><a href="../../index.html">Docs</a> »</li>
|
<li><a href="../../index.html">Docs</a> »</li>
|
||||||
|
|
||||||
<li><a href="../index.html">Module code</a> »</li>
|
<li><a href="../index.html">Module code</a> »</li>
|
||||||
@ -125,12 +145,17 @@
|
|||||||
<li><a href="../pylorax.html">pylorax</a> »</li>
|
<li><a href="../pylorax.html">pylorax</a> »</li>
|
||||||
|
|
||||||
<li>pylorax.buildstamp</li>
|
<li>pylorax.buildstamp</li>
|
||||||
|
|
||||||
|
|
||||||
<li class="wy-breadcrumbs-aside">
|
<li class="wy-breadcrumbs-aside">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||||
@ -197,6 +222,9 @@
|
|||||||
<span class="n">fobj</span><span class="o">.</span><span class="n">write</span><span class="p">(</span><span class="s2">"Lorax=</span><span class="si">{0}</span><span class="se">\n</span><span class="s2">"</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">vernum</span><span class="p">))</span></div></div>
|
<span class="n">fobj</span><span class="o">.</span><span class="n">write</span><span class="p">(</span><span class="s2">"Lorax=</span><span class="si">{0}</span><span class="se">\n</span><span class="s2">"</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">vernum</span><span class="p">))</span></div></div>
|
||||||
</pre></div>
|
</pre></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="articleComments">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
@ -228,10 +256,11 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var DOCUMENTATION_OPTIONS = {
|
var DOCUMENTATION_OPTIONS = {
|
||||||
URL_ROOT:'../../',
|
URL_ROOT:'../../',
|
||||||
VERSION:'26.2',
|
VERSION:'28.2',
|
||||||
COLLAPSE_INDEX:false,
|
COLLAPSE_INDEX:false,
|
||||||
FILE_SUFFIX:'.html',
|
FILE_SUFFIX:'.html',
|
||||||
HAS_SOURCE: true
|
HAS_SOURCE: true,
|
||||||
|
SOURCELINK_SUFFIX: '.txt'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<title>pylorax.cmdline — Lorax 26.2 documentation</title>
|
<title>pylorax.cmdline — Lorax 28.2 documentation</title>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -33,7 +35,7 @@
|
|||||||
<link rel="index" title="Index"
|
<link rel="index" title="Index"
|
||||||
href="../../genindex.html"/>
|
href="../../genindex.html"/>
|
||||||
<link rel="search" title="Search" href="../../search.html"/>
|
<link rel="search" title="Search" href="../../search.html"/>
|
||||||
<link rel="top" title="Lorax 26.2 documentation" href="../../index.html"/>
|
<link rel="top" title="Lorax 28.2 documentation" href="../../index.html"/>
|
||||||
<link rel="up" title="pylorax" href="../pylorax.html"/>
|
<link rel="up" title="pylorax" href="../pylorax.html"/>
|
||||||
|
|
||||||
|
|
||||||
@ -43,6 +45,7 @@
|
|||||||
|
|
||||||
<body class="wy-body-for-nav" role="document">
|
<body class="wy-body-for-nav" role="document">
|
||||||
|
|
||||||
|
|
||||||
<div class="wy-grid-for-nav">
|
<div class="wy-grid-for-nav">
|
||||||
|
|
||||||
|
|
||||||
@ -62,7 +65,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="version">
|
<div class="version">
|
||||||
26.2
|
28.2
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -83,6 +86,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<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">Introduction to Lorax</a></li>
|
||||||
<li class="toctree-l1"><a class="reference internal" href="../../intro.html#before-lorax">Before Lorax</a></li>
|
<li class="toctree-l1"><a class="reference internal" href="../../intro.html#before-lorax">Before Lorax</a></li>
|
||||||
@ -102,8 +108,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||||
|
|
||||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||||
<a href="../../index.html">Lorax</a>
|
<a href="../../index.html">Lorax</a>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
@ -116,8 +124,20 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div role="navigation" aria-label="breadcrumbs navigation">
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
||||||
|
|
||||||
<ul class="wy-breadcrumbs">
|
<ul class="wy-breadcrumbs">
|
||||||
|
|
||||||
<li><a href="../../index.html">Docs</a> »</li>
|
<li><a href="../../index.html">Docs</a> »</li>
|
||||||
|
|
||||||
<li><a href="../index.html">Module code</a> »</li>
|
<li><a href="../index.html">Module code</a> »</li>
|
||||||
@ -125,12 +145,17 @@
|
|||||||
<li><a href="../pylorax.html">pylorax</a> »</li>
|
<li><a href="../pylorax.html">pylorax</a> »</li>
|
||||||
|
|
||||||
<li>pylorax.cmdline</li>
|
<li>pylorax.cmdline</li>
|
||||||
|
|
||||||
|
|
||||||
<li class="wy-breadcrumbs-aside">
|
<li class="wy-breadcrumbs-aside">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||||
@ -161,18 +186,13 @@
|
|||||||
<span class="kn">import</span> <span class="nn">sys</span>
|
<span class="kn">import</span> <span class="nn">sys</span>
|
||||||
<span class="kn">import</span> <span class="nn">argparse</span>
|
<span class="kn">import</span> <span class="nn">argparse</span>
|
||||||
|
|
||||||
|
<span class="kn">from</span> <span class="nn">pylorax</span> <span class="k">import</span> <span class="n">vernum</span>
|
||||||
|
|
||||||
|
<span class="n">version</span> <span class="o">=</span> <span class="s2">"</span><span class="si">{0}</span><span class="s2">-</span><span class="si">{1}</span><span class="s2">"</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">basename</span><span class="p">(</span><span class="n">sys</span><span class="o">.</span><span class="n">argv</span><span class="p">[</span><span class="mi">0</span><span class="p">]),</span> <span class="n">vernum</span><span class="p">)</span>
|
||||||
|
|
||||||
<div class="viewcode-block" id="lorax_parser"><a class="viewcode-back" href="../../pylorax.html#pylorax.cmdline.lorax_parser">[docs]</a><span class="k">def</span> <span class="nf">lorax_parser</span><span class="p">():</span>
|
<div class="viewcode-block" id="lorax_parser"><a class="viewcode-back" href="../../pylorax.html#pylorax.cmdline.lorax_parser">[docs]</a><span class="k">def</span> <span class="nf">lorax_parser</span><span class="p">():</span>
|
||||||
<span class="sd">""" Return the ArgumentParser for lorax"""</span>
|
<span class="sd">""" Return the ArgumentParser for lorax"""</span>
|
||||||
|
|
||||||
<span class="c1"># get lorax version</span>
|
|
||||||
<span class="k">try</span><span class="p">:</span>
|
|
||||||
<span class="kn">from</span> <span class="nn">pylorax</span> <span class="k">import</span> <span class="n">version</span>
|
|
||||||
<span class="n">vernum</span> <span class="o">=</span> <span class="n">version</span><span class="o">.</span><span class="n">num</span>
|
|
||||||
<span class="k">except</span> <span class="ne">ImportError</span><span class="p">:</span>
|
|
||||||
<span class="n">vernum</span> <span class="o">=</span> <span class="s2">"devel"</span>
|
|
||||||
|
|
||||||
<span class="n">version</span> <span class="o">=</span> <span class="s2">"</span><span class="si">{0}</span><span class="s2">-</span><span class="si">{1}</span><span class="s2">"</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">basename</span><span class="p">(</span><span class="n">sys</span><span class="o">.</span><span class="n">argv</span><span class="p">[</span><span class="mi">0</span><span class="p">]),</span> <span class="n">vernum</span><span class="p">)</span>
|
|
||||||
|
|
||||||
<span class="n">parser</span> <span class="o">=</span> <span class="n">argparse</span><span class="o">.</span><span class="n">ArgumentParser</span><span class="p">(</span><span class="n">description</span><span class="o">=</span><span class="s2">"Create the Anaconda boot.iso"</span><span class="p">)</span>
|
<span class="n">parser</span> <span class="o">=</span> <span class="n">argparse</span><span class="o">.</span><span class="n">ArgumentParser</span><span class="p">(</span><span class="n">description</span><span class="o">=</span><span class="s2">"Create the Anaconda boot.iso"</span><span class="p">)</span>
|
||||||
|
|
||||||
<span class="c1"># required arguments for image creation</span>
|
<span class="c1"># required arguments for image creation</span>
|
||||||
@ -249,6 +269,8 @@
|
|||||||
<span class="n">metavar</span><span class="o">=</span><span class="s2">"[repo]"</span><span class="p">,</span> <span class="n">help</span><span class="o">=</span><span class="s2">"Names of repos to disable"</span><span class="p">)</span>
|
<span class="n">metavar</span><span class="o">=</span><span class="s2">"[repo]"</span><span class="p">,</span> <span class="n">help</span><span class="o">=</span><span class="s2">"Names of repos to disable"</span><span class="p">)</span>
|
||||||
<span class="n">optional</span><span class="o">.</span><span class="n">add_argument</span><span class="p">(</span><span class="s2">"--rootfs-size"</span><span class="p">,</span> <span class="nb">type</span><span class="o">=</span><span class="nb">int</span><span class="p">,</span> <span class="n">default</span><span class="o">=</span><span class="mi">2</span><span class="p">,</span>
|
<span class="n">optional</span><span class="o">.</span><span class="n">add_argument</span><span class="p">(</span><span class="s2">"--rootfs-size"</span><span class="p">,</span> <span class="nb">type</span><span class="o">=</span><span class="nb">int</span><span class="p">,</span> <span class="n">default</span><span class="o">=</span><span class="mi">2</span><span class="p">,</span>
|
||||||
<span class="n">help</span><span class="o">=</span><span class="s2">"Size of root filesystem in GiB. Defaults to 2."</span><span class="p">)</span>
|
<span class="n">help</span><span class="o">=</span><span class="s2">"Size of root filesystem in GiB. Defaults to 2."</span><span class="p">)</span>
|
||||||
|
<span class="n">optional</span><span class="o">.</span><span class="n">add_argument</span><span class="p">(</span><span class="s2">"--noverifyssl"</span><span class="p">,</span> <span class="n">action</span><span class="o">=</span><span class="s2">"store_true"</span><span class="p">,</span> <span class="n">default</span><span class="o">=</span><span class="kc">False</span><span class="p">,</span>
|
||||||
|
<span class="n">help</span><span class="o">=</span><span class="s2">"Do not verify SSL certificates"</span><span class="p">)</span>
|
||||||
|
|
||||||
<span class="c1"># add the show version option</span>
|
<span class="c1"># add the show version option</span>
|
||||||
<span class="n">parser</span><span class="o">.</span><span class="n">add_argument</span><span class="p">(</span><span class="s2">"-V"</span><span class="p">,</span> <span class="n">help</span><span class="o">=</span><span class="s2">"show program's version number and exit"</span><span class="p">,</span>
|
<span class="n">parser</span><span class="o">.</span><span class="n">add_argument</span><span class="p">(</span><span class="s2">"-V"</span><span class="p">,</span> <span class="n">help</span><span class="o">=</span><span class="s2">"show program's version number and exit"</span><span class="p">,</span>
|
||||||
@ -427,9 +449,16 @@
|
|||||||
<span class="n">parser</span><span class="o">.</span><span class="n">add_argument</span><span class="p">(</span><span class="s2">"--timeout"</span><span class="p">,</span> <span class="n">default</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="nb">type</span><span class="o">=</span><span class="nb">int</span><span class="p">,</span>
|
<span class="n">parser</span><span class="o">.</span><span class="n">add_argument</span><span class="p">(</span><span class="s2">"--timeout"</span><span class="p">,</span> <span class="n">default</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="nb">type</span><span class="o">=</span><span class="nb">int</span><span class="p">,</span>
|
||||||
<span class="n">help</span><span class="o">=</span><span class="s2">"Cancel installer after X minutes"</span><span class="p">)</span>
|
<span class="n">help</span><span class="o">=</span><span class="s2">"Cancel installer after X minutes"</span><span class="p">)</span>
|
||||||
|
|
||||||
|
<span class="c1"># add the show version option</span>
|
||||||
|
<span class="n">parser</span><span class="o">.</span><span class="n">add_argument</span><span class="p">(</span><span class="s2">"-V"</span><span class="p">,</span> <span class="n">help</span><span class="o">=</span><span class="s2">"show program's version number and exit"</span><span class="p">,</span>
|
||||||
|
<span class="n">action</span><span class="o">=</span><span class="s2">"version"</span><span class="p">,</span> <span class="n">version</span><span class="o">=</span><span class="n">version</span><span class="p">)</span>
|
||||||
|
|
||||||
<span class="k">return</span> <span class="n">parser</span></div>
|
<span class="k">return</span> <span class="n">parser</span></div>
|
||||||
</pre></div>
|
</pre></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="articleComments">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
@ -461,10 +490,11 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var DOCUMENTATION_OPTIONS = {
|
var DOCUMENTATION_OPTIONS = {
|
||||||
URL_ROOT:'../../',
|
URL_ROOT:'../../',
|
||||||
VERSION:'26.2',
|
VERSION:'28.2',
|
||||||
COLLAPSE_INDEX:false,
|
COLLAPSE_INDEX:false,
|
||||||
FILE_SUFFIX:'.html',
|
FILE_SUFFIX:'.html',
|
||||||
HAS_SOURCE: true
|
HAS_SOURCE: true,
|
||||||
|
SOURCELINK_SUFFIX: '.txt'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<title>pylorax.decorators — Lorax 26.2 documentation</title>
|
<title>pylorax.decorators — Lorax 28.2 documentation</title>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -33,7 +35,7 @@
|
|||||||
<link rel="index" title="Index"
|
<link rel="index" title="Index"
|
||||||
href="../../genindex.html"/>
|
href="../../genindex.html"/>
|
||||||
<link rel="search" title="Search" href="../../search.html"/>
|
<link rel="search" title="Search" href="../../search.html"/>
|
||||||
<link rel="top" title="Lorax 26.2 documentation" href="../../index.html"/>
|
<link rel="top" title="Lorax 28.2 documentation" href="../../index.html"/>
|
||||||
<link rel="up" title="pylorax" href="../pylorax.html"/>
|
<link rel="up" title="pylorax" href="../pylorax.html"/>
|
||||||
|
|
||||||
|
|
||||||
@ -43,6 +45,7 @@
|
|||||||
|
|
||||||
<body class="wy-body-for-nav" role="document">
|
<body class="wy-body-for-nav" role="document">
|
||||||
|
|
||||||
|
|
||||||
<div class="wy-grid-for-nav">
|
<div class="wy-grid-for-nav">
|
||||||
|
|
||||||
|
|
||||||
@ -62,7 +65,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="version">
|
<div class="version">
|
||||||
26.2
|
28.2
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -83,6 +86,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<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">Introduction to Lorax</a></li>
|
||||||
<li class="toctree-l1"><a class="reference internal" href="../../intro.html#before-lorax">Before Lorax</a></li>
|
<li class="toctree-l1"><a class="reference internal" href="../../intro.html#before-lorax">Before Lorax</a></li>
|
||||||
@ -102,8 +108,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||||
|
|
||||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||||
<a href="../../index.html">Lorax</a>
|
<a href="../../index.html">Lorax</a>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
@ -116,8 +124,20 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div role="navigation" aria-label="breadcrumbs navigation">
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
||||||
|
|
||||||
<ul class="wy-breadcrumbs">
|
<ul class="wy-breadcrumbs">
|
||||||
|
|
||||||
<li><a href="../../index.html">Docs</a> »</li>
|
<li><a href="../../index.html">Docs</a> »</li>
|
||||||
|
|
||||||
<li><a href="../index.html">Module code</a> »</li>
|
<li><a href="../index.html">Module code</a> »</li>
|
||||||
@ -125,12 +145,17 @@
|
|||||||
<li><a href="../pylorax.html">pylorax</a> »</li>
|
<li><a href="../pylorax.html">pylorax</a> »</li>
|
||||||
|
|
||||||
<li>pylorax.decorators</li>
|
<li>pylorax.decorators</li>
|
||||||
|
|
||||||
|
|
||||||
<li class="wy-breadcrumbs-aside">
|
<li class="wy-breadcrumbs-aside">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||||
@ -158,17 +183,20 @@
|
|||||||
<span class="c1"># Red Hat Author(s): Martin Gracik <mgracik@redhat.com></span>
|
<span class="c1"># Red Hat Author(s): Martin Gracik <mgracik@redhat.com></span>
|
||||||
<span class="c1">#</span>
|
<span class="c1">#</span>
|
||||||
|
|
||||||
<div class="viewcode-block" id="singleton"><a class="viewcode-back" href="../../pylorax.html#pylorax.decorators.singleton">[docs]</a><span class="k">def</span> <span class="nf">singleton</span><span class="p">(</span><span class="n">cls</span><span class="p">):</span>
|
<div class="viewcode-block" id="singleton"><a class="viewcode-back" href="../../pylorax.html#pylorax.decorators.singleton">[docs]</a><span class="k">def</span> <span class="nf">singleton</span><span class="p">(</span><span class="bp">cls</span><span class="p">):</span>
|
||||||
<span class="n">instances</span> <span class="o">=</span> <span class="p">{}</span>
|
<span class="n">instances</span> <span class="o">=</span> <span class="p">{}</span>
|
||||||
|
|
||||||
<span class="k">def</span> <span class="nf">get_instance</span><span class="p">():</span>
|
<span class="k">def</span> <span class="nf">get_instance</span><span class="p">():</span>
|
||||||
<span class="k">if</span> <span class="n">cls</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">instances</span><span class="p">:</span>
|
<span class="k">if</span> <span class="bp">cls</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">instances</span><span class="p">:</span>
|
||||||
<span class="n">instances</span><span class="p">[</span><span class="n">cls</span><span class="p">]</span> <span class="o">=</span> <span class="n">cls</span><span class="p">()</span>
|
<span class="n">instances</span><span class="p">[</span><span class="bp">cls</span><span class="p">]</span> <span class="o">=</span> <span class="bp">cls</span><span class="p">()</span>
|
||||||
<span class="k">return</span> <span class="n">instances</span><span class="p">[</span><span class="n">cls</span><span class="p">]</span>
|
<span class="k">return</span> <span class="n">instances</span><span class="p">[</span><span class="bp">cls</span><span class="p">]</span>
|
||||||
|
|
||||||
<span class="k">return</span> <span class="n">get_instance</span></div>
|
<span class="k">return</span> <span class="n">get_instance</span></div>
|
||||||
</pre></div>
|
</pre></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="articleComments">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
@ -200,10 +228,11 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var DOCUMENTATION_OPTIONS = {
|
var DOCUMENTATION_OPTIONS = {
|
||||||
URL_ROOT:'../../',
|
URL_ROOT:'../../',
|
||||||
VERSION:'26.2',
|
VERSION:'28.2',
|
||||||
COLLAPSE_INDEX:false,
|
COLLAPSE_INDEX:false,
|
||||||
FILE_SUFFIX:'.html',
|
FILE_SUFFIX:'.html',
|
||||||
HAS_SOURCE: true
|
HAS_SOURCE: true,
|
||||||
|
SOURCELINK_SUFFIX: '.txt'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<title>pylorax.discinfo — Lorax 26.2 documentation</title>
|
<title>pylorax.discinfo — Lorax 28.2 documentation</title>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -33,7 +35,7 @@
|
|||||||
<link rel="index" title="Index"
|
<link rel="index" title="Index"
|
||||||
href="../../genindex.html"/>
|
href="../../genindex.html"/>
|
||||||
<link rel="search" title="Search" href="../../search.html"/>
|
<link rel="search" title="Search" href="../../search.html"/>
|
||||||
<link rel="top" title="Lorax 26.2 documentation" href="../../index.html"/>
|
<link rel="top" title="Lorax 28.2 documentation" href="../../index.html"/>
|
||||||
<link rel="up" title="pylorax" href="../pylorax.html"/>
|
<link rel="up" title="pylorax" href="../pylorax.html"/>
|
||||||
|
|
||||||
|
|
||||||
@ -43,6 +45,7 @@
|
|||||||
|
|
||||||
<body class="wy-body-for-nav" role="document">
|
<body class="wy-body-for-nav" role="document">
|
||||||
|
|
||||||
|
|
||||||
<div class="wy-grid-for-nav">
|
<div class="wy-grid-for-nav">
|
||||||
|
|
||||||
|
|
||||||
@ -62,7 +65,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="version">
|
<div class="version">
|
||||||
26.2
|
28.2
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -83,6 +86,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<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">Introduction to Lorax</a></li>
|
||||||
<li class="toctree-l1"><a class="reference internal" href="../../intro.html#before-lorax">Before Lorax</a></li>
|
<li class="toctree-l1"><a class="reference internal" href="../../intro.html#before-lorax">Before Lorax</a></li>
|
||||||
@ -102,8 +108,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||||
|
|
||||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||||
<a href="../../index.html">Lorax</a>
|
<a href="../../index.html">Lorax</a>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
@ -116,8 +124,20 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div role="navigation" aria-label="breadcrumbs navigation">
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
||||||
|
|
||||||
<ul class="wy-breadcrumbs">
|
<ul class="wy-breadcrumbs">
|
||||||
|
|
||||||
<li><a href="../../index.html">Docs</a> »</li>
|
<li><a href="../../index.html">Docs</a> »</li>
|
||||||
|
|
||||||
<li><a href="../index.html">Module code</a> »</li>
|
<li><a href="../index.html">Module code</a> »</li>
|
||||||
@ -125,12 +145,17 @@
|
|||||||
<li><a href="../pylorax.html">pylorax</a> »</li>
|
<li><a href="../pylorax.html">pylorax</a> »</li>
|
||||||
|
|
||||||
<li>pylorax.discinfo</li>
|
<li>pylorax.discinfo</li>
|
||||||
|
|
||||||
|
|
||||||
<li class="wy-breadcrumbs-aside">
|
<li class="wy-breadcrumbs-aside">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||||
@ -178,6 +203,9 @@
|
|||||||
<span class="n">fobj</span><span class="o">.</span><span class="n">write</span><span class="p">(</span><span class="s2">"</span><span class="si">{0.basearch}</span><span class="se">\n</span><span class="s2">"</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="bp">self</span><span class="p">))</span></div></div>
|
<span class="n">fobj</span><span class="o">.</span><span class="n">write</span><span class="p">(</span><span class="s2">"</span><span class="si">{0.basearch}</span><span class="se">\n</span><span class="s2">"</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="bp">self</span><span class="p">))</span></div></div>
|
||||||
</pre></div>
|
</pre></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="articleComments">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
@ -209,10 +237,11 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var DOCUMENTATION_OPTIONS = {
|
var DOCUMENTATION_OPTIONS = {
|
||||||
URL_ROOT:'../../',
|
URL_ROOT:'../../',
|
||||||
VERSION:'26.2',
|
VERSION:'28.2',
|
||||||
COLLAPSE_INDEX:false,
|
COLLAPSE_INDEX:false,
|
||||||
FILE_SUFFIX:'.html',
|
FILE_SUFFIX:'.html',
|
||||||
HAS_SOURCE: true
|
HAS_SOURCE: true,
|
||||||
|
SOURCELINK_SUFFIX: '.txt'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<title>pylorax.dnfhelper — Lorax 26.2 documentation</title>
|
<title>pylorax.dnfhelper — Lorax 28.2 documentation</title>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -33,7 +35,7 @@
|
|||||||
<link rel="index" title="Index"
|
<link rel="index" title="Index"
|
||||||
href="../../genindex.html"/>
|
href="../../genindex.html"/>
|
||||||
<link rel="search" title="Search" href="../../search.html"/>
|
<link rel="search" title="Search" href="../../search.html"/>
|
||||||
<link rel="top" title="Lorax 26.2 documentation" href="../../index.html"/>
|
<link rel="top" title="Lorax 28.2 documentation" href="../../index.html"/>
|
||||||
<link rel="up" title="pylorax" href="../pylorax.html"/>
|
<link rel="up" title="pylorax" href="../pylorax.html"/>
|
||||||
|
|
||||||
|
|
||||||
@ -43,6 +45,7 @@
|
|||||||
|
|
||||||
<body class="wy-body-for-nav" role="document">
|
<body class="wy-body-for-nav" role="document">
|
||||||
|
|
||||||
|
|
||||||
<div class="wy-grid-for-nav">
|
<div class="wy-grid-for-nav">
|
||||||
|
|
||||||
|
|
||||||
@ -62,7 +65,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="version">
|
<div class="version">
|
||||||
26.2
|
28.2
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -83,6 +86,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<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">Introduction to Lorax</a></li>
|
||||||
<li class="toctree-l1"><a class="reference internal" href="../../intro.html#before-lorax">Before Lorax</a></li>
|
<li class="toctree-l1"><a class="reference internal" href="../../intro.html#before-lorax">Before Lorax</a></li>
|
||||||
@ -102,8 +108,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||||
|
|
||||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||||
<a href="../../index.html">Lorax</a>
|
<a href="../../index.html">Lorax</a>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
@ -116,8 +124,20 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div role="navigation" aria-label="breadcrumbs navigation">
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
||||||
|
|
||||||
<ul class="wy-breadcrumbs">
|
<ul class="wy-breadcrumbs">
|
||||||
|
|
||||||
<li><a href="../../index.html">Docs</a> »</li>
|
<li><a href="../../index.html">Docs</a> »</li>
|
||||||
|
|
||||||
<li><a href="../index.html">Module code</a> »</li>
|
<li><a href="../index.html">Module code</a> »</li>
|
||||||
@ -125,12 +145,17 @@
|
|||||||
<li><a href="../pylorax.html">pylorax</a> »</li>
|
<li><a href="../pylorax.html">pylorax</a> »</li>
|
||||||
|
|
||||||
<li>pylorax.dnfhelper</li>
|
<li>pylorax.dnfhelper</li>
|
||||||
|
|
||||||
|
|
||||||
<li class="wy-breadcrumbs-aside">
|
<li class="wy-breadcrumbs-aside">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||||
@ -205,28 +230,30 @@
|
|||||||
<span class="p">}</span>
|
<span class="p">}</span>
|
||||||
<span class="bp">self</span><span class="o">.</span><span class="n">output</span><span class="o">.</span><span class="n">write</span><span class="p">(</span><span class="n">msg</span> <span class="o">%</span> <span class="n">vals</span><span class="p">)</span>
|
<span class="bp">self</span><span class="o">.</span><span class="n">output</span><span class="o">.</span><span class="n">write</span><span class="p">(</span><span class="n">msg</span> <span class="o">%</span> <span class="n">vals</span><span class="p">)</span>
|
||||||
|
|
||||||
<div class="viewcode-block" id="LoraxDownloadCallback.end"><a class="viewcode-back" href="../../pylorax.html#pylorax.dnfhelper.LoraxDownloadCallback.end">[docs]</a> <span class="k">def</span> <span class="nf">end</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">payload</span><span class="p">,</span> <span class="n">status</span><span class="p">,</span> <span class="n">err_msg</span><span class="p">):</span>
|
<div class="viewcode-block" id="LoraxDownloadCallback.end"><a class="viewcode-back" href="../../pylorax.html#pylorax.dnfhelper.LoraxDownloadCallback.end">[docs]</a> <span class="k">def</span> <span class="nf">end</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">payload</span><span class="p">,</span> <span class="n">status</span><span class="p">,</span> <span class="n">msg</span><span class="p">):</span>
|
||||||
<span class="n">nevra</span> <span class="o">=</span> <span class="nb">str</span><span class="p">(</span><span class="n">payload</span><span class="p">)</span>
|
<span class="n">nevra</span> <span class="o">=</span> <span class="nb">str</span><span class="p">(</span><span class="n">payload</span><span class="p">)</span>
|
||||||
<span class="k">if</span> <span class="n">status</span> <span class="ow">is</span> <span class="n">dnf</span><span class="o">.</span><span class="n">callback</span><span class="o">.</span><span class="n">STATUS_OK</span><span class="p">:</span>
|
<span class="k">if</span> <span class="n">status</span> <span class="ow">is</span> <span class="n">dnf</span><span class="o">.</span><span class="n">callback</span><span class="o">.</span><span class="n">STATUS_OK</span><span class="p">:</span>
|
||||||
<span class="bp">self</span><span class="o">.</span><span class="n">downloads</span><span class="p">[</span><span class="n">nevra</span><span class="p">]</span> <span class="o">=</span> <span class="n">payload</span><span class="o">.</span><span class="n">download_size</span>
|
<span class="bp">self</span><span class="o">.</span><span class="n">downloads</span><span class="p">[</span><span class="n">nevra</span><span class="p">]</span> <span class="o">=</span> <span class="n">payload</span><span class="o">.</span><span class="n">download_size</span>
|
||||||
<span class="bp">self</span><span class="o">.</span><span class="n">pkgno</span> <span class="o">+=</span> <span class="mi">1</span>
|
<span class="bp">self</span><span class="o">.</span><span class="n">pkgno</span> <span class="o">+=</span> <span class="mi">1</span>
|
||||||
<span class="bp">self</span><span class="o">.</span><span class="n">_update</span><span class="p">()</span>
|
<span class="bp">self</span><span class="o">.</span><span class="n">_update</span><span class="p">()</span>
|
||||||
<span class="k">return</span>
|
<span class="k">return</span>
|
||||||
<span class="n">logger</span><span class="o">.</span><span class="n">critical</span><span class="p">(</span><span class="s2">"Failed to download '</span><span class="si">%s</span><span class="s2">': </span><span class="si">%d</span><span class="s2"> - </span><span class="si">%s</span><span class="s2">"</span><span class="p">,</span> <span class="n">nevra</span><span class="p">,</span> <span class="n">status</span><span class="p">,</span> <span class="n">err_msg</span><span class="p">)</span></div>
|
<span class="n">logger</span><span class="o">.</span><span class="n">critical</span><span class="p">(</span><span class="s2">"Failed to download '</span><span class="si">%s</span><span class="s2">': </span><span class="si">%d</span><span class="s2"> - </span><span class="si">%s</span><span class="s2">"</span><span class="p">,</span> <span class="n">nevra</span><span class="p">,</span> <span class="n">status</span><span class="p">,</span> <span class="n">msg</span><span class="p">)</span></div>
|
||||||
|
|
||||||
<div class="viewcode-block" id="LoraxDownloadCallback.progress"><a class="viewcode-back" href="../../pylorax.html#pylorax.dnfhelper.LoraxDownloadCallback.progress">[docs]</a> <span class="k">def</span> <span class="nf">progress</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">payload</span><span class="p">,</span> <span class="n">done</span><span class="p">):</span>
|
<div class="viewcode-block" id="LoraxDownloadCallback.progress"><a class="viewcode-back" href="../../pylorax.html#pylorax.dnfhelper.LoraxDownloadCallback.progress">[docs]</a> <span class="k">def</span> <span class="nf">progress</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">payload</span><span class="p">,</span> <span class="n">done</span><span class="p">):</span>
|
||||||
<span class="n">nevra</span> <span class="o">=</span> <span class="nb">str</span><span class="p">(</span><span class="n">payload</span><span class="p">)</span>
|
<span class="n">nevra</span> <span class="o">=</span> <span class="nb">str</span><span class="p">(</span><span class="n">payload</span><span class="p">)</span>
|
||||||
<span class="bp">self</span><span class="o">.</span><span class="n">downloads</span><span class="p">[</span><span class="n">nevra</span><span class="p">]</span> <span class="o">=</span> <span class="n">done</span>
|
<span class="bp">self</span><span class="o">.</span><span class="n">downloads</span><span class="p">[</span><span class="n">nevra</span><span class="p">]</span> <span class="o">=</span> <span class="n">done</span>
|
||||||
<span class="bp">self</span><span class="o">.</span><span class="n">_update</span><span class="p">()</span></div>
|
<span class="bp">self</span><span class="o">.</span><span class="n">_update</span><span class="p">()</span></div>
|
||||||
|
|
||||||
<div class="viewcode-block" id="LoraxDownloadCallback.start"><a class="viewcode-back" href="../../pylorax.html#pylorax.dnfhelper.LoraxDownloadCallback.start">[docs]</a> <span class="k">def</span> <span class="nf">start</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">total_files</span><span class="p">,</span> <span class="n">total_size</span><span class="p">):</span>
|
<span class="c1"># dnf 2.5.0 adds a new argument, accept it if it is passed</span>
|
||||||
|
<span class="c1"># pylint: disable=arguments-differ</span>
|
||||||
|
<div class="viewcode-block" id="LoraxDownloadCallback.start"><a class="viewcode-back" href="../../pylorax.html#pylorax.dnfhelper.LoraxDownloadCallback.start">[docs]</a> <span class="k">def</span> <span class="nf">start</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">total_files</span><span class="p">,</span> <span class="n">total_size</span><span class="p">,</span> <span class="n">total_drpms</span><span class="o">=</span><span class="mi">0</span><span class="p">):</span>
|
||||||
<span class="bp">self</span><span class="o">.</span><span class="n">total_files</span> <span class="o">=</span> <span class="n">total_files</span>
|
<span class="bp">self</span><span class="o">.</span><span class="n">total_files</span> <span class="o">=</span> <span class="n">total_files</span>
|
||||||
<span class="bp">self</span><span class="o">.</span><span class="n">total_size</span> <span class="o">=</span> <span class="n">total_size</span></div></div>
|
<span class="bp">self</span><span class="o">.</span><span class="n">total_size</span> <span class="o">=</span> <span class="n">total_size</span></div></div>
|
||||||
|
|
||||||
|
|
||||||
<div class="viewcode-block" id="LoraxRpmCallback"><a class="viewcode-back" href="../../pylorax.html#pylorax.dnfhelper.LoraxRpmCallback">[docs]</a><span class="k">class</span> <span class="nc">LoraxRpmCallback</span><span class="p">(</span><span class="n">dnf</span><span class="o">.</span><span class="n">callback</span><span class="o">.</span><span class="n">TransactionProgress</span><span class="p">):</span>
|
<div class="viewcode-block" id="LoraxRpmCallback"><a class="viewcode-back" href="../../pylorax.html#pylorax.dnfhelper.LoraxRpmCallback">[docs]</a><span class="k">class</span> <span class="nc">LoraxRpmCallback</span><span class="p">(</span><span class="n">dnf</span><span class="o">.</span><span class="n">callback</span><span class="o">.</span><span class="n">TransactionProgress</span><span class="p">):</span>
|
||||||
<span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
|
<span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
|
||||||
<span class="nb">super</span><span class="p">(</span><span class="n">LoraxRpmCallback</span><span class="p">,</span> <span class="bp">self</span><span class="p">)</span><span class="o">.</span><span class="n">__init__</span><span class="p">()</span>
|
<span class="nb">super</span><span class="p">(</span><span class="n">LoraxRpmCallback</span><span class="p">,</span> <span class="bp">self</span><span class="p">)</span><span class="o">.</span><span class="fm">__init__</span><span class="p">()</span>
|
||||||
<span class="bp">self</span><span class="o">.</span><span class="n">_last_ts</span> <span class="o">=</span> <span class="kc">None</span>
|
<span class="bp">self</span><span class="o">.</span><span class="n">_last_ts</span> <span class="o">=</span> <span class="kc">None</span>
|
||||||
|
|
||||||
<div class="viewcode-block" id="LoraxRpmCallback.progress"><a class="viewcode-back" href="../../pylorax.html#pylorax.dnfhelper.LoraxRpmCallback.progress">[docs]</a> <span class="k">def</span> <span class="nf">progress</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">package</span><span class="p">,</span> <span class="n">action</span><span class="p">,</span> <span class="n">ti_done</span><span class="p">,</span> <span class="n">ti_total</span><span class="p">,</span> <span class="n">ts_done</span><span class="p">,</span> <span class="n">ts_total</span><span class="p">):</span>
|
<div class="viewcode-block" id="LoraxRpmCallback.progress"><a class="viewcode-back" href="../../pylorax.html#pylorax.dnfhelper.LoraxRpmCallback.progress">[docs]</a> <span class="k">def</span> <span class="nf">progress</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">package</span><span class="p">,</span> <span class="n">action</span><span class="p">,</span> <span class="n">ti_done</span><span class="p">,</span> <span class="n">ti_total</span><span class="p">,</span> <span class="n">ts_done</span><span class="p">,</span> <span class="n">ts_total</span><span class="p">):</span>
|
||||||
@ -236,16 +263,19 @@
|
|||||||
<span class="k">return</span>
|
<span class="k">return</span>
|
||||||
<span class="bp">self</span><span class="o">.</span><span class="n">_last_ts</span> <span class="o">=</span> <span class="n">ts_done</span>
|
<span class="bp">self</span><span class="o">.</span><span class="n">_last_ts</span> <span class="o">=</span> <span class="n">ts_done</span>
|
||||||
|
|
||||||
<span class="n">msg</span> <span class="o">=</span> <span class="s1">'(</span><span class="si">%d</span><span class="s1">/</span><span class="si">%d</span><span class="s1">) </span><span class="si">%s</span><span class="s1">.</span><span class="si">%s</span><span class="s1">'</span> <span class="o">%</span> <span class="p">(</span><span class="n">ts_done</span><span class="p">,</span> <span class="n">ts_total</span><span class="p">,</span> <span class="n">package</span><span class="o">.</span><span class="n">name</span><span class="p">,</span> <span class="n">package</span><span class="o">.</span><span class="n">arch</span><span class="p">)</span>
|
<span class="n">msg</span> <span class="o">=</span> <span class="s1">'(</span><span class="si">%d</span><span class="s1">/</span><span class="si">%d</span><span class="s1">) </span><span class="si">%s</span><span class="s1">'</span> <span class="o">%</span> <span class="p">(</span><span class="n">ts_done</span><span class="p">,</span> <span class="n">ts_total</span><span class="p">,</span> <span class="n">package</span><span class="p">)</span>
|
||||||
<span class="n">logger</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="n">msg</span><span class="p">)</span>
|
<span class="n">logger</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="n">msg</span><span class="p">)</span>
|
||||||
<span class="k">elif</span> <span class="n">action</span> <span class="o">==</span> <span class="bp">self</span><span class="o">.</span><span class="n">TRANS_POST</span><span class="p">:</span>
|
<span class="k">elif</span> <span class="n">action</span> <span class="o">==</span> <span class="bp">self</span><span class="o">.</span><span class="n">TRANS_POST</span><span class="p">:</span>
|
||||||
<span class="n">msg</span> <span class="o">=</span> <span class="s2">"Performing post-installation setup tasks"</span>
|
<span class="n">msg</span> <span class="o">=</span> <span class="s2">"Performing post-installation setup tasks"</span>
|
||||||
<span class="n">logger</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="n">msg</span><span class="p">)</span></div>
|
<span class="n">logger</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="n">msg</span><span class="p">)</span></div>
|
||||||
|
|
||||||
<div class="viewcode-block" id="LoraxRpmCallback.error"><a class="viewcode-back" href="../../pylorax.html#pylorax.dnfhelper.LoraxRpmCallback.error">[docs]</a> <span class="k">def</span> <span class="nf">error</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">err_msg</span><span class="p">):</span>
|
<div class="viewcode-block" id="LoraxRpmCallback.error"><a class="viewcode-back" href="../../pylorax.html#pylorax.dnfhelper.LoraxRpmCallback.error">[docs]</a> <span class="k">def</span> <span class="nf">error</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">message</span><span class="p">):</span>
|
||||||
<span class="n">logger</span><span class="o">.</span><span class="n">warning</span><span class="p">(</span><span class="n">err_msg</span><span class="p">)</span></div></div>
|
<span class="n">logger</span><span class="o">.</span><span class="n">warning</span><span class="p">(</span><span class="n">message</span><span class="p">)</span></div></div>
|
||||||
</pre></div>
|
</pre></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="articleComments">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
@ -277,10 +307,11 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var DOCUMENTATION_OPTIONS = {
|
var DOCUMENTATION_OPTIONS = {
|
||||||
URL_ROOT:'../../',
|
URL_ROOT:'../../',
|
||||||
VERSION:'26.2',
|
VERSION:'28.2',
|
||||||
COLLAPSE_INDEX:false,
|
COLLAPSE_INDEX:false,
|
||||||
FILE_SUFFIX:'.html',
|
FILE_SUFFIX:'.html',
|
||||||
HAS_SOURCE: true
|
HAS_SOURCE: true,
|
||||||
|
SOURCELINK_SUFFIX: '.txt'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<title>pylorax.executils — Lorax 26.2 documentation</title>
|
<title>pylorax.executils — Lorax 28.2 documentation</title>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -33,7 +35,7 @@
|
|||||||
<link rel="index" title="Index"
|
<link rel="index" title="Index"
|
||||||
href="../../genindex.html"/>
|
href="../../genindex.html"/>
|
||||||
<link rel="search" title="Search" href="../../search.html"/>
|
<link rel="search" title="Search" href="../../search.html"/>
|
||||||
<link rel="top" title="Lorax 26.2 documentation" href="../../index.html"/>
|
<link rel="top" title="Lorax 28.2 documentation" href="../../index.html"/>
|
||||||
<link rel="up" title="pylorax" href="../pylorax.html"/>
|
<link rel="up" title="pylorax" href="../pylorax.html"/>
|
||||||
|
|
||||||
|
|
||||||
@ -43,6 +45,7 @@
|
|||||||
|
|
||||||
<body class="wy-body-for-nav" role="document">
|
<body class="wy-body-for-nav" role="document">
|
||||||
|
|
||||||
|
|
||||||
<div class="wy-grid-for-nav">
|
<div class="wy-grid-for-nav">
|
||||||
|
|
||||||
|
|
||||||
@ -62,7 +65,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="version">
|
<div class="version">
|
||||||
26.2
|
28.2
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -83,6 +86,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<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">Introduction to Lorax</a></li>
|
||||||
<li class="toctree-l1"><a class="reference internal" href="../../intro.html#before-lorax">Before Lorax</a></li>
|
<li class="toctree-l1"><a class="reference internal" href="../../intro.html#before-lorax">Before Lorax</a></li>
|
||||||
@ -102,8 +108,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||||
|
|
||||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||||
<a href="../../index.html">Lorax</a>
|
<a href="../../index.html">Lorax</a>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
@ -116,8 +124,20 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div role="navigation" aria-label="breadcrumbs navigation">
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
||||||
|
|
||||||
<ul class="wy-breadcrumbs">
|
<ul class="wy-breadcrumbs">
|
||||||
|
|
||||||
<li><a href="../../index.html">Docs</a> »</li>
|
<li><a href="../../index.html">Docs</a> »</li>
|
||||||
|
|
||||||
<li><a href="../index.html">Module code</a> »</li>
|
<li><a href="../index.html">Module code</a> »</li>
|
||||||
@ -125,12 +145,17 @@
|
|||||||
<li><a href="../pylorax.html">pylorax</a> »</li>
|
<li><a href="../pylorax.html">pylorax</a> »</li>
|
||||||
|
|
||||||
<li>pylorax.executils</li>
|
<li>pylorax.executils</li>
|
||||||
|
|
||||||
|
|
||||||
<li class="wy-breadcrumbs-aside">
|
<li class="wy-breadcrumbs-aside">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||||
@ -486,6 +511,9 @@
|
|||||||
<span class="k">return</span> <span class="n">execWithCapture</span><span class="p">(</span><span class="n">cmd</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="n">cmd</span><span class="p">[</span><span class="mi">1</span><span class="p">:],</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span></div>
|
<span class="k">return</span> <span class="n">execWithCapture</span><span class="p">(</span><span class="n">cmd</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="n">cmd</span><span class="p">[</span><span class="mi">1</span><span class="p">:],</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span></div>
|
||||||
</pre></div>
|
</pre></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="articleComments">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
@ -517,10 +545,11 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var DOCUMENTATION_OPTIONS = {
|
var DOCUMENTATION_OPTIONS = {
|
||||||
URL_ROOT:'../../',
|
URL_ROOT:'../../',
|
||||||
VERSION:'26.2',
|
VERSION:'28.2',
|
||||||
COLLAPSE_INDEX:false,
|
COLLAPSE_INDEX:false,
|
||||||
FILE_SUFFIX:'.html',
|
FILE_SUFFIX:'.html',
|
||||||
HAS_SOURCE: true
|
HAS_SOURCE: true,
|
||||||
|
SOURCELINK_SUFFIX: '.txt'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<title>pylorax.imgutils — Lorax 26.2 documentation</title>
|
<title>pylorax.imgutils — Lorax 28.2 documentation</title>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -33,7 +35,7 @@
|
|||||||
<link rel="index" title="Index"
|
<link rel="index" title="Index"
|
||||||
href="../../genindex.html"/>
|
href="../../genindex.html"/>
|
||||||
<link rel="search" title="Search" href="../../search.html"/>
|
<link rel="search" title="Search" href="../../search.html"/>
|
||||||
<link rel="top" title="Lorax 26.2 documentation" href="../../index.html"/>
|
<link rel="top" title="Lorax 28.2 documentation" href="../../index.html"/>
|
||||||
<link rel="up" title="pylorax" href="../pylorax.html"/>
|
<link rel="up" title="pylorax" href="../pylorax.html"/>
|
||||||
|
|
||||||
|
|
||||||
@ -43,6 +45,7 @@
|
|||||||
|
|
||||||
<body class="wy-body-for-nav" role="document">
|
<body class="wy-body-for-nav" role="document">
|
||||||
|
|
||||||
|
|
||||||
<div class="wy-grid-for-nav">
|
<div class="wy-grid-for-nav">
|
||||||
|
|
||||||
|
|
||||||
@ -62,7 +65,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="version">
|
<div class="version">
|
||||||
26.2
|
28.2
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -83,6 +86,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<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">Introduction to Lorax</a></li>
|
||||||
<li class="toctree-l1"><a class="reference internal" href="../../intro.html#before-lorax">Before Lorax</a></li>
|
<li class="toctree-l1"><a class="reference internal" href="../../intro.html#before-lorax">Before Lorax</a></li>
|
||||||
@ -102,8 +108,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||||
|
|
||||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||||
<a href="../../index.html">Lorax</a>
|
<a href="../../index.html">Lorax</a>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
@ -116,8 +124,20 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div role="navigation" aria-label="breadcrumbs navigation">
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
||||||
|
|
||||||
<ul class="wy-breadcrumbs">
|
<ul class="wy-breadcrumbs">
|
||||||
|
|
||||||
<li><a href="../../index.html">Docs</a> »</li>
|
<li><a href="../../index.html">Docs</a> »</li>
|
||||||
|
|
||||||
<li><a href="../index.html">Module code</a> »</li>
|
<li><a href="../index.html">Module code</a> »</li>
|
||||||
@ -125,12 +145,17 @@
|
|||||||
<li><a href="../pylorax.html">pylorax</a> »</li>
|
<li><a href="../pylorax.html">pylorax</a> »</li>
|
||||||
|
|
||||||
<li>pylorax.imgutils</li>
|
<li>pylorax.imgutils</li>
|
||||||
|
|
||||||
|
|
||||||
<li class="wy-breadcrumbs-aside">
|
<li class="wy-breadcrumbs-aside">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||||
@ -163,6 +188,7 @@
|
|||||||
<span class="kn">from</span> <span class="nn">os.path</span> <span class="k">import</span> <span class="n">join</span><span class="p">,</span> <span class="n">dirname</span>
|
<span class="kn">from</span> <span class="nn">os.path</span> <span class="k">import</span> <span class="n">join</span><span class="p">,</span> <span class="n">dirname</span>
|
||||||
<span class="kn">from</span> <span class="nn">subprocess</span> <span class="k">import</span> <span class="n">Popen</span><span class="p">,</span> <span class="n">PIPE</span><span class="p">,</span> <span class="n">CalledProcessError</span>
|
<span class="kn">from</span> <span class="nn">subprocess</span> <span class="k">import</span> <span class="n">Popen</span><span class="p">,</span> <span class="n">PIPE</span><span class="p">,</span> <span class="n">CalledProcessError</span>
|
||||||
<span class="kn">import</span> <span class="nn">sys</span>
|
<span class="kn">import</span> <span class="nn">sys</span>
|
||||||
|
<span class="kn">import</span> <span class="nn">time</span>
|
||||||
<span class="kn">import</span> <span class="nn">traceback</span>
|
<span class="kn">import</span> <span class="nn">traceback</span>
|
||||||
<span class="kn">import</span> <span class="nn">multiprocessing</span>
|
<span class="kn">import</span> <span class="nn">multiprocessing</span>
|
||||||
<span class="kn">from</span> <span class="nn">time</span> <span class="k">import</span> <span class="n">sleep</span>
|
<span class="kn">from</span> <span class="nn">time</span> <span class="k">import</span> <span class="n">sleep</span>
|
||||||
@ -257,7 +283,13 @@
|
|||||||
<span class="s2">"-e"</span><span class="p">,</span> <span class="s2">"/install"</span><span class="p">,</span> <span class="s2">"-e"</span><span class="p">,</span> <span class="s2">"/ostree"</span><span class="p">,</span>
|
<span class="s2">"-e"</span><span class="p">,</span> <span class="s2">"/install"</span><span class="p">,</span> <span class="s2">"-e"</span><span class="p">,</span> <span class="s2">"/ostree"</span><span class="p">,</span>
|
||||||
<span class="s2">"/etc/selinux/targeted/contexts/files/file_contexts"</span><span class="p">,</span> <span class="s2">"/"</span><span class="p">]</span>
|
<span class="s2">"/etc/selinux/targeted/contexts/files/file_contexts"</span><span class="p">,</span> <span class="s2">"/"</span><span class="p">]</span>
|
||||||
<span class="n">root</span> <span class="o">=</span> <span class="n">join</span><span class="p">(</span><span class="n">mnt</span><span class="p">,</span> <span class="n">sysroot</span><span class="o">.</span><span class="n">lstrip</span><span class="p">(</span><span class="s2">"/"</span><span class="p">))</span>
|
<span class="n">root</span> <span class="o">=</span> <span class="n">join</span><span class="p">(</span><span class="n">mnt</span><span class="p">,</span> <span class="n">sysroot</span><span class="o">.</span><span class="n">lstrip</span><span class="p">(</span><span class="s2">"/"</span><span class="p">))</span>
|
||||||
<span class="n">runcmd</span><span class="p">(</span><span class="n">cmd</span><span class="p">,</span> <span class="n">root</span><span class="o">=</span><span class="n">root</span><span class="p">)</span></div>
|
<span class="k">try</span><span class="p">:</span>
|
||||||
|
<span class="n">runcmd</span><span class="p">(</span><span class="n">cmd</span><span class="p">,</span> <span class="n">root</span><span class="o">=</span><span class="n">root</span><span class="p">)</span>
|
||||||
|
<span class="k">except</span> <span class="n">CalledProcessError</span> <span class="k">as</span> <span class="n">e</span><span class="p">:</span>
|
||||||
|
<span class="n">logger</span><span class="o">.</span><span class="n">error</span><span class="p">(</span><span class="s2">"setfiles exited with a non-zero return code (</span><span class="si">%d</span><span class="s2">) which may "</span>
|
||||||
|
<span class="s2">"be caused by running without SELinux in Permissive mode."</span><span class="p">,</span> <span class="n">e</span><span class="o">.</span><span class="n">returncode</span><span class="p">)</span>
|
||||||
|
<span class="k">raise</span></div>
|
||||||
|
|
||||||
|
|
||||||
<span class="c1">######## Utility functions ###############################################</span>
|
<span class="c1">######## Utility functions ###############################################</span>
|
||||||
|
|
||||||
@ -287,10 +319,36 @@
|
|||||||
<span class="n">options</span><span class="o">.</span><span class="n">extend</span><span class="p">([</span><span class="s2">"-f"</span><span class="p">,</span> <span class="s2">"qcow2"</span><span class="p">])</span>
|
<span class="n">options</span><span class="o">.</span><span class="n">extend</span><span class="p">([</span><span class="s2">"-f"</span><span class="p">,</span> <span class="s2">"qcow2"</span><span class="p">])</span>
|
||||||
<span class="n">runcmd</span><span class="p">([</span><span class="s2">"qemu-img"</span><span class="p">,</span> <span class="s2">"create"</span><span class="p">]</span> <span class="o">+</span> <span class="n">options</span> <span class="o">+</span> <span class="p">[</span><span class="n">outfile</span><span class="p">,</span> <span class="nb">str</span><span class="p">(</span><span class="n">size</span><span class="p">)])</span></div>
|
<span class="n">runcmd</span><span class="p">([</span><span class="s2">"qemu-img"</span><span class="p">,</span> <span class="s2">"create"</span><span class="p">]</span> <span class="o">+</span> <span class="n">options</span> <span class="o">+</span> <span class="p">[</span><span class="n">outfile</span><span class="p">,</span> <span class="nb">str</span><span class="p">(</span><span class="n">size</span><span class="p">)])</span></div>
|
||||||
|
|
||||||
|
<div class="viewcode-block" id="loop_waitfor"><a class="viewcode-back" href="../../pylorax.html#pylorax.imgutils.loop_waitfor">[docs]</a><span class="k">def</span> <span class="nf">loop_waitfor</span><span class="p">(</span><span class="n">loop_dev</span><span class="p">,</span> <span class="n">outfile</span><span class="p">):</span>
|
||||||
|
<span class="sd">"""Make sure the loop device is attached to the outfile.</span>
|
||||||
|
|
||||||
|
<span class="sd"> It seems that on rare occasions losetup can return before the /dev/loopX is</span>
|
||||||
|
<span class="sd"> ready for use, causing problems with mkfs. This tries to make sure that the</span>
|
||||||
|
<span class="sd"> loop device really is associated with the backing file before continuing.</span>
|
||||||
|
|
||||||
|
<span class="sd"> Raise RuntimeError if it isn't setup after 5 tries.</span>
|
||||||
|
<span class="sd"> """</span>
|
||||||
|
<span class="k">for</span> <span class="n">_x</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span><span class="mi">5</span><span class="p">):</span>
|
||||||
|
<span class="n">runcmd</span><span class="p">([</span><span class="s2">"udevadm"</span><span class="p">,</span> <span class="s2">"settle"</span><span class="p">,</span> <span class="s2">"--timeout"</span><span class="p">,</span> <span class="s2">"300"</span><span class="p">])</span>
|
||||||
|
<span class="c1">## XXX Note that losetup --list output can be truncated to 64 bytes in some</span>
|
||||||
|
<span class="c1">## situations. Don't use it to lookup backing file, go the other way</span>
|
||||||
|
<span class="c1">## and lookup the loop for the backing file. See util-linux lib/loopdev.c</span>
|
||||||
|
<span class="c1">## loopcxt_get_backing_file()</span>
|
||||||
|
<span class="k">if</span> <span class="n">get_loop_name</span><span class="p">(</span><span class="n">outfile</span><span class="p">)</span> <span class="o">==</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">basename</span><span class="p">(</span><span class="n">loop_dev</span><span class="p">):</span>
|
||||||
|
<span class="k">return</span>
|
||||||
|
|
||||||
|
<span class="c1"># If this really is a race, give it some time to settle down</span>
|
||||||
|
<span class="n">time</span><span class="o">.</span><span class="n">sleep</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span>
|
||||||
|
|
||||||
|
<span class="k">raise</span> <span class="ne">RuntimeError</span><span class="p">(</span><span class="s2">"Unable to setup </span><span class="si">%s</span><span class="s2"> on </span><span class="si">%s</span><span class="s2">"</span> <span class="o">%</span> <span class="p">(</span><span class="n">loop_dev</span><span class="p">,</span> <span class="n">outfile</span><span class="p">))</span></div>
|
||||||
|
|
||||||
<div class="viewcode-block" id="loop_attach"><a class="viewcode-back" href="../../pylorax.html#pylorax.imgutils.loop_attach">[docs]</a><span class="k">def</span> <span class="nf">loop_attach</span><span class="p">(</span><span class="n">outfile</span><span class="p">):</span>
|
<div class="viewcode-block" id="loop_attach"><a class="viewcode-back" href="../../pylorax.html#pylorax.imgutils.loop_attach">[docs]</a><span class="k">def</span> <span class="nf">loop_attach</span><span class="p">(</span><span class="n">outfile</span><span class="p">):</span>
|
||||||
<span class="sd">'''Attach a loop device to the given file. Return the loop device name.</span>
|
<span class="sd">'''Attach a loop device to the given file. Return the loop device name.</span>
|
||||||
<span class="sd"> Raises CalledProcessError if losetup fails.'''</span>
|
<span class="sd"> Raises CalledProcessError if losetup fails.'''</span>
|
||||||
<span class="n">dev</span> <span class="o">=</span> <span class="n">runcmd_output</span><span class="p">([</span><span class="s2">"losetup"</span><span class="p">,</span> <span class="s2">"--find"</span><span class="p">,</span> <span class="s2">"--show"</span><span class="p">,</span> <span class="n">outfile</span><span class="p">])</span>
|
<span class="n">dev</span> <span class="o">=</span> <span class="n">runcmd_output</span><span class="p">([</span><span class="s2">"losetup"</span><span class="p">,</span> <span class="s2">"--find"</span><span class="p">,</span> <span class="s2">"--show"</span><span class="p">,</span> <span class="n">outfile</span><span class="p">])</span>
|
||||||
|
|
||||||
|
<span class="c1"># Sometimes the loop device isn't ready yet, make extra sure before returning</span>
|
||||||
|
<span class="n">loop_waitfor</span><span class="p">(</span><span class="n">dev</span><span class="o">.</span><span class="n">strip</span><span class="p">(),</span> <span class="n">outfile</span><span class="p">)</span>
|
||||||
<span class="k">return</span> <span class="n">dev</span><span class="o">.</span><span class="n">strip</span><span class="p">()</span></div>
|
<span class="k">return</span> <span class="n">dev</span><span class="o">.</span><span class="n">strip</span><span class="p">()</span></div>
|
||||||
|
|
||||||
<div class="viewcode-block" id="loop_detach"><a class="viewcode-back" href="../../pylorax.html#pylorax.imgutils.loop_detach">[docs]</a><span class="k">def</span> <span class="nf">loop_detach</span><span class="p">(</span><span class="n">loopdev</span><span class="p">):</span>
|
<div class="viewcode-block" id="loop_detach"><a class="viewcode-back" href="../../pylorax.html#pylorax.imgutils.loop_detach">[docs]</a><span class="k">def</span> <span class="nf">loop_detach</span><span class="p">(</span><span class="n">loopdev</span><span class="p">):</span>
|
||||||
@ -591,6 +649,9 @@
|
|||||||
<span class="n">mkfsargs</span><span class="o">=</span><span class="p">[</span><span class="s2">"-v"</span><span class="p">,</span> <span class="n">label</span><span class="p">],</span> <span class="n">graft</span><span class="o">=</span><span class="n">graft</span><span class="p">)</span></div>
|
<span class="n">mkfsargs</span><span class="o">=</span><span class="p">[</span><span class="s2">"-v"</span><span class="p">,</span> <span class="n">label</span><span class="p">],</span> <span class="n">graft</span><span class="o">=</span><span class="n">graft</span><span class="p">)</span></div>
|
||||||
</pre></div>
|
</pre></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="articleComments">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
@ -622,10 +683,11 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var DOCUMENTATION_OPTIONS = {
|
var DOCUMENTATION_OPTIONS = {
|
||||||
URL_ROOT:'../../',
|
URL_ROOT:'../../',
|
||||||
VERSION:'26.2',
|
VERSION:'28.2',
|
||||||
COLLAPSE_INDEX:false,
|
COLLAPSE_INDEX:false,
|
||||||
FILE_SUFFIX:'.html',
|
FILE_SUFFIX:'.html',
|
||||||
HAS_SOURCE: true
|
HAS_SOURCE: true,
|
||||||
|
SOURCELINK_SUFFIX: '.txt'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<title>pylorax.ltmpl — Lorax 26.2 documentation</title>
|
<title>pylorax.ltmpl — Lorax 28.2 documentation</title>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -33,7 +35,7 @@
|
|||||||
<link rel="index" title="Index"
|
<link rel="index" title="Index"
|
||||||
href="../../genindex.html"/>
|
href="../../genindex.html"/>
|
||||||
<link rel="search" title="Search" href="../../search.html"/>
|
<link rel="search" title="Search" href="../../search.html"/>
|
||||||
<link rel="top" title="Lorax 26.2 documentation" href="../../index.html"/>
|
<link rel="top" title="Lorax 28.2 documentation" href="../../index.html"/>
|
||||||
<link rel="up" title="pylorax" href="../pylorax.html"/>
|
<link rel="up" title="pylorax" href="../pylorax.html"/>
|
||||||
|
|
||||||
|
|
||||||
@ -43,6 +45,7 @@
|
|||||||
|
|
||||||
<body class="wy-body-for-nav" role="document">
|
<body class="wy-body-for-nav" role="document">
|
||||||
|
|
||||||
|
|
||||||
<div class="wy-grid-for-nav">
|
<div class="wy-grid-for-nav">
|
||||||
|
|
||||||
|
|
||||||
@ -62,7 +65,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="version">
|
<div class="version">
|
||||||
26.2
|
28.2
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -83,6 +86,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<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">Introduction to Lorax</a></li>
|
||||||
<li class="toctree-l1"><a class="reference internal" href="../../intro.html#before-lorax">Before Lorax</a></li>
|
<li class="toctree-l1"><a class="reference internal" href="../../intro.html#before-lorax">Before Lorax</a></li>
|
||||||
@ -102,8 +108,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||||
|
|
||||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||||
<a href="../../index.html">Lorax</a>
|
<a href="../../index.html">Lorax</a>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
@ -116,8 +124,20 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div role="navigation" aria-label="breadcrumbs navigation">
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
||||||
|
|
||||||
<ul class="wy-breadcrumbs">
|
<ul class="wy-breadcrumbs">
|
||||||
|
|
||||||
<li><a href="../../index.html">Docs</a> »</li>
|
<li><a href="../../index.html">Docs</a> »</li>
|
||||||
|
|
||||||
<li><a href="../index.html">Module code</a> »</li>
|
<li><a href="../index.html">Module code</a> »</li>
|
||||||
@ -125,12 +145,17 @@
|
|||||||
<li><a href="../pylorax.html">pylorax</a> »</li>
|
<li><a href="../pylorax.html">pylorax</a> »</li>
|
||||||
|
|
||||||
<li>pylorax.ltmpl</li>
|
<li>pylorax.ltmpl</li>
|
||||||
|
|
||||||
|
|
||||||
<li class="wy-breadcrumbs-aside">
|
<li class="wy-breadcrumbs-aside">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||||
@ -389,8 +414,8 @@
|
|||||||
<span class="c1"># log the "ErrorType: this is what happened" line</span>
|
<span class="c1"># log the "ErrorType: this is what happened" line</span>
|
||||||
<span class="n">logger</span><span class="o">.</span><span class="n">error</span><span class="p">(</span><span class="s2">" "</span> <span class="o">+</span> <span class="n">exclines</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">]</span><span class="o">.</span><span class="n">strip</span><span class="p">())</span>
|
<span class="n">logger</span><span class="o">.</span><span class="n">error</span><span class="p">(</span><span class="s2">" "</span> <span class="o">+</span> <span class="n">exclines</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">]</span><span class="o">.</span><span class="n">strip</span><span class="p">())</span>
|
||||||
<span class="c1"># and log the entire traceback to the debug log</span>
|
<span class="c1"># and log the entire traceback to the debug log</span>
|
||||||
<span class="k">for</span> <span class="n">line</span> <span class="ow">in</span> <span class="s1">''</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">exclines</span><span class="p">)</span><span class="o">.</span><span class="n">splitlines</span><span class="p">():</span>
|
<span class="k">for</span> <span class="n">_line</span> <span class="ow">in</span> <span class="s1">''</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">exclines</span><span class="p">)</span><span class="o">.</span><span class="n">splitlines</span><span class="p">():</span>
|
||||||
<span class="n">logger</span><span class="o">.</span><span class="n">debug</span><span class="p">(</span><span class="s2">" "</span> <span class="o">+</span> <span class="n">line</span><span class="p">)</span>
|
<span class="n">logger</span><span class="o">.</span><span class="n">debug</span><span class="p">(</span><span class="s2">" "</span> <span class="o">+</span> <span class="n">_line</span><span class="p">)</span>
|
||||||
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">fatalerrors</span><span class="p">:</span>
|
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">fatalerrors</span><span class="p">:</span>
|
||||||
<span class="k">raise</span>
|
<span class="k">raise</span>
|
||||||
|
|
||||||
@ -702,15 +727,28 @@
|
|||||||
<span class="c1"># dnf queries don't have a concept of negative globs which is why</span>
|
<span class="c1"># dnf queries don't have a concept of negative globs which is why</span>
|
||||||
<span class="c1"># the filtering is done the hard way.</span>
|
<span class="c1"># the filtering is done the hard way.</span>
|
||||||
|
|
||||||
<span class="n">pkgnames</span> <span class="o">=</span> <span class="p">{</span><span class="n">pkg</span><span class="o">.</span><span class="n">name</span> <span class="k">for</span> <span class="n">pkg</span> <span class="ow">in</span> <span class="n">dnf</span><span class="o">.</span><span class="n">subject</span><span class="o">.</span><span class="n">Subject</span><span class="p">(</span><span class="n">p</span><span class="p">)</span><span class="o">.</span><span class="n">get_best_query</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">dbo</span><span class="o">.</span><span class="n">sack</span><span class="p">)}</span>
|
<span class="n">pkgnames</span> <span class="o">=</span> <span class="p">[</span><span class="n">pkg</span> <span class="k">for</span> <span class="n">pkg</span> <span class="ow">in</span> <span class="n">dnf</span><span class="o">.</span><span class="n">subject</span><span class="o">.</span><span class="n">Subject</span><span class="p">(</span><span class="n">p</span><span class="p">)</span><span class="o">.</span><span class="n">get_best_query</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">dbo</span><span class="o">.</span><span class="n">sack</span><span class="p">)</span><span class="o">.</span><span class="n">filter</span><span class="p">(</span><span class="n">latest</span><span class="o">=</span><span class="kc">True</span><span class="p">)]</span>
|
||||||
<span class="k">if</span> <span class="ow">not</span> <span class="n">pkgnames</span><span class="p">:</span>
|
<span class="k">if</span> <span class="ow">not</span> <span class="n">pkgnames</span><span class="p">:</span>
|
||||||
<span class="k">raise</span> <span class="n">dnf</span><span class="o">.</span><span class="n">exceptions</span><span class="o">.</span><span class="n">PackageNotFoundError</span><span class="p">(</span><span class="s2">"no package matched"</span><span class="p">,</span> <span class="n">p</span><span class="p">)</span>
|
<span class="k">raise</span> <span class="n">dnf</span><span class="o">.</span><span class="n">exceptions</span><span class="o">.</span><span class="n">PackageNotFoundError</span><span class="p">(</span><span class="s2">"no package matched"</span><span class="p">,</span> <span class="n">p</span><span class="p">)</span>
|
||||||
|
|
||||||
|
<span class="c1"># Sort the results so that we have consistent results</span>
|
||||||
|
<span class="n">pkgnames</span> <span class="o">=</span> <span class="nb">sorted</span><span class="p">([</span><span class="s2">"</span><span class="si">{}</span><span class="s2">-</span><span class="si">{}</span><span class="s2">-</span><span class="si">{}</span><span class="s2">"</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">pkg</span><span class="o">.</span><span class="n">name</span><span class="p">,</span> <span class="n">pkg</span><span class="o">.</span><span class="n">version</span><span class="p">,</span> <span class="n">pkg</span><span class="o">.</span><span class="n">release</span><span class="p">)</span> <span class="k">for</span> <span class="n">pkg</span> <span class="ow">in</span> <span class="n">pkgnames</span><span class="p">])</span>
|
||||||
|
|
||||||
<span class="k">for</span> <span class="n">exclude</span> <span class="ow">in</span> <span class="n">excludes</span><span class="p">:</span>
|
<span class="k">for</span> <span class="n">exclude</span> <span class="ow">in</span> <span class="n">excludes</span><span class="p">:</span>
|
||||||
<span class="n">pkgnames</span> <span class="o">=</span> <span class="p">{</span><span class="n">pkgname</span> <span class="k">for</span> <span class="n">pkgname</span> <span class="ow">in</span> <span class="n">pkgnames</span> <span class="k">if</span> <span class="ow">not</span> <span class="n">fnmatch</span><span class="o">.</span><span class="n">fnmatch</span><span class="p">(</span><span class="n">pkgname</span><span class="p">,</span> <span class="n">exclude</span><span class="p">)}</span>
|
<span class="n">pkgnames</span> <span class="o">=</span> <span class="p">[</span><span class="n">pkg</span> <span class="k">for</span> <span class="n">pkg</span> <span class="ow">in</span> <span class="n">pkgnames</span> <span class="k">if</span> <span class="ow">not</span> <span class="n">fnmatch</span><span class="o">.</span><span class="n">fnmatch</span><span class="p">(</span><span class="n">pkg</span><span class="p">,</span> <span class="n">exclude</span><span class="p">)]</span>
|
||||||
|
|
||||||
|
<span class="c1"># If the request is a glob, expand it in the log</span>
|
||||||
|
<span class="k">if</span> <span class="nb">any</span><span class="p">(</span><span class="n">g</span> <span class="k">for</span> <span class="n">g</span> <span class="ow">in</span> <span class="p">[</span><span class="s1">'*'</span><span class="p">,</span><span class="s1">'?'</span><span class="p">,</span><span class="s1">'.'</span><span class="p">]</span> <span class="k">if</span> <span class="n">g</span> <span class="ow">in</span> <span class="n">p</span><span class="p">):</span>
|
||||||
|
<span class="n">logger</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="s2">"installpkg: </span><span class="si">%s</span><span class="s2"> expands to </span><span class="si">%s</span><span class="s2">"</span><span class="p">,</span> <span class="n">p</span><span class="p">,</span> <span class="s2">","</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">pkgnames</span><span class="p">))</span>
|
||||||
|
|
||||||
<span class="k">for</span> <span class="n">pkgname</span> <span class="ow">in</span> <span class="n">pkgnames</span><span class="p">:</span>
|
<span class="k">for</span> <span class="n">pkgname</span> <span class="ow">in</span> <span class="n">pkgnames</span><span class="p">:</span>
|
||||||
|
<span class="k">try</span><span class="p">:</span>
|
||||||
<span class="bp">self</span><span class="o">.</span><span class="n">dbo</span><span class="o">.</span><span class="n">install</span><span class="p">(</span><span class="n">pkgname</span><span class="p">)</span>
|
<span class="bp">self</span><span class="o">.</span><span class="n">dbo</span><span class="o">.</span><span class="n">install</span><span class="p">(</span><span class="n">pkgname</span><span class="p">)</span>
|
||||||
|
<span class="k">except</span> <span class="ne">Exception</span> <span class="k">as</span> <span class="n">e</span><span class="p">:</span> <span class="c1"># pylint: disable=broad-except</span>
|
||||||
|
<span class="k">if</span> <span class="n">required</span><span class="p">:</span>
|
||||||
|
<span class="k">raise</span>
|
||||||
|
<span class="c1"># Not required, log it and continue processing pkgs</span>
|
||||||
|
<span class="n">logger</span><span class="o">.</span><span class="n">error</span><span class="p">(</span><span class="s2">"installpkg </span><span class="si">%s</span><span class="s2"> failed: </span><span class="si">%s</span><span class="s2">"</span><span class="p">,</span> <span class="n">pkgname</span><span class="p">,</span> <span class="nb">str</span><span class="p">(</span><span class="n">e</span><span class="p">))</span>
|
||||||
<span class="k">except</span> <span class="ne">Exception</span> <span class="k">as</span> <span class="n">e</span><span class="p">:</span> <span class="c1"># pylint: disable=broad-except</span>
|
<span class="k">except</span> <span class="ne">Exception</span> <span class="k">as</span> <span class="n">e</span><span class="p">:</span> <span class="c1"># pylint: disable=broad-except</span>
|
||||||
<span class="n">logger</span><span class="o">.</span><span class="n">error</span><span class="p">(</span><span class="s2">"installpkg </span><span class="si">%s</span><span class="s2"> failed: </span><span class="si">%s</span><span class="s2">"</span><span class="p">,</span> <span class="n">p</span><span class="p">,</span> <span class="nb">str</span><span class="p">(</span><span class="n">e</span><span class="p">))</span>
|
<span class="n">logger</span><span class="o">.</span><span class="n">error</span><span class="p">(</span><span class="s2">"installpkg </span><span class="si">%s</span><span class="s2"> failed: </span><span class="si">%s</span><span class="s2">"</span><span class="p">,</span> <span class="n">p</span><span class="p">,</span> <span class="nb">str</span><span class="p">(</span><span class="n">e</span><span class="p">))</span>
|
||||||
<span class="n">errors</span> <span class="o">=</span> <span class="kc">True</span>
|
<span class="n">errors</span> <span class="o">=</span> <span class="kc">True</span>
|
||||||
@ -901,16 +939,20 @@
|
|||||||
<span class="n">logger</span><span class="o">.</span><span class="n">debug</span><span class="p">(</span><span class="s2">"systemctl: no units given for </span><span class="si">%s</span><span class="s2">, ignoring"</span><span class="p">,</span> <span class="n">cmd</span><span class="p">)</span>
|
<span class="n">logger</span><span class="o">.</span><span class="n">debug</span><span class="p">(</span><span class="s2">"systemctl: no units given for </span><span class="si">%s</span><span class="s2">, ignoring"</span><span class="p">,</span> <span class="n">cmd</span><span class="p">)</span>
|
||||||
<span class="k">return</span>
|
<span class="k">return</span>
|
||||||
<span class="bp">self</span><span class="o">.</span><span class="n">mkdir</span><span class="p">(</span><span class="s2">"/run/systemd/system"</span><span class="p">)</span> <span class="c1"># XXX workaround for systemctl bug</span>
|
<span class="bp">self</span><span class="o">.</span><span class="n">mkdir</span><span class="p">(</span><span class="s2">"/run/systemd/system"</span><span class="p">)</span> <span class="c1"># XXX workaround for systemctl bug</span>
|
||||||
<span class="n">systemctl</span> <span class="o">=</span> <span class="p">(</span><span class="s1">'systemctl'</span><span class="p">,</span> <span class="s1">'--root'</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">outroot</span><span class="p">,</span> <span class="s1">'--no-reload'</span><span class="p">,</span>
|
<span class="n">systemctl</span> <span class="o">=</span> <span class="p">[</span><span class="s1">'systemctl'</span><span class="p">,</span> <span class="s1">'--root'</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">outroot</span><span class="p">,</span> <span class="s1">'--no-reload'</span><span class="p">,</span> <span class="n">cmd</span><span class="p">]</span>
|
||||||
<span class="s1">'--quiet'</span><span class="p">,</span> <span class="n">cmd</span><span class="p">)</span>
|
<span class="c1"># When a unit doesn't exist systemd aborts the command. Run them one at a time.</span>
|
||||||
<span class="c1"># XXX for some reason 'systemctl enable/disable' always returns 1</span>
|
<span class="c1"># XXX for some reason 'systemctl enable/disable' always returns 1</span>
|
||||||
|
<span class="k">for</span> <span class="n">unit</span> <span class="ow">in</span> <span class="n">units</span><span class="p">:</span>
|
||||||
<span class="k">try</span><span class="p">:</span>
|
<span class="k">try</span><span class="p">:</span>
|
||||||
<span class="n">cmd</span> <span class="o">=</span> <span class="n">systemctl</span> <span class="o">+</span> <span class="n">units</span>
|
<span class="n">cmd</span> <span class="o">=</span> <span class="n">systemctl</span> <span class="o">+</span> <span class="p">[</span><span class="n">unit</span><span class="p">]</span>
|
||||||
<span class="n">runcmd</span><span class="p">(</span><span class="n">cmd</span><span class="p">)</span>
|
<span class="n">runcmd</span><span class="p">(</span><span class="n">cmd</span><span class="p">)</span>
|
||||||
<span class="k">except</span> <span class="n">CalledProcessError</span><span class="p">:</span>
|
<span class="k">except</span> <span class="n">CalledProcessError</span><span class="p">:</span>
|
||||||
<span class="k">pass</span></div></div>
|
<span class="k">pass</span></div></div>
|
||||||
</pre></div>
|
</pre></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="articleComments">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
@ -942,10 +984,11 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var DOCUMENTATION_OPTIONS = {
|
var DOCUMENTATION_OPTIONS = {
|
||||||
URL_ROOT:'../../',
|
URL_ROOT:'../../',
|
||||||
VERSION:'26.2',
|
VERSION:'28.2',
|
||||||
COLLAPSE_INDEX:false,
|
COLLAPSE_INDEX:false,
|
||||||
FILE_SUFFIX:'.html',
|
FILE_SUFFIX:'.html',
|
||||||
HAS_SOURCE: true
|
HAS_SOURCE: true,
|
||||||
|
SOURCELINK_SUFFIX: '.txt'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<title>pylorax.monitor — Lorax 26.2 documentation</title>
|
<title>pylorax.monitor — Lorax 28.2 documentation</title>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -33,7 +35,7 @@
|
|||||||
<link rel="index" title="Index"
|
<link rel="index" title="Index"
|
||||||
href="../../genindex.html"/>
|
href="../../genindex.html"/>
|
||||||
<link rel="search" title="Search" href="../../search.html"/>
|
<link rel="search" title="Search" href="../../search.html"/>
|
||||||
<link rel="top" title="Lorax 26.2 documentation" href="../../index.html"/>
|
<link rel="top" title="Lorax 28.2 documentation" href="../../index.html"/>
|
||||||
<link rel="up" title="pylorax" href="../pylorax.html"/>
|
<link rel="up" title="pylorax" href="../pylorax.html"/>
|
||||||
|
|
||||||
|
|
||||||
@ -43,6 +45,7 @@
|
|||||||
|
|
||||||
<body class="wy-body-for-nav" role="document">
|
<body class="wy-body-for-nav" role="document">
|
||||||
|
|
||||||
|
|
||||||
<div class="wy-grid-for-nav">
|
<div class="wy-grid-for-nav">
|
||||||
|
|
||||||
|
|
||||||
@ -62,7 +65,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="version">
|
<div class="version">
|
||||||
26.2
|
28.2
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -83,6 +86,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<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">Introduction to Lorax</a></li>
|
||||||
<li class="toctree-l1"><a class="reference internal" href="../../intro.html#before-lorax">Before Lorax</a></li>
|
<li class="toctree-l1"><a class="reference internal" href="../../intro.html#before-lorax">Before Lorax</a></li>
|
||||||
@ -102,8 +108,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||||
|
|
||||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||||
<a href="../../index.html">Lorax</a>
|
<a href="../../index.html">Lorax</a>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
@ -116,8 +124,20 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div role="navigation" aria-label="breadcrumbs navigation">
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
||||||
|
|
||||||
<ul class="wy-breadcrumbs">
|
<ul class="wy-breadcrumbs">
|
||||||
|
|
||||||
<li><a href="../../index.html">Docs</a> »</li>
|
<li><a href="../../index.html">Docs</a> »</li>
|
||||||
|
|
||||||
<li><a href="../index.html">Module code</a> »</li>
|
<li><a href="../index.html">Module code</a> »</li>
|
||||||
@ -125,12 +145,17 @@
|
|||||||
<li><a href="../pylorax.html">pylorax</a> »</li>
|
<li><a href="../pylorax.html">pylorax</a> »</li>
|
||||||
|
|
||||||
<li>pylorax.monitor</li>
|
<li>pylorax.monitor</li>
|
||||||
|
|
||||||
|
|
||||||
<li class="wy-breadcrumbs-aside">
|
<li class="wy-breadcrumbs-aside">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||||
@ -249,8 +274,8 @@
|
|||||||
<span class="s2">"packaging: Missed: NoSuchPackage"</span><span class="p">,</span>
|
<span class="s2">"packaging: Missed: NoSuchPackage"</span><span class="p">,</span>
|
||||||
<span class="s2">"packaging: Installation failed"</span><span class="p">,</span>
|
<span class="s2">"packaging: Installation failed"</span><span class="p">,</span>
|
||||||
<span class="s2">"The following error occurred while installing. This is a fatal error"</span><span class="p">]</span>
|
<span class="s2">"The following error occurred while installing. This is a fatal error"</span><span class="p">]</span>
|
||||||
<span class="n">re_tests</span> <span class="o">=</span> <span class="p">[</span><span class="s2">r"packaging: base repo .* not valid"</span><span class="p">,</span>
|
<span class="n">re_tests</span> <span class="o">=</span> <span class="p">[</span><span class="sa">r</span><span class="s2">"packaging: base repo .* not valid"</span><span class="p">,</span>
|
||||||
<span class="s2">r"packaging: .* requires .*"</span><span class="p">]</span>
|
<span class="sa">r</span><span class="s2">"packaging: .* requires .*"</span><span class="p">]</span>
|
||||||
<span class="k">for</span> <span class="n">t</span> <span class="ow">in</span> <span class="n">simple_tests</span><span class="p">:</span>
|
<span class="k">for</span> <span class="n">t</span> <span class="ow">in</span> <span class="n">simple_tests</span><span class="p">:</span>
|
||||||
<span class="k">if</span> <span class="n">t</span> <span class="ow">in</span> <span class="n">line</span><span class="p">:</span>
|
<span class="k">if</span> <span class="n">t</span> <span class="ow">in</span> <span class="n">line</span><span class="p">:</span>
|
||||||
<span class="bp">self</span><span class="o">.</span><span class="n">server</span><span class="o">.</span><span class="n">log_error</span> <span class="o">=</span> <span class="kc">True</span>
|
<span class="bp">self</span><span class="o">.</span><span class="n">server</span><span class="o">.</span><span class="n">log_error</span> <span class="o">=</span> <span class="kc">True</span>
|
||||||
@ -282,7 +307,7 @@
|
|||||||
<span class="bp">self</span><span class="o">.</span><span class="n">_timeout</span> <span class="o">=</span> <span class="n">kwargs</span><span class="o">.</span><span class="n">pop</span><span class="p">(</span><span class="s2">"timeout"</span><span class="p">,</span> <span class="kc">None</span><span class="p">)</span>
|
<span class="bp">self</span><span class="o">.</span><span class="n">_timeout</span> <span class="o">=</span> <span class="n">kwargs</span><span class="o">.</span><span class="n">pop</span><span class="p">(</span><span class="s2">"timeout"</span><span class="p">,</span> <span class="kc">None</span><span class="p">)</span>
|
||||||
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">_timeout</span><span class="p">:</span>
|
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">_timeout</span><span class="p">:</span>
|
||||||
<span class="bp">self</span><span class="o">.</span><span class="n">_start_time</span> <span class="o">=</span> <span class="n">time</span><span class="o">.</span><span class="n">time</span><span class="p">()</span>
|
<span class="bp">self</span><span class="o">.</span><span class="n">_start_time</span> <span class="o">=</span> <span class="n">time</span><span class="o">.</span><span class="n">time</span><span class="p">()</span>
|
||||||
<span class="n">socketserver</span><span class="o">.</span><span class="n">TCPServer</span><span class="o">.</span><span class="n">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span>
|
<span class="n">socketserver</span><span class="o">.</span><span class="n">TCPServer</span><span class="o">.</span><span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span>
|
||||||
|
|
||||||
<div class="viewcode-block" id="LogServer.log_check"><a class="viewcode-back" href="../../pylorax.html#pylorax.monitor.LogServer.log_check">[docs]</a> <span class="k">def</span> <span class="nf">log_check</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
|
<div class="viewcode-block" id="LogServer.log_check"><a class="viewcode-back" href="../../pylorax.html#pylorax.monitor.LogServer.log_check">[docs]</a> <span class="k">def</span> <span class="nf">log_check</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
|
||||||
<span class="sd">"""</span>
|
<span class="sd">"""</span>
|
||||||
@ -334,6 +359,9 @@
|
|||||||
<span class="bp">self</span><span class="o">.</span><span class="n">server_thread</span><span class="o">.</span><span class="n">join</span><span class="p">()</span></div></div>
|
<span class="bp">self</span><span class="o">.</span><span class="n">server_thread</span><span class="o">.</span><span class="n">join</span><span class="p">()</span></div></div>
|
||||||
</pre></div>
|
</pre></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="articleComments">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
@ -365,10 +393,11 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var DOCUMENTATION_OPTIONS = {
|
var DOCUMENTATION_OPTIONS = {
|
||||||
URL_ROOT:'../../',
|
URL_ROOT:'../../',
|
||||||
VERSION:'26.2',
|
VERSION:'28.2',
|
||||||
COLLAPSE_INDEX:false,
|
COLLAPSE_INDEX:false,
|
||||||
FILE_SUFFIX:'.html',
|
FILE_SUFFIX:'.html',
|
||||||
HAS_SOURCE: true
|
HAS_SOURCE: true,
|
||||||
|
SOURCELINK_SUFFIX: '.txt'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<title>pylorax.mount — Lorax 26.2 documentation</title>
|
<title>pylorax.mount — Lorax 28.2 documentation</title>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -33,7 +35,7 @@
|
|||||||
<link rel="index" title="Index"
|
<link rel="index" title="Index"
|
||||||
href="../../genindex.html"/>
|
href="../../genindex.html"/>
|
||||||
<link rel="search" title="Search" href="../../search.html"/>
|
<link rel="search" title="Search" href="../../search.html"/>
|
||||||
<link rel="top" title="Lorax 26.2 documentation" href="../../index.html"/>
|
<link rel="top" title="Lorax 28.2 documentation" href="../../index.html"/>
|
||||||
<link rel="up" title="pylorax" href="../pylorax.html"/>
|
<link rel="up" title="pylorax" href="../pylorax.html"/>
|
||||||
|
|
||||||
|
|
||||||
@ -43,6 +45,7 @@
|
|||||||
|
|
||||||
<body class="wy-body-for-nav" role="document">
|
<body class="wy-body-for-nav" role="document">
|
||||||
|
|
||||||
|
|
||||||
<div class="wy-grid-for-nav">
|
<div class="wy-grid-for-nav">
|
||||||
|
|
||||||
|
|
||||||
@ -62,7 +65,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="version">
|
<div class="version">
|
||||||
26.2
|
28.2
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -83,6 +86,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<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">Introduction to Lorax</a></li>
|
||||||
<li class="toctree-l1"><a class="reference internal" href="../../intro.html#before-lorax">Before Lorax</a></li>
|
<li class="toctree-l1"><a class="reference internal" href="../../intro.html#before-lorax">Before Lorax</a></li>
|
||||||
@ -102,8 +108,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||||
|
|
||||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||||
<a href="../../index.html">Lorax</a>
|
<a href="../../index.html">Lorax</a>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
@ -116,8 +124,20 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div role="navigation" aria-label="breadcrumbs navigation">
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
||||||
|
|
||||||
<ul class="wy-breadcrumbs">
|
<ul class="wy-breadcrumbs">
|
||||||
|
|
||||||
<li><a href="../../index.html">Docs</a> »</li>
|
<li><a href="../../index.html">Docs</a> »</li>
|
||||||
|
|
||||||
<li><a href="../index.html">Module code</a> »</li>
|
<li><a href="../index.html">Module code</a> »</li>
|
||||||
@ -125,12 +145,17 @@
|
|||||||
<li><a href="../pylorax.html">pylorax</a> »</li>
|
<li><a href="../pylorax.html">pylorax</a> »</li>
|
||||||
|
|
||||||
<li>pylorax.mount</li>
|
<li>pylorax.mount</li>
|
||||||
|
|
||||||
|
|
||||||
<li class="wy-breadcrumbs-aside">
|
<li class="wy-breadcrumbs-aside">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||||
@ -241,6 +266,9 @@
|
|||||||
<span class="k">return</span></div></div>
|
<span class="k">return</span></div></div>
|
||||||
</pre></div>
|
</pre></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="articleComments">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
@ -272,10 +300,11 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var DOCUMENTATION_OPTIONS = {
|
var DOCUMENTATION_OPTIONS = {
|
||||||
URL_ROOT:'../../',
|
URL_ROOT:'../../',
|
||||||
VERSION:'26.2',
|
VERSION:'28.2',
|
||||||
COLLAPSE_INDEX:false,
|
COLLAPSE_INDEX:false,
|
||||||
FILE_SUFFIX:'.html',
|
FILE_SUFFIX:'.html',
|
||||||
HAS_SOURCE: true
|
HAS_SOURCE: true,
|
||||||
|
SOURCELINK_SUFFIX: '.txt'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<title>pylorax.sysutils — Lorax 26.2 documentation</title>
|
<title>pylorax.sysutils — Lorax 28.2 documentation</title>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -33,7 +35,7 @@
|
|||||||
<link rel="index" title="Index"
|
<link rel="index" title="Index"
|
||||||
href="../../genindex.html"/>
|
href="../../genindex.html"/>
|
||||||
<link rel="search" title="Search" href="../../search.html"/>
|
<link rel="search" title="Search" href="../../search.html"/>
|
||||||
<link rel="top" title="Lorax 26.2 documentation" href="../../index.html"/>
|
<link rel="top" title="Lorax 28.2 documentation" href="../../index.html"/>
|
||||||
<link rel="up" title="pylorax" href="../pylorax.html"/>
|
<link rel="up" title="pylorax" href="../pylorax.html"/>
|
||||||
|
|
||||||
|
|
||||||
@ -43,6 +45,7 @@
|
|||||||
|
|
||||||
<body class="wy-body-for-nav" role="document">
|
<body class="wy-body-for-nav" role="document">
|
||||||
|
|
||||||
|
|
||||||
<div class="wy-grid-for-nav">
|
<div class="wy-grid-for-nav">
|
||||||
|
|
||||||
|
|
||||||
@ -62,7 +65,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="version">
|
<div class="version">
|
||||||
26.2
|
28.2
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -83,6 +86,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<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">Introduction to Lorax</a></li>
|
||||||
<li class="toctree-l1"><a class="reference internal" href="../../intro.html#before-lorax">Before Lorax</a></li>
|
<li class="toctree-l1"><a class="reference internal" href="../../intro.html#before-lorax">Before Lorax</a></li>
|
||||||
@ -102,8 +108,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||||
|
|
||||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||||
<a href="../../index.html">Lorax</a>
|
<a href="../../index.html">Lorax</a>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
@ -116,8 +124,20 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div role="navigation" aria-label="breadcrumbs navigation">
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
||||||
|
|
||||||
<ul class="wy-breadcrumbs">
|
<ul class="wy-breadcrumbs">
|
||||||
|
|
||||||
<li><a href="../../index.html">Docs</a> »</li>
|
<li><a href="../../index.html">Docs</a> »</li>
|
||||||
|
|
||||||
<li><a href="../index.html">Module code</a> »</li>
|
<li><a href="../index.html">Module code</a> »</li>
|
||||||
@ -125,12 +145,17 @@
|
|||||||
<li><a href="../pylorax.html">pylorax</a> »</li>
|
<li><a href="../pylorax.html">pylorax</a> »</li>
|
||||||
|
|
||||||
<li>pylorax.sysutils</li>
|
<li>pylorax.sysutils</li>
|
||||||
|
|
||||||
|
|
||||||
<li class="wy-breadcrumbs-aside">
|
<li class="wy-breadcrumbs-aside">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||||
@ -247,6 +272,9 @@
|
|||||||
<span class="n">runcmd</span><span class="p">([</span><span class="s2">"/bin/cp"</span><span class="p">,</span> <span class="s2">"-alx"</span><span class="p">,</span> <span class="n">src</span><span class="p">,</span> <span class="n">dst</span><span class="p">])</span></div>
|
<span class="n">runcmd</span><span class="p">([</span><span class="s2">"/bin/cp"</span><span class="p">,</span> <span class="s2">"-alx"</span><span class="p">,</span> <span class="n">src</span><span class="p">,</span> <span class="n">dst</span><span class="p">])</span></div>
|
||||||
</pre></div>
|
</pre></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="articleComments">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
@ -278,10 +306,11 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var DOCUMENTATION_OPTIONS = {
|
var DOCUMENTATION_OPTIONS = {
|
||||||
URL_ROOT:'../../',
|
URL_ROOT:'../../',
|
||||||
VERSION:'26.2',
|
VERSION:'28.2',
|
||||||
COLLAPSE_INDEX:false,
|
COLLAPSE_INDEX:false,
|
||||||
FILE_SUFFIX:'.html',
|
FILE_SUFFIX:'.html',
|
||||||
HAS_SOURCE: true
|
HAS_SOURCE: true,
|
||||||
|
SOURCELINK_SUFFIX: '.txt'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<title>pylorax.treebuilder — Lorax 26.2 documentation</title>
|
<title>pylorax.treebuilder — Lorax 28.2 documentation</title>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -33,7 +35,7 @@
|
|||||||
<link rel="index" title="Index"
|
<link rel="index" title="Index"
|
||||||
href="../../genindex.html"/>
|
href="../../genindex.html"/>
|
||||||
<link rel="search" title="Search" href="../../search.html"/>
|
<link rel="search" title="Search" href="../../search.html"/>
|
||||||
<link rel="top" title="Lorax 26.2 documentation" href="../../index.html"/>
|
<link rel="top" title="Lorax 28.2 documentation" href="../../index.html"/>
|
||||||
<link rel="up" title="pylorax" href="../pylorax.html"/>
|
<link rel="up" title="pylorax" href="../pylorax.html"/>
|
||||||
|
|
||||||
|
|
||||||
@ -43,6 +45,7 @@
|
|||||||
|
|
||||||
<body class="wy-body-for-nav" role="document">
|
<body class="wy-body-for-nav" role="document">
|
||||||
|
|
||||||
|
|
||||||
<div class="wy-grid-for-nav">
|
<div class="wy-grid-for-nav">
|
||||||
|
|
||||||
|
|
||||||
@ -62,7 +65,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="version">
|
<div class="version">
|
||||||
26.2
|
28.2
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -83,6 +86,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<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">Introduction to Lorax</a></li>
|
||||||
<li class="toctree-l1"><a class="reference internal" href="../../intro.html#before-lorax">Before Lorax</a></li>
|
<li class="toctree-l1"><a class="reference internal" href="../../intro.html#before-lorax">Before Lorax</a></li>
|
||||||
@ -102,8 +108,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||||
|
|
||||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||||
<a href="../../index.html">Lorax</a>
|
<a href="../../index.html">Lorax</a>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
@ -116,8 +124,20 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div role="navigation" aria-label="breadcrumbs navigation">
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
||||||
|
|
||||||
<ul class="wy-breadcrumbs">
|
<ul class="wy-breadcrumbs">
|
||||||
|
|
||||||
<li><a href="../../index.html">Docs</a> »</li>
|
<li><a href="../../index.html">Docs</a> »</li>
|
||||||
|
|
||||||
<li><a href="../index.html">Module code</a> »</li>
|
<li><a href="../index.html">Module code</a> »</li>
|
||||||
@ -125,12 +145,17 @@
|
|||||||
<li><a href="../pylorax.html">pylorax</a> »</li>
|
<li><a href="../pylorax.html">pylorax</a> »</li>
|
||||||
|
|
||||||
<li>pylorax.treebuilder</li>
|
<li>pylorax.treebuilder</li>
|
||||||
|
|
||||||
|
|
||||||
<li class="wy-breadcrumbs-aside">
|
<li class="wy-breadcrumbs-aside">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||||
@ -291,7 +316,7 @@
|
|||||||
<span class="sd">'''Ensure that contents of the installroot can run'''</span>
|
<span class="sd">'''Ensure that contents of the installroot can run'''</span>
|
||||||
<span class="n">status</span> <span class="o">=</span> <span class="kc">True</span>
|
<span class="n">status</span> <span class="o">=</span> <span class="kc">True</span>
|
||||||
|
|
||||||
<span class="n">ELF_MAGIC</span> <span class="o">=</span> <span class="n">b</span><span class="s1">'</span><span class="se">\x7f</span><span class="s1">ELF'</span>
|
<span class="n">ELF_MAGIC</span> <span class="o">=</span> <span class="sa">b</span><span class="s1">'</span><span class="se">\x7f</span><span class="s1">ELF'</span>
|
||||||
|
|
||||||
<span class="c1"># Iterate over all files in /usr/bin and /usr/sbin</span>
|
<span class="c1"># Iterate over all files in /usr/bin and /usr/sbin</span>
|
||||||
<span class="c1"># For ELF files, gather them into a list and we'll check them all at</span>
|
<span class="c1"># For ELF files, gather them into a list and we'll check them all at</span>
|
||||||
@ -306,7 +331,7 @@
|
|||||||
<span class="k">if</span> <span class="n">magic</span> <span class="o">==</span> <span class="n">ELF_MAGIC</span><span class="p">:</span>
|
<span class="k">if</span> <span class="n">magic</span> <span class="o">==</span> <span class="n">ELF_MAGIC</span><span class="p">:</span>
|
||||||
<span class="c1"># Save the path, minus the chroot prefix</span>
|
<span class="c1"># Save the path, minus the chroot prefix</span>
|
||||||
<span class="n">elf_files</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">path</span><span class="p">[</span><span class="nb">len</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">vars</span><span class="o">.</span><span class="n">root</span><span class="p">):])</span>
|
<span class="n">elf_files</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">path</span><span class="p">[</span><span class="nb">len</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">vars</span><span class="o">.</span><span class="n">root</span><span class="p">):])</span>
|
||||||
<span class="k">elif</span> <span class="n">magic</span><span class="p">[:</span><span class="mi">2</span><span class="p">]</span> <span class="o">==</span> <span class="n">b</span><span class="s1">'#!'</span><span class="p">:</span>
|
<span class="k">elif</span> <span class="n">magic</span><span class="p">[:</span><span class="mi">2</span><span class="p">]</span> <span class="o">==</span> <span class="sa">b</span><span class="s1">'#!'</span><span class="p">:</span>
|
||||||
<span class="c1"># Reopen the file as text and read the first line.</span>
|
<span class="c1"># Reopen the file as text and read the first line.</span>
|
||||||
<span class="c1"># Open as latin-1 so that stray 8-bit characters don't make</span>
|
<span class="c1"># Open as latin-1 so that stray 8-bit characters don't make</span>
|
||||||
<span class="c1"># things blow up. We only really care about ASCII parts.</span>
|
<span class="c1"># things blow up. We only really care about ASCII parts.</span>
|
||||||
@ -495,8 +520,8 @@
|
|||||||
<div class="viewcode-block" id="findkernels"><a class="viewcode-back" href="../../pylorax.html#pylorax.treebuilder.findkernels">[docs]</a><span class="k">def</span> <span class="nf">findkernels</span><span class="p">(</span><span class="n">root</span><span class="o">=</span><span class="s2">"/"</span><span class="p">,</span> <span class="n">kdir</span><span class="o">=</span><span class="s2">"boot"</span><span class="p">):</span>
|
<div class="viewcode-block" id="findkernels"><a class="viewcode-back" href="../../pylorax.html#pylorax.treebuilder.findkernels">[docs]</a><span class="k">def</span> <span class="nf">findkernels</span><span class="p">(</span><span class="n">root</span><span class="o">=</span><span class="s2">"/"</span><span class="p">,</span> <span class="n">kdir</span><span class="o">=</span><span class="s2">"boot"</span><span class="p">):</span>
|
||||||
<span class="c1"># To find possible flavors, awk '/BuildKernel/ { print $4 }' kernel.spec</span>
|
<span class="c1"># To find possible flavors, awk '/BuildKernel/ { print $4 }' kernel.spec</span>
|
||||||
<span class="n">flavors</span> <span class="o">=</span> <span class="p">(</span><span class="s1">'debug'</span><span class="p">,</span> <span class="s1">'PAE'</span><span class="p">,</span> <span class="s1">'PAEdebug'</span><span class="p">,</span> <span class="s1">'smp'</span><span class="p">,</span> <span class="s1">'xen'</span><span class="p">,</span> <span class="s1">'lpae'</span><span class="p">)</span>
|
<span class="n">flavors</span> <span class="o">=</span> <span class="p">(</span><span class="s1">'debug'</span><span class="p">,</span> <span class="s1">'PAE'</span><span class="p">,</span> <span class="s1">'PAEdebug'</span><span class="p">,</span> <span class="s1">'smp'</span><span class="p">,</span> <span class="s1">'xen'</span><span class="p">,</span> <span class="s1">'lpae'</span><span class="p">)</span>
|
||||||
<span class="n">kre</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">compile</span><span class="p">(</span><span class="s2">r"vmlinuz-(?P<version>.+?\.(?P<arch>[a-z0-9_]+)"</span>
|
<span class="n">kre</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">compile</span><span class="p">(</span><span class="sa">r</span><span class="s2">"vmlinuz-(?P<version>.+?\.(?P<arch>[a-z0-9_]+)"</span>
|
||||||
<span class="s2">r"(.(?P<flavor></span><span class="si">{0}</span><span class="s2">))?)$"</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="s2">"|"</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">flavors</span><span class="p">)))</span>
|
<span class="sa">r</span><span class="s2">"(.(?P<flavor></span><span class="si">{0}</span><span class="s2">))?)$"</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="s2">"|"</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">flavors</span><span class="p">)))</span>
|
||||||
<span class="n">kernels</span> <span class="o">=</span> <span class="p">[]</span>
|
<span class="n">kernels</span> <span class="o">=</span> <span class="p">[]</span>
|
||||||
<span class="n">bootfiles</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">listdir</span><span class="p">(</span><span class="n">joinpaths</span><span class="p">(</span><span class="n">root</span><span class="p">,</span> <span class="n">kdir</span><span class="p">))</span>
|
<span class="n">bootfiles</span> <span class="o">=</span> <span class="n">os</span><span class="o">.</span><span class="n">listdir</span><span class="p">(</span><span class="n">joinpaths</span><span class="p">(</span><span class="n">root</span><span class="p">,</span> <span class="n">kdir</span><span class="p">))</span>
|
||||||
<span class="k">for</span> <span class="n">f</span> <span class="ow">in</span> <span class="n">bootfiles</span><span class="p">:</span>
|
<span class="k">for</span> <span class="n">f</span> <span class="ow">in</span> <span class="n">bootfiles</span><span class="p">:</span>
|
||||||
@ -538,6 +563,9 @@
|
|||||||
<span class="k">return</span> <span class="n">string</span><span class="o">.</span><span class="n">lower</span><span class="p">()</span></div>
|
<span class="k">return</span> <span class="n">string</span><span class="o">.</span><span class="n">lower</span><span class="p">()</span></div>
|
||||||
</pre></div>
|
</pre></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="articleComments">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
@ -569,10 +597,11 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var DOCUMENTATION_OPTIONS = {
|
var DOCUMENTATION_OPTIONS = {
|
||||||
URL_ROOT:'../../',
|
URL_ROOT:'../../',
|
||||||
VERSION:'26.2',
|
VERSION:'28.2',
|
||||||
COLLAPSE_INDEX:false,
|
COLLAPSE_INDEX:false,
|
||||||
FILE_SUFFIX:'.html',
|
FILE_SUFFIX:'.html',
|
||||||
HAS_SOURCE: true
|
HAS_SOURCE: true,
|
||||||
|
SOURCELINK_SUFFIX: '.txt'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<title>pylorax.treeinfo — Lorax 26.2 documentation</title>
|
<title>pylorax.treeinfo — Lorax 28.2 documentation</title>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -33,7 +35,7 @@
|
|||||||
<link rel="index" title="Index"
|
<link rel="index" title="Index"
|
||||||
href="../../genindex.html"/>
|
href="../../genindex.html"/>
|
||||||
<link rel="search" title="Search" href="../../search.html"/>
|
<link rel="search" title="Search" href="../../search.html"/>
|
||||||
<link rel="top" title="Lorax 26.2 documentation" href="../../index.html"/>
|
<link rel="top" title="Lorax 28.2 documentation" href="../../index.html"/>
|
||||||
<link rel="up" title="pylorax" href="../pylorax.html"/>
|
<link rel="up" title="pylorax" href="../pylorax.html"/>
|
||||||
|
|
||||||
|
|
||||||
@ -43,6 +45,7 @@
|
|||||||
|
|
||||||
<body class="wy-body-for-nav" role="document">
|
<body class="wy-body-for-nav" role="document">
|
||||||
|
|
||||||
|
|
||||||
<div class="wy-grid-for-nav">
|
<div class="wy-grid-for-nav">
|
||||||
|
|
||||||
|
|
||||||
@ -62,7 +65,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="version">
|
<div class="version">
|
||||||
26.2
|
28.2
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -83,6 +86,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<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">Introduction to Lorax</a></li>
|
||||||
<li class="toctree-l1"><a class="reference internal" href="../../intro.html#before-lorax">Before Lorax</a></li>
|
<li class="toctree-l1"><a class="reference internal" href="../../intro.html#before-lorax">Before Lorax</a></li>
|
||||||
@ -102,8 +108,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||||
|
|
||||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||||
<a href="../../index.html">Lorax</a>
|
<a href="../../index.html">Lorax</a>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
@ -116,8 +124,20 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div role="navigation" aria-label="breadcrumbs navigation">
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
||||||
|
|
||||||
<ul class="wy-breadcrumbs">
|
<ul class="wy-breadcrumbs">
|
||||||
|
|
||||||
<li><a href="../../index.html">Docs</a> »</li>
|
<li><a href="../../index.html">Docs</a> »</li>
|
||||||
|
|
||||||
<li><a href="../index.html">Module code</a> »</li>
|
<li><a href="../index.html">Module code</a> »</li>
|
||||||
@ -125,12 +145,17 @@
|
|||||||
<li><a href="../pylorax.html">pylorax</a> »</li>
|
<li><a href="../pylorax.html">pylorax</a> »</li>
|
||||||
|
|
||||||
<li>pylorax.treeinfo</li>
|
<li>pylorax.treeinfo</li>
|
||||||
|
|
||||||
|
|
||||||
<li class="wy-breadcrumbs-aside">
|
<li class="wy-breadcrumbs-aside">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||||
@ -196,6 +221,9 @@
|
|||||||
<span class="bp">self</span><span class="o">.</span><span class="n">c</span><span class="o">.</span><span class="n">write</span><span class="p">(</span><span class="n">fobj</span><span class="p">)</span></div></div>
|
<span class="bp">self</span><span class="o">.</span><span class="n">c</span><span class="o">.</span><span class="n">write</span><span class="p">(</span><span class="n">fobj</span><span class="p">)</span></div></div>
|
||||||
</pre></div>
|
</pre></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="articleComments">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
@ -227,10 +255,11 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var DOCUMENTATION_OPTIONS = {
|
var DOCUMENTATION_OPTIONS = {
|
||||||
URL_ROOT:'../../',
|
URL_ROOT:'../../',
|
||||||
VERSION:'26.2',
|
VERSION:'28.2',
|
||||||
COLLAPSE_INDEX:false,
|
COLLAPSE_INDEX:false,
|
||||||
FILE_SUFFIX:'.html',
|
FILE_SUFFIX:'.html',
|
||||||
HAS_SOURCE: true
|
HAS_SOURCE: true,
|
||||||
|
SOURCELINK_SUFFIX: '.txt'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
<script type="text/javascript" src="../../_static/jquery.js"></script>
|
||||||
|
27
_sources/index.rst.txt
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
.. Lorax documentation master file, created by
|
||||||
|
sphinx-quickstart on Wed Apr 8 13:46:00 2015.
|
||||||
|
You can adapt this file completely to your liking, but it should at least
|
||||||
|
contain the root `toctree` directive.
|
||||||
|
|
||||||
|
Welcome to Lorax's documentation!
|
||||||
|
=================================
|
||||||
|
|
||||||
|
Contents:
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:maxdepth: 1
|
||||||
|
|
||||||
|
intro
|
||||||
|
lorax
|
||||||
|
livemedia-creator
|
||||||
|
product-images
|
||||||
|
modules
|
||||||
|
|
||||||
|
|
||||||
|
Indices and tables
|
||||||
|
==================
|
||||||
|
|
||||||
|
* :ref:`genindex`
|
||||||
|
* :ref:`modindex`
|
||||||
|
* :ref:`search`
|
||||||
|
|
67
_sources/intro.rst.txt
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
Introduction to Lorax
|
||||||
|
=====================
|
||||||
|
|
||||||
|
I am the Lorax. I speak for the trees [and images].
|
||||||
|
|
||||||
|
Lorax is used to build the Anaconda Installer boot.iso, it consists of a
|
||||||
|
library, pylorax, a set of templates, and the lorax script. Its operation
|
||||||
|
is driven by a customized set of Mako templates that lists the packages
|
||||||
|
to be installed, steps to execute to remove unneeded files, and creation
|
||||||
|
of the iso for all of the supported architectures.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Before Lorax
|
||||||
|
============
|
||||||
|
|
||||||
|
Tree building tools such as pungi and revisor rely on 'buildinstall' in
|
||||||
|
anaconda/scripts/ to produce the boot images and other such control files
|
||||||
|
in the final tree. The existing buildinstall scripts written in a mix of
|
||||||
|
bash and Python are unmaintainable. Lorax is an attempt to replace them
|
||||||
|
with something more flexible.
|
||||||
|
|
||||||
|
|
||||||
|
EXISTING WORKFLOW:
|
||||||
|
|
||||||
|
pungi and other tools call scripts/buildinstall, which in turn call other
|
||||||
|
scripts to do the image building and data generation. Here's how it
|
||||||
|
currently looks:
|
||||||
|
|
||||||
|
-> buildinstall
|
||||||
|
* process command line options
|
||||||
|
* write temporary yum.conf to point to correct repo
|
||||||
|
* find anaconda release RPM
|
||||||
|
* unpack RPM, pull in those versions of upd-instroot, mk-images,
|
||||||
|
maketreeinfo.py, makestamp.py, and buildinstall
|
||||||
|
|
||||||
|
-> call upd-instroot
|
||||||
|
|
||||||
|
-> call maketreeinfo.py
|
||||||
|
|
||||||
|
-> call mk-images (which figures out which mk-images.ARCH to call)
|
||||||
|
|
||||||
|
-> call makestamp.py
|
||||||
|
|
||||||
|
* clean up
|
||||||
|
|
||||||
|
|
||||||
|
PROBLEMS:
|
||||||
|
|
||||||
|
The existing workflow presents some problems with maintaining the scripts.
|
||||||
|
First, almost all knowledge of what goes in to the stage 1 and stage 2
|
||||||
|
images lives in upd-instroot. The mk-images* scripts copy things from the
|
||||||
|
root created by upd-instroot in order to build the stage 1 image, though
|
||||||
|
it's not completely clear from reading the scripts.
|
||||||
|
|
||||||
|
|
||||||
|
NEW IDEAS:
|
||||||
|
|
||||||
|
Create a new central driver with all information living in Python modules.
|
||||||
|
Configuration files will provide the knowledge previously contained in the
|
||||||
|
upd-instroot and mk-images* scripts.
|
||||||
|
|
||||||
|
|
||||||
|
|
639
_sources/livemedia-creator.rst.txt
Normal file
@ -0,0 +1,639 @@
|
|||||||
|
livemedia-creator
|
||||||
|
=================
|
||||||
|
|
||||||
|
:Authors:
|
||||||
|
Brian C. Lane <bcl@redhat.com>
|
||||||
|
|
||||||
|
livemedia-creator uses `Anaconda <https://github.com/rhinstaller/anaconda>`_,
|
||||||
|
`kickstart <https://github.com/rhinstaller/pykickstart>`_ and `Lorax
|
||||||
|
<https://github.com/rhinstaller/lorax>`_ to create bootable media that use the
|
||||||
|
same install path as a normal system installation. It can be used to make live
|
||||||
|
isos, bootable (partitioned) disk images, tarfiles, and filesystem images for
|
||||||
|
use with virtualization and container solutions like libvirt, docker, and
|
||||||
|
OpenStack.
|
||||||
|
|
||||||
|
The general idea is to use qemu with kickstart and an Anaconda boot.iso to
|
||||||
|
install into a disk image and then use the disk image to create the bootable
|
||||||
|
media.
|
||||||
|
|
||||||
|
livemedia-creator --help will describe all of the options available. At the
|
||||||
|
minimum you need:
|
||||||
|
|
||||||
|
``--make-iso`` to create a final bootable .iso or one of the other ``--make-*`` options.
|
||||||
|
|
||||||
|
``--iso`` to specify the Anaconda install media to use with qemu.
|
||||||
|
|
||||||
|
``--ks`` to select the kickstart file describing what to install.
|
||||||
|
|
||||||
|
To use livemedia-creator with virtualization you will need to have qemu installed.
|
||||||
|
|
||||||
|
If you are going to be using Anaconda directly, with ``--no-virt`` mode, make sure
|
||||||
|
you have the anaconda-tui package installed.
|
||||||
|
|
||||||
|
Conventions used in this document:
|
||||||
|
|
||||||
|
``lmc`` is an abbreviation for livemedia-creator.
|
||||||
|
|
||||||
|
``builder`` is the system where livemedia-creator is being run
|
||||||
|
|
||||||
|
``image`` is the disk image being created by running livemedia-creator
|
||||||
|
|
||||||
|
|
||||||
|
livemedia-creator cmdline arguments
|
||||||
|
-----------------------------------
|
||||||
|
|
||||||
|
.. argparse::
|
||||||
|
:ref: pylorax.cmdline.lmc_parser
|
||||||
|
:prog: livemedia-creator
|
||||||
|
|
||||||
|
|
||||||
|
Quickstart
|
||||||
|
----------
|
||||||
|
|
||||||
|
Run this to create a bootable live iso::
|
||||||
|
|
||||||
|
sudo livemedia-creator --make-iso \
|
||||||
|
--iso=/extra/iso/boot.iso --ks=./docs/fedora-livemedia.ks
|
||||||
|
|
||||||
|
You can run it directly from the lorax git repo like this::
|
||||||
|
|
||||||
|
sudo PATH=./src/sbin/:$PATH PYTHONPATH=./src/ ./src/sbin/livemedia-creator \
|
||||||
|
--make-iso --iso=/extra/iso/boot.iso \
|
||||||
|
--ks=./docs/fedora-livemedia.ks --lorax-templates=./share/
|
||||||
|
|
||||||
|
You can observe the installation using vnc. The logs will show what port was
|
||||||
|
chosen, or you can use a specific port by passing it. eg. ``--vnc vnc:127.0.0.1:5``
|
||||||
|
|
||||||
|
This is usually a good idea when testing changes to the kickstart. lmc tries
|
||||||
|
to monitor the logs for fatal errors, but may not catch everything.
|
||||||
|
|
||||||
|
|
||||||
|
How ISO creation works
|
||||||
|
----------------------
|
||||||
|
|
||||||
|
There are 2 stages, the install stage which produces a disk or filesystem image
|
||||||
|
as its output, and the boot media creation which uses the image as its input.
|
||||||
|
Normally you would run both stages, but it is possible to stop after the
|
||||||
|
install stage, by using ``--image-only``, or to skip the install stage and use
|
||||||
|
a previously created disk image by passing ``--disk-image`` or ``--fs-image``
|
||||||
|
|
||||||
|
When creating an iso qemu boots using the passed Anaconda installer iso
|
||||||
|
and installs the system based on the kickstart. The ``%post`` section of the
|
||||||
|
kickstart is used to customize the installed system in the same way that
|
||||||
|
current spin-kickstarts do.
|
||||||
|
|
||||||
|
livemedia-creator monitors the install process for problems by watching the
|
||||||
|
install logs. They are written to the current directory or to the base
|
||||||
|
directory specified by the --logfile command. You can also monitor the install
|
||||||
|
by using a vnc client. This is recommended when first modifying a kickstart,
|
||||||
|
since there are still places where Anaconda may get stuck without the log
|
||||||
|
monitor catching it.
|
||||||
|
|
||||||
|
The output from this process is a partitioned disk image. kpartx can be used
|
||||||
|
to mount and examine it when there is a problem with the install. It can also
|
||||||
|
be booted using kvm.
|
||||||
|
|
||||||
|
When creating an iso the disk image's / partition is copied into a formatted
|
||||||
|
filesystem image which is then used as the input to lorax for creation of the
|
||||||
|
final media.
|
||||||
|
|
||||||
|
The final image is created by lorax, using the templates in /usr/share/lorax/live/
|
||||||
|
or the live directory below the directory specified by ``--lorax-templates``. The
|
||||||
|
templates are written using the Mako template system with some extra commands
|
||||||
|
added by lorax.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
The output from --make-iso includes the artifacts used to create the boot.iso;
|
||||||
|
the kernel, initrd, the squashfs filesystem, etc. If you only want the
|
||||||
|
boot.iso you can pass ``--iso-only`` and the other files will be removed. You
|
||||||
|
can also name the iso by using ``--iso-name my-live.iso``.
|
||||||
|
|
||||||
|
|
||||||
|
Kickstarts
|
||||||
|
----------
|
||||||
|
|
||||||
|
The docs/ directory includes several example kickstarts, one to create a live
|
||||||
|
desktop iso using GNOME, and another to create a minimal disk image. When
|
||||||
|
creating your own kickstarts you should start with the minimal example, it
|
||||||
|
includes several needed packages that are not always included by dependencies.
|
||||||
|
|
||||||
|
Or you can use existing spin kickstarts to create live media with a few
|
||||||
|
changes. Here are the steps I used to convert the Fedora XFCE spin.
|
||||||
|
|
||||||
|
1. Flatten the xfce kickstart using ksflatten
|
||||||
|
2. Add zerombr so you don't get the disk init dialog
|
||||||
|
3. Add clearpart --all
|
||||||
|
4. Add swap partition
|
||||||
|
5. bootloader target
|
||||||
|
6. Add shutdown to the kickstart
|
||||||
|
7. Add network --bootproto=dhcp --activate to activate the network
|
||||||
|
This works for F16 builds but for F15 and before you need to pass
|
||||||
|
something on the cmdline that activate the network, like sshd:
|
||||||
|
|
||||||
|
``livemedia-creator --kernel-args="sshd"``
|
||||||
|
|
||||||
|
8. Add a root password::
|
||||||
|
|
||||||
|
rootpw rootme
|
||||||
|
network --bootproto=dhcp --activate
|
||||||
|
zerombr
|
||||||
|
clearpart --all
|
||||||
|
bootloader --location=mbr
|
||||||
|
part swap --size=512
|
||||||
|
shutdown
|
||||||
|
|
||||||
|
9. In the livesys script section of the %post remove the root password. This
|
||||||
|
really depends on how the spin wants to work. You could add the live user
|
||||||
|
that you create to the %wheel group so that sudo works if you wanted to.
|
||||||
|
|
||||||
|
``passwd -d root > /dev/null``
|
||||||
|
|
||||||
|
10. Remove /etc/fstab in %post, dracut handles mounting the rootfs
|
||||||
|
|
||||||
|
``cat /dev/null > /dev/fstab``
|
||||||
|
|
||||||
|
Do this only for live iso's, the filesystem will be mounted read only if
|
||||||
|
there is no /etc/fstab
|
||||||
|
|
||||||
|
11. Don't delete initramfs files from /boot in %post
|
||||||
|
12. When creating live iso's you need to have, at least, these packages in the %package section::
|
||||||
|
dracut-config-generic
|
||||||
|
dracut-live
|
||||||
|
-dracut-config-rescue
|
||||||
|
grub-efi
|
||||||
|
memtest86+
|
||||||
|
syslinux
|
||||||
|
|
||||||
|
One drawback to using qemu is that it pulls the packages from the repo each
|
||||||
|
time you run it. To speed things up you either need a local mirror of the
|
||||||
|
packages, or you can use a caching proxy. When using a proxy you pass it to
|
||||||
|
livemedia-creator like this:
|
||||||
|
|
||||||
|
``--proxy=http://proxy.yourdomain.com:3128``
|
||||||
|
|
||||||
|
You also need to use a specific mirror instead of mirrormanager so that the
|
||||||
|
packages will get cached, so your kickstart url would look like:
|
||||||
|
|
||||||
|
``url --url="http://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/x86_64/os/"``
|
||||||
|
|
||||||
|
You can also add an update repo, but don't name it updates. Add --proxy to it
|
||||||
|
as well.
|
||||||
|
|
||||||
|
|
||||||
|
Anaconda image install (no-virt)
|
||||||
|
--------------------------------
|
||||||
|
|
||||||
|
You can create images without using qemu by passing ``--no-virt`` on the
|
||||||
|
cmdline. This will use Anaconda's directory install feature to handle the
|
||||||
|
install. There are a couple of things to keep in mind when doing this:
|
||||||
|
|
||||||
|
1. It will be most reliable when building images for the same release that the
|
||||||
|
host is running. Because Anaconda has expectations about the system it is
|
||||||
|
running under you may encounter strange bugs if you try to build newer or
|
||||||
|
older releases.
|
||||||
|
|
||||||
|
2. Make sure selinux is set to permissive or disabled. It won't install
|
||||||
|
correctly with selinux set to enforcing yet.
|
||||||
|
|
||||||
|
3. It may totally trash your host. So far I haven't had this happen, but the
|
||||||
|
possibility exists that a bug in Anaconda could result in it operating on
|
||||||
|
real devices. I recommend running it in a virt or on a system that you can
|
||||||
|
afford to lose all data from.
|
||||||
|
|
||||||
|
The logs from anaconda will be placed in an ./anaconda/ directory in either
|
||||||
|
the current directory or in the directory used for --logfile
|
||||||
|
|
||||||
|
Example cmdline:
|
||||||
|
|
||||||
|
``sudo livemedia-creator --make-iso --no-virt --ks=./fedora-livemedia.ks``
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
Using no-virt to create a partitioned disk image (eg. --make-disk or
|
||||||
|
--make-vagrant) will only create disks usable on the host platform (BIOS
|
||||||
|
or UEFI). You can create BIOS partitioned disk images on UEFI by using
|
||||||
|
virt.
|
||||||
|
|
||||||
|
|
||||||
|
AMI Images
|
||||||
|
----------
|
||||||
|
|
||||||
|
Amazon EC2 images can be created by using the --make-ami switch and an appropriate
|
||||||
|
kickstart file. All of the work to customize the image is handled by the kickstart.
|
||||||
|
The example currently included was modified from the cloud-kickstarts version so
|
||||||
|
that it would work with livemedia-creator.
|
||||||
|
|
||||||
|
Example cmdline:
|
||||||
|
|
||||||
|
``sudo livemedia-creator --make-ami --iso=/path/to/boot.iso --ks=./docs/fedora-livemedia-ec2.ks``
|
||||||
|
|
||||||
|
This will produce an ami-root.img file in the working directory.
|
||||||
|
|
||||||
|
At this time I have not tested the image with EC2. Feedback would be welcome.
|
||||||
|
|
||||||
|
|
||||||
|
Appliance Creation
|
||||||
|
------------------
|
||||||
|
|
||||||
|
livemedia-creator can now replace appliance-tools by using the --make-appliance
|
||||||
|
switch. This will create the partitioned disk image and an XML file that can be
|
||||||
|
used with virt-image to setup a virtual system.
|
||||||
|
|
||||||
|
The XML is generated using the Mako template from
|
||||||
|
/usr/share/lorax/appliance/libvirt.xml You can use a different template by
|
||||||
|
passing ``--app-template <template path>``
|
||||||
|
|
||||||
|
Documentation on the Mako template system can be found at the `Mako site
|
||||||
|
<http://docs.makotemplates.org/en/latest/index.html>`_
|
||||||
|
|
||||||
|
The name of the final output XML is appliance.xml, this can be changed with
|
||||||
|
``--app-file <file path>``
|
||||||
|
|
||||||
|
The following variables are passed to the template:
|
||||||
|
|
||||||
|
``disks``
|
||||||
|
A list of disk_info about each disk.
|
||||||
|
Each entry has the following attributes:
|
||||||
|
|
||||||
|
``name``
|
||||||
|
base name of the disk image file
|
||||||
|
|
||||||
|
``format``
|
||||||
|
"raw"
|
||||||
|
|
||||||
|
``checksum_type``
|
||||||
|
"sha256"
|
||||||
|
|
||||||
|
``checksum``
|
||||||
|
sha256 checksum of the disk image
|
||||||
|
|
||||||
|
``name``
|
||||||
|
Name of appliance, from --app-name argument
|
||||||
|
|
||||||
|
``arch``
|
||||||
|
Architecture
|
||||||
|
|
||||||
|
``memory``
|
||||||
|
Memory in KB (from ``--ram``)
|
||||||
|
|
||||||
|
``vcpus``
|
||||||
|
from ``--vcpus``
|
||||||
|
|
||||||
|
``networks``
|
||||||
|
list of networks from the kickstart or []
|
||||||
|
|
||||||
|
``title``
|
||||||
|
from ``--title``
|
||||||
|
|
||||||
|
``project``
|
||||||
|
from ``--project``
|
||||||
|
|
||||||
|
``releasever``
|
||||||
|
from ``--releasever``
|
||||||
|
|
||||||
|
The created image can be imported into libvirt using:
|
||||||
|
|
||||||
|
``virt-image appliance.xml``
|
||||||
|
|
||||||
|
You can also create qcow2 appliance images using ``--image-type=qcow2``, for example::
|
||||||
|
|
||||||
|
sudo livemedia-creator --make-appliance --iso=/path/to/boot.iso --ks=./docs/fedora-minimal.ks \
|
||||||
|
--image-type=qcow2 --app-file=minimal-test.xml --image-name=minimal-test.img
|
||||||
|
|
||||||
|
|
||||||
|
Filesystem Image Creation
|
||||||
|
-------------------------
|
||||||
|
|
||||||
|
livemedia-creator can be used to create un-partitined filesystem images using
|
||||||
|
the ``--make-fsimage`` option. As of version 21.8 this works with both qemu and
|
||||||
|
no-virt modes of operation. Previously it was only available with no-virt.
|
||||||
|
|
||||||
|
Kickstarts should have a single / partition with no extra mountpoints.
|
||||||
|
|
||||||
|
``livemedia-creator --make-fsimage --iso=/path/to/boot.iso --ks=./docs/fedora-minimal.ks``
|
||||||
|
|
||||||
|
You can name the output image with ``--image-name`` and set a label on the filesystem with ``--fs-label``
|
||||||
|
|
||||||
|
|
||||||
|
TAR File Creation
|
||||||
|
-----------------
|
||||||
|
|
||||||
|
The ``--make-tar`` command can be used to create a tar of the root filesystem. By
|
||||||
|
default it is compressed using xz, but this can be changed using the
|
||||||
|
``--compression`` and ``--compress-arg`` options. This option works with both virt and
|
||||||
|
no-virt install methods.
|
||||||
|
|
||||||
|
As with ``--make-fsimage`` the kickstart should be limited to a single / partition.
|
||||||
|
|
||||||
|
For example::
|
||||||
|
|
||||||
|
livemedia-creator --make-tar --iso=/path/to/boot.iso --ks=./docs/fedora-minimal.ks \
|
||||||
|
--image-name=fedora-root.tar.xz
|
||||||
|
|
||||||
|
|
||||||
|
Live Image for PXE Boot
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
The ``--make-pxe-live`` command will produce squashfs image containing live root
|
||||||
|
filesystem that can be used for pxe boot. Directory with results will contain
|
||||||
|
the live image, kernel image, initrd image and template of pxe configuration
|
||||||
|
for the images.
|
||||||
|
|
||||||
|
|
||||||
|
Atomic Live Image for PXE Boot
|
||||||
|
------------------------------
|
||||||
|
|
||||||
|
The ``--make-ostree-live`` command will produce the same result as ``--make-pxe-live``
|
||||||
|
for installations of Atomic Host. Example kickstart for such an installation
|
||||||
|
using Atomic installer iso with local repo included in the image can be found
|
||||||
|
in docs/rhel-atomic-pxe-live.ks.
|
||||||
|
|
||||||
|
The PXE images can also be created with ``--no-virt`` by using the example
|
||||||
|
kickstart in docs/fedora-atomic-pxe-live-novirt.ks. This also works inside the
|
||||||
|
mock environment.
|
||||||
|
|
||||||
|
|
||||||
|
Using Mock and --no-virt to Create Images
|
||||||
|
-----------------------------------------
|
||||||
|
|
||||||
|
As of lorax version 22.2 you can use livemedia-creator and anaconda version
|
||||||
|
22.15 inside of a mock chroot with --make-iso and --make-fsimage.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
As of mock 1.3.4 you need to use ``--old-chroot`` with mock. Mock now defaults to using systemd-nspawn
|
||||||
|
which cannot create the needed loop device nodes. Passing ``--old-chroot`` will use the old system
|
||||||
|
where ``/dev/loop*`` is setup for you.
|
||||||
|
|
||||||
|
On the host system:
|
||||||
|
|
||||||
|
1. yum install -y mock
|
||||||
|
|
||||||
|
2. Add a user to the mock group to use for running mock. eg. builder
|
||||||
|
|
||||||
|
3. Create a new /etc/mock/ config file based on the rawhide one, or modify the
|
||||||
|
existing one so that the following options are setup::
|
||||||
|
|
||||||
|
config_opts['chroot_setup_cmd'] = 'install @buildsys-build anaconda-tui lorax'
|
||||||
|
|
||||||
|
# build results go into /home/builder/results/
|
||||||
|
config_opts['plugin_conf']['bind_mount_opts']['dirs'].append(('/home/builder/results','/results/'))
|
||||||
|
|
||||||
|
If you are creating images for a branched release of Fedora you should also enable
|
||||||
|
the updates-testing repository so that you get the latest builds in your mock chroot.
|
||||||
|
|
||||||
|
The following steps are run as the builder user who is a member of the mock
|
||||||
|
group.
|
||||||
|
|
||||||
|
4. Make a directory for results matching the bind mount above
|
||||||
|
``mkdir ~/results/``
|
||||||
|
|
||||||
|
5. Copy the example kickstarts
|
||||||
|
``cp /usr/share/docs/lorax/*ks .``
|
||||||
|
|
||||||
|
6. Make sure tar and dracut-network are in the %packages section and that the
|
||||||
|
``url points to the correct repo``
|
||||||
|
|
||||||
|
7. Init the mock
|
||||||
|
``mock -r fedora-rawhide-x86_64 --init``
|
||||||
|
|
||||||
|
8. Copy the kickstart inside the mock
|
||||||
|
``mock -r fedora-rawhide-x86_64 --copyin ./fedora-minimal.ks /root/``
|
||||||
|
|
||||||
|
9. Make a minimal iso::
|
||||||
|
|
||||||
|
mock -r fedora-rawhide-x86_64 --chroot -- livemedia-creator --no-virt \
|
||||||
|
--resultdir=/results/try-1 --logfile=/results/logs/try-1/try-1.log \
|
||||||
|
--make-iso --ks /root/fedora-minimal.ks
|
||||||
|
|
||||||
|
Results will be in ./results/try-1 and logs under /results/logs/try-1/
|
||||||
|
including anaconda logs and livemedia-creator logs. The new iso will be
|
||||||
|
located at ~/results/try-1/images/boot.iso, and the ~/results/try-1/
|
||||||
|
directory tree will also contain the vmlinuz, initrd, etc.
|
||||||
|
|
||||||
|
|
||||||
|
Using Mock and qemu to Create Images
|
||||||
|
------------------------------------
|
||||||
|
|
||||||
|
Version 25.0 of livemedia-creator switches to using qemu for virtualization.
|
||||||
|
This allows creation of all image types, and use of the KVM on the host if
|
||||||
|
/dev/kvm is present in the mock environment.
|
||||||
|
|
||||||
|
On the host system:
|
||||||
|
|
||||||
|
1. yum install -y mock
|
||||||
|
|
||||||
|
2. Add a user to the mock group to use for running mock. eg. builder
|
||||||
|
|
||||||
|
3. Create a new /etc/mock/ config file based on the rawhide one, or modify the
|
||||||
|
existing one so that the following options are setup::
|
||||||
|
|
||||||
|
config_opts['chroot_setup_cmd'] = 'install @buildsys-build lorax qemu'
|
||||||
|
|
||||||
|
# build results go into /home/builder/results/
|
||||||
|
config_opts['plugin_conf']['bind_mount_opts']['dirs'].append(('/home/builder/results','/results/'))
|
||||||
|
|
||||||
|
If you are creating images for a branched release of Fedora you should also enable
|
||||||
|
the updates-testing repository so that you get the latest builds in your mock chroot.
|
||||||
|
|
||||||
|
The following steps are run as the builder user who is a member of the mock
|
||||||
|
group.
|
||||||
|
|
||||||
|
4. Make a directory for results matching the bind mount above
|
||||||
|
``mkdir ~/results/``
|
||||||
|
|
||||||
|
5. Copy the example kickstarts
|
||||||
|
``cp /usr/share/docs/lorax/*ks .``
|
||||||
|
|
||||||
|
6. Make sure tar and dracut-network are in the %packages section and that the
|
||||||
|
``url points to the correct repo``
|
||||||
|
|
||||||
|
7. Init the mock
|
||||||
|
``mock -r fedora-rawhide-x86_64 --init``
|
||||||
|
|
||||||
|
8. Copy the kickstart inside the mock
|
||||||
|
``mock -r fedora-rawhide-x86_64 --copyin ./fedora-minimal.ks /root/``
|
||||||
|
|
||||||
|
9. Copy the Anaconda boot.iso inside the mock
|
||||||
|
``mock -r fedora-rawhide-x86_64 --copyin ./boot.iso /root/``
|
||||||
|
|
||||||
|
10. Make a minimal iso::
|
||||||
|
|
||||||
|
mock -r fedora-rawhide-x86_64 --chroot -- livemedia-creator \
|
||||||
|
--resultdir=/results/try-1 --logfile=/results/logs/try-1/try-1.log \
|
||||||
|
--make-iso --ks /root/fedora-minimal.ks --iso /root/boot.iso
|
||||||
|
|
||||||
|
Results will be in ./results/try-1 and logs under /results/logs/try-1/
|
||||||
|
including anaconda logs and livemedia-creator logs. The new iso will be
|
||||||
|
located at ~/results/try-1/images/boot.iso, and the ~/results/try-1/
|
||||||
|
directory tree will also contain the vmlinuz, initrd, etc.
|
||||||
|
|
||||||
|
This will run qemu without kvm support, which is going to be very slow. You can
|
||||||
|
add ``mknod /dev/kvm c 10 232;`` to create the device node before running lmc.
|
||||||
|
|
||||||
|
|
||||||
|
OpenStack Image Creation
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
OpenStack supports partitioned disk images so ``--make-disk`` can be used to
|
||||||
|
create images for importing into glance, OpenStack's image storage component.
|
||||||
|
You need to have access to an OpenStack provider that allows image uploads, or
|
||||||
|
setup your own using the instructions from the `RDO Project
|
||||||
|
<https://www.rdoproject.org/Quickstart>`_.
|
||||||
|
|
||||||
|
The example kickstart, fedora-openstack.ks, is only slightly different than the
|
||||||
|
fedora-minimal.ks one. It adds the cloud-init and cloud-utils-growpart
|
||||||
|
packages. OpenStack supports setting up the image using cloud-init, and
|
||||||
|
cloud-utils-growpart will grow the image to fit the instance's disk size.
|
||||||
|
|
||||||
|
Create a qcow2 image using the kickstart like this:
|
||||||
|
|
||||||
|
``sudo livemedia-creator --make-disk --iso=/path/to/boot.iso --ks=/path/to/fedora-openstack.ks --image-type=qcow2``
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
On the RHEL7 version of lmc ``--image-type`` isn't supported. You can only create a bare partitioned disk image.
|
||||||
|
|
||||||
|
Import the resulting disk image into the OpenStack system, either via the web UI, or glance on the cmdline::
|
||||||
|
|
||||||
|
glance image-create --name "fedora-openstack" --is-public true --disk-format qcow2 \
|
||||||
|
--container-format bare --file ./fedora-openstack.qcow2
|
||||||
|
|
||||||
|
If qcow2 wasn't used then ``--disk-format`` should be set to raw.
|
||||||
|
|
||||||
|
|
||||||
|
Docker Image Creation
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
Use lmc to create a tarfile as described in the `TAR File Creation`_ section, but substitute the
|
||||||
|
fedora-docker.ks example kickstart which removes the requirement for core files and the kernel.
|
||||||
|
|
||||||
|
You can then import the tarfile into docker like this (as root):
|
||||||
|
|
||||||
|
``cat /var/tmp/fedora-root.tar.xz | docker import - fedora-root``
|
||||||
|
|
||||||
|
And then run bash inside of it:
|
||||||
|
|
||||||
|
``sudo docker run -i -t fedora-root /bin/bash``
|
||||||
|
|
||||||
|
|
||||||
|
Open Container Initiative Image Creation
|
||||||
|
----------------------------------------
|
||||||
|
|
||||||
|
The OCI is a new specification that is still being worked on. You can read more about it at
|
||||||
|
`the Open Container Initiative website <https://www.opencontainers.org/>`_. You can create
|
||||||
|
OCI images using the following command::
|
||||||
|
|
||||||
|
sudo livemedia-creator --make-oci --oci-config /path/to/config.json --oci-runtime /path/to/runtime.json \
|
||||||
|
--iso=/path/to/boot.iso --ks=/path/to/fedora-minimal.ks
|
||||||
|
|
||||||
|
You must provide the config.json and runtime.json files to be included in the bundle,
|
||||||
|
their specifications can be found `on the OCI github project <https://github.com/opencontainers/specs>`_
|
||||||
|
output will be in the results directory with a default name of bundle.tar.xz
|
||||||
|
|
||||||
|
This will work with ``--no-virt`` and inside a mock since it doesn't use any
|
||||||
|
partitioned disk images.
|
||||||
|
|
||||||
|
|
||||||
|
Vagrant Image Creation
|
||||||
|
----------------------
|
||||||
|
|
||||||
|
`Vagrant <https://www.vagrantup.com/>`_ images can be created using the following command::
|
||||||
|
|
||||||
|
sudo livemedia-creator --make-vagrant --vagrant-metadata /path/to/metadata.json \
|
||||||
|
--iso=/path/to/boot.iso --ks=/path/to/fedora-vagrant.ks
|
||||||
|
|
||||||
|
The image created is a `vagrant-libvirt
|
||||||
|
<https://github.com/pradels/vagrant-libvirt>`_ provider image and needs to have
|
||||||
|
vagrant setup with libvirt before you can use it.
|
||||||
|
|
||||||
|
The ``--vagrant-metadata`` file is optional, it will create a minimal one by
|
||||||
|
default, and if one is passed it will make sure the disk size is setup
|
||||||
|
correctly. If you pass a ``--vagrant-vagrantfile`` it will be included in the
|
||||||
|
image verbatim. By default no vagrantfile is created.
|
||||||
|
|
||||||
|
There is an example Vagrant kickstart file in the docs directory that sets up
|
||||||
|
the vagrant user with the default insecure SSH pubkey and a few useful
|
||||||
|
utilities.
|
||||||
|
|
||||||
|
This also works with ``--no-virt``, but will not work inside a mock due to its
|
||||||
|
use of partitioned disk images and qcow2.
|
||||||
|
|
||||||
|
|
||||||
|
Creating UEFI disk images with virt
|
||||||
|
-----------------------------------
|
||||||
|
|
||||||
|
Partitioned disk images can only be created for the same platform as the host system (BIOS or
|
||||||
|
UEFI). You can use virt to create BIOS images on UEFI systems, and it is also possible
|
||||||
|
to create UEFI images on BIOS systems using OVMF. You first need to setup your system with
|
||||||
|
the OVMF firmware. The details can be `found here linux-kvm OVMF page <http://www.linux-kvm.org/page/OVMF>`_
|
||||||
|
but it amounts to:
|
||||||
|
|
||||||
|
1. Download the firmware.repo from `Gerd Hoffmann <https://www.kraxel.org/repos/>`_ and install it
|
||||||
|
in /etc/yum.repos.d/
|
||||||
|
|
||||||
|
2. Install the edk2.git-ovmf-x64 package
|
||||||
|
|
||||||
|
3. Copy /usr/share/edk2.git/ovmf-x64/OVMF_CODE-pure-efi.fd to /usr/share/OVMF/OVMF_CODE.fd
|
||||||
|
|
||||||
|
4. Copy /usr/share/edk2.git/ovmf-x64/OVMF_VARS-pure-efi.fd to /usr/share/OVMF/OVMF_VARS.fd
|
||||||
|
|
||||||
|
Now you can run livemedia-creator with ``--virt-uefi`` to boot and install using UEFI::
|
||||||
|
|
||||||
|
sudo livemedia-creator --make-disk --virt-uefi --iso=/path/to/boot.iso \
|
||||||
|
--ks=/path/to/fedora-minimal.ks
|
||||||
|
|
||||||
|
Make sure that the kickstart you are using creates a /boot/efi partition by including this::
|
||||||
|
|
||||||
|
part /boot/efi --fstype="efi" --size=500
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
When using the resulting image with the current version of OVMF (edk2.git-ovmf-x64-0-20151103.b1295.ge5cffca)
|
||||||
|
it will not boot automatically because there is a problem with the fallback path.
|
||||||
|
You can boot it by entering the UEFI shell and running EFI/fedora/shim.efi and
|
||||||
|
then using efibootmgr to setup the correct boot entry.
|
||||||
|
|
||||||
|
|
||||||
|
Debugging problems
|
||||||
|
------------------
|
||||||
|
|
||||||
|
Sometimes an installation will get stuck. When using qemu the logs will
|
||||||
|
be written to ./virt-install.log and most of the time any problems that happen
|
||||||
|
will be near the end of the file. lmc tries to detect common errors and will
|
||||||
|
cancel the installation when they happen. But not everything can be caught.
|
||||||
|
When creating a new kickstart it is helpful to use vnc so that you can monitor
|
||||||
|
the installation as it happens, and if it gets stuck without lmc detecting the
|
||||||
|
problem you can switch to tty1 and examine the system directly.
|
||||||
|
|
||||||
|
If it does get stuck the best way to cancel is to use kill -9 on the qemu pid,
|
||||||
|
lmc will detect that the process died and cleanup.
|
||||||
|
|
||||||
|
If lmc didn't handle the cleanup for some reason you can do this:
|
||||||
|
1. ``sudo umount /tmp/lmc-XXXX`` to unmount the iso from its mountpoint.
|
||||||
|
2. ``sudo rm -rf /tmp/lmc-XXXX``
|
||||||
|
3. ``sudo rm /var/tmp/lmc-disk-XXXXX`` to remove the disk image.
|
||||||
|
|
||||||
|
Note that lmc uses the lmc- prefix for all of its temporary files and
|
||||||
|
directories to make it easier to find and clean up leftovers.
|
||||||
|
|
||||||
|
The logs from the qemu run are stored in virt-install.log, logs from
|
||||||
|
livemedia-creator are in livemedia.log and program.log
|
||||||
|
|
||||||
|
You can add ``--image-only`` to skip the .iso creation and examine the resulting
|
||||||
|
disk image. Or you can pass ``--keep-image`` to keep it around after the iso has
|
||||||
|
been created.
|
||||||
|
|
||||||
|
Cleaning up aborted ``--no-virt`` installs can sometimes be accomplished by
|
||||||
|
running the ``anaconda-cleanup`` script. As of Fedora 18 anaconda is
|
||||||
|
multi-threaded and it can sometimes become stuck and refuse to exit. When this
|
||||||
|
happens you can usually clean up by first killing the anaconda process then
|
||||||
|
running ``anaconda-cleanup``.
|
||||||
|
|
||||||
|
|
||||||
|
Hacking
|
||||||
|
-------
|
||||||
|
|
||||||
|
Development on this will take place as part of the lorax project, and on the
|
||||||
|
anaconda-devel-list mailing list, and `on github <https://github.com/rhinstaller/lorax>`_
|
||||||
|
|
||||||
|
Feedback, enhancements and bugs are welcome. You can use `bugzilla
|
||||||
|
<https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora&component=lorax>`_ to
|
||||||
|
report bugs against the lorax component.
|
||||||
|
|
153
_sources/lorax.rst.txt
Normal file
@ -0,0 +1,153 @@
|
|||||||
|
Lorax
|
||||||
|
=====
|
||||||
|
|
||||||
|
:Authors:
|
||||||
|
Brian C. Lane <bcl@redhat.com>
|
||||||
|
|
||||||
|
"I am the Lorax. I speak for the trees [and images]."
|
||||||
|
|
||||||
|
The `lorax <https://github.com/rhinstaller/lorax>`_ tool is used to create the
|
||||||
|
`Anaconda <https://github.com/rhinstaller/anaconda>`_ 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.
|
||||||
|
|
||||||
|
|
||||||
|
lorax cmdline arguments
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
.. argparse::
|
||||||
|
:ref: pylorax.cmdline.lorax_parser
|
||||||
|
:prog: lorax
|
||||||
|
|
||||||
|
|
||||||
|
Quickstart
|
||||||
|
----------
|
||||||
|
|
||||||
|
Run this as root to create a boot.iso in ``./results/``::
|
||||||
|
|
||||||
|
dnf install lorax
|
||||||
|
setenforce 0
|
||||||
|
lorax -p Fedora -v 23 -r 23 \
|
||||||
|
-s http://dl.fedoraproject.org/pub/fedora/linux/releases/23/Everything/x86_64/os/ \
|
||||||
|
-s http://dl.fedoraproject.org/pub/fedora/linux/updates/23/x86_64/ \
|
||||||
|
./results/
|
||||||
|
setenforce 1
|
||||||
|
|
||||||
|
You can add your own repos with ``-s`` and packages with higher NVRs will
|
||||||
|
override the ones in the distribution repositories.
|
||||||
|
|
||||||
|
Under ``./results/`` will be the release tree files: .discinfo, .treeinfo, everything that
|
||||||
|
goes onto the boot.iso, the pxeboot directory, and the boot.iso under ``./images/``.
|
||||||
|
|
||||||
|
|
||||||
|
Running inside of mock
|
||||||
|
----------------------
|
||||||
|
|
||||||
|
If you are using lorax with mock v1.3.4 or later you will need to pass
|
||||||
|
``--old-chroot`` to mock. Mock now defaults to using systemd-nspawn which cannot
|
||||||
|
create the needed loop device nodes. Passing ``--old-chroot`` will use the old
|
||||||
|
system where ``/dev/loop*`` is setup for you.
|
||||||
|
|
||||||
|
|
||||||
|
How it works
|
||||||
|
------------
|
||||||
|
|
||||||
|
Lorax uses `dnf <https://github.com/rpm-software-management/dnf>`_ 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.
|
||||||
|
|
||||||
|
To drive these processes Lorax uses a custom template system, based on `Mako
|
||||||
|
templates <http://www.makotemplates.org/>`_ with the addition of custom
|
||||||
|
commands (documented in :class:`pylorax.ltmpl.LoraxTemplateRunner`). Mako
|
||||||
|
supports ``%if/%endif`` blocks as well as free-form python code inside ``<%
|
||||||
|
%>`` tags and variable substitution with ``${}``. The default templates are
|
||||||
|
shipped with lorax in ``/usr/share/lorax/templates.d/99-generic/`` and use the
|
||||||
|
``.tmpl`` extension.
|
||||||
|
|
||||||
|
|
||||||
|
runtime-install.tmpl
|
||||||
|
~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
The ``runtime-install.tmpl`` template lists packages to be installed using the
|
||||||
|
``installpkg`` command. This template is fairly simple, installing common packages and
|
||||||
|
architecture specific packages. It must end with the ``run_pkg_transaction``
|
||||||
|
command which tells dnf to download and install the packages.
|
||||||
|
|
||||||
|
|
||||||
|
runtime-postinstall.tmpl
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
The ``runtime-postinstall.tmpl`` template is where the system configuration
|
||||||
|
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:
|
||||||
|
|
||||||
|
* :func:`append <pylorax.ltmpl.LoraxTemplateRunner.append>` to add text to a file.
|
||||||
|
* :func:`chmod <pylorax.ltmpl.LoraxTemplateRunner.chmod>` changes the file's mode.
|
||||||
|
* :func:`gconfset <pylorax.ltmpl.LoraxTemplateRunner.gconfset>` runs gconfset.
|
||||||
|
* :func:`install <pylorax.ltmpl.LoraxTemplateRunner.install>` to install a file into the installroot.
|
||||||
|
* :func:`mkdir <pylorax.ltmpl.LoraxTemplateRunner.mkdir>` makes a new directory.
|
||||||
|
* :func:`move <pylorax.ltmpl.LoraxTemplateRunner.move>` to move a file into the installroot
|
||||||
|
* :func:`replace <pylorax.ltmpl.LoraxTemplateRunner.replace>` does text substitution in a file
|
||||||
|
* :func:`remove <pylorax.ltmpl.LoraxTemplateRunner.remove>` deletes a file
|
||||||
|
* :func:`runcmd <pylorax.ltmpl.LoraxTemplateRunner.runcmd>` run arbitrary commands.
|
||||||
|
* :func:`symlink <pylorax.ltmpl.LoraxTemplateRunner.symlink>` creates a symlink
|
||||||
|
* :func:`systemctl <pylorax.ltmpl.LoraxTemplateRunner.systemctl>` runs systemctl in the installroot
|
||||||
|
|
||||||
|
|
||||||
|
runtime-cleanup.tmpl
|
||||||
|
~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
The ``runtime-cleanup.tmpl`` template is used to remove files that aren't strictly needed
|
||||||
|
by the installation environment. In addition to the ``remove`` template command it uses:
|
||||||
|
|
||||||
|
* :func:`removepkg <pylorax.ltmpl.LoraxTemplateRunner.removepkg>`
|
||||||
|
remove all of a specific package's contents. A package may be pulled in as a dependency, but
|
||||||
|
not really used. eg. sound support.
|
||||||
|
* :func:`removefrom <pylorax.ltmpl.LoraxTemplateRunner.removefrom>`
|
||||||
|
Removes some files from a package. A file glob can be used, or the --allbut option to
|
||||||
|
remove everything except a select few.
|
||||||
|
* :func:`removekmod <pylorax.ltmpl.LoraxTemplateRunner.removekmod>`
|
||||||
|
Removes kernel modules
|
||||||
|
|
||||||
|
|
||||||
|
The squashfs filesystem
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
After ``runtime-*.tmpl`` templates have finished their work lorax creates an
|
||||||
|
empty ext4 filesystem, copies the remaining files to it, and makes a squashfs
|
||||||
|
filesystem of it. This file is the / of the boot.iso's installer environment
|
||||||
|
and is what is in the LiveOS/squashfs.img file on the iso.
|
||||||
|
|
||||||
|
|
||||||
|
iso creation
|
||||||
|
~~~~~~~~~~~~
|
||||||
|
|
||||||
|
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
|
||||||
|
``/usr/share/lorax/templates.d/99-generic`` and are named after the arch, like
|
||||||
|
``x86.tmpl`` and ``aarch64.tmpl``. They handle creation of the tree, copying
|
||||||
|
configuration template files, configuration variable substitution, treeinfo
|
||||||
|
metadata (via the :func:`treeinfo <pylorax.ltmpl.LoraxTemplateRunner.treeinfo>`
|
||||||
|
template command). Kernel and initrd are copied from the installroot to their
|
||||||
|
final locations and then mkisofs is run to create the boot.iso
|
||||||
|
|
||||||
|
|
||||||
|
Custom Templates
|
||||||
|
----------------
|
||||||
|
|
||||||
|
The default set of templates and configuration files from the lorax-generic-templates package
|
||||||
|
are shipped in the ``/usr/share/lorax/templates.d/99-generic/`` directory. You can
|
||||||
|
make a copy of them and place them into another directory under ``templates.d``
|
||||||
|
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
|
||||||
|
should) select the specific template directory by passing ``--sharedir`` to lorax.
|
||||||
|
|
7
_sources/modules.rst.txt
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
pylorax
|
||||||
|
=======
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:maxdepth: 4
|
||||||
|
|
||||||
|
pylorax
|
27
_sources/product-images.rst.txt
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
Product and Updates Images
|
||||||
|
==========================
|
||||||
|
|
||||||
|
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 ``--installpkgs <pkgname>`` 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
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
``/usr/share/lorax/product/run/install/product/pyanaconda/installclasses/custom.py``
|
||||||
|
|
||||||
|
If the packages containing the product/updates files are not included as part
|
||||||
|
of normal dependencies you can add specific packages with the ``--installpkgs``
|
||||||
|
command or the installpkgs paramater of :class:`pylorax.treebuilder.RuntimeBuilder`
|
134
_sources/pylorax.rst.txt
Normal file
@ -0,0 +1,134 @@
|
|||||||
|
pylorax package
|
||||||
|
===============
|
||||||
|
|
||||||
|
Submodules
|
||||||
|
----------
|
||||||
|
|
||||||
|
pylorax\.base module
|
||||||
|
--------------------
|
||||||
|
|
||||||
|
.. automodule:: pylorax.base
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
|
|
||||||
|
pylorax\.buildstamp module
|
||||||
|
--------------------------
|
||||||
|
|
||||||
|
.. automodule:: pylorax.buildstamp
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
|
|
||||||
|
pylorax\.cmdline module
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
.. automodule:: pylorax.cmdline
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
|
|
||||||
|
pylorax\.decorators module
|
||||||
|
--------------------------
|
||||||
|
|
||||||
|
.. automodule:: pylorax.decorators
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
|
|
||||||
|
pylorax\.discinfo module
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
.. automodule:: pylorax.discinfo
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
|
|
||||||
|
pylorax\.dnfhelper module
|
||||||
|
-------------------------
|
||||||
|
|
||||||
|
.. automodule:: pylorax.dnfhelper
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
|
|
||||||
|
pylorax\.executils module
|
||||||
|
-------------------------
|
||||||
|
|
||||||
|
.. automodule:: pylorax.executils
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
|
|
||||||
|
pylorax\.imgutils module
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
.. automodule:: pylorax.imgutils
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
|
|
||||||
|
pylorax\.ltmpl module
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
.. automodule:: pylorax.ltmpl
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
|
|
||||||
|
pylorax\.monitor module
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
.. automodule:: pylorax.monitor
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
|
|
||||||
|
pylorax\.mount module
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
.. automodule:: pylorax.mount
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
|
|
||||||
|
pylorax\.output module
|
||||||
|
----------------------
|
||||||
|
|
||||||
|
.. automodule:: pylorax.output
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
|
|
||||||
|
pylorax\.sysutils module
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
.. automodule:: pylorax.sysutils
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
|
|
||||||
|
pylorax\.treebuilder module
|
||||||
|
---------------------------
|
||||||
|
|
||||||
|
.. automodule:: pylorax.treebuilder
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
|
|
||||||
|
pylorax\.treeinfo module
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
.. automodule:: pylorax.treeinfo
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
|
|
||||||
|
|
||||||
|
Module contents
|
||||||
|
---------------
|
||||||
|
|
||||||
|
.. automodule:: pylorax
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* Sphinx stylesheet -- basic theme.
|
* Sphinx stylesheet -- basic theme.
|
||||||
*
|
*
|
||||||
* :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
|
* :copyright: Copyright 2007-2017 by the Sphinx team, see AUTHORS.
|
||||||
* :license: BSD, see LICENSE for details.
|
* :license: BSD, see LICENSE for details.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@ -122,6 +122,8 @@ ul.keywordmatches li.goodmatch a {
|
|||||||
|
|
||||||
table.contentstable {
|
table.contentstable {
|
||||||
width: 90%;
|
width: 90%;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.contentstable p.biglink {
|
table.contentstable p.biglink {
|
||||||
@ -149,9 +151,14 @@ table.indextable td {
|
|||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.indextable dl, table.indextable dd {
|
table.indextable ul {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
list-style-type: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
table.indextable > tbody > tr > td > ul {
|
||||||
|
padding-left: 0em;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.indextable tr.pcap {
|
table.indextable tr.pcap {
|
||||||
@ -183,6 +190,13 @@ div.genindex-jumpbox {
|
|||||||
padding: 0.4em;
|
padding: 0.4em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* -- domain module index --------------------------------------------------- */
|
||||||
|
|
||||||
|
table.modindextable td {
|
||||||
|
padding: 2px;
|
||||||
|
border-collapse: collapse;
|
||||||
|
}
|
||||||
|
|
||||||
/* -- general body styles --------------------------------------------------- */
|
/* -- general body styles --------------------------------------------------- */
|
||||||
|
|
||||||
div.body p, div.body dd, div.body li, div.body blockquote {
|
div.body p, div.body dd, div.body li, div.body blockquote {
|
||||||
@ -217,10 +231,6 @@ div.body td {
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.field-list ul {
|
|
||||||
padding-left: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.first {
|
.first {
|
||||||
margin-top: 0 !important;
|
margin-top: 0 !important;
|
||||||
}
|
}
|
||||||
@ -337,10 +347,6 @@ table.docutils td, table.docutils th {
|
|||||||
border-bottom: 1px solid #aaa;
|
border-bottom: 1px solid #aaa;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.field-list td, table.field-list th {
|
|
||||||
border: 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
table.footnote td, table.footnote th {
|
table.footnote td, table.footnote th {
|
||||||
border: 0 !important;
|
border: 0 !important;
|
||||||
}
|
}
|
||||||
@ -377,6 +383,20 @@ div.figure p.caption span.caption-number {
|
|||||||
div.figure p.caption span.caption-text {
|
div.figure p.caption span.caption-text {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* -- field list styles ----------------------------------------------------- */
|
||||||
|
|
||||||
|
table.field-list td, table.field-list th {
|
||||||
|
border: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.field-list ul {
|
||||||
|
margin: 0;
|
||||||
|
padding-left: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.field-list p {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
/* -- other body styles ----------------------------------------------------- */
|
/* -- other body styles ----------------------------------------------------- */
|
||||||
|
|
||||||
@ -427,15 +447,6 @@ dl.glossary dt {
|
|||||||
font-size: 1.1em;
|
font-size: 1.1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.field-list ul {
|
|
||||||
margin: 0;
|
|
||||||
padding-left: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.field-list p {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.optional {
|
.optional {
|
||||||
font-size: 1.3em;
|
font-size: 1.3em;
|
||||||
}
|
}
|
||||||
@ -592,6 +603,16 @@ span.eqno {
|
|||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
span.eqno a.headerlink {
|
||||||
|
position: relative;
|
||||||
|
left: 0px;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.math:hover a.headerlink {
|
||||||
|
visibility: visible;
|
||||||
|
}
|
||||||
|
|
||||||
/* -- printout stylesheet --------------------------------------------------- */
|
/* -- printout stylesheet --------------------------------------------------- */
|
||||||
|
|
||||||
@media print {
|
@media print {
|
||||||
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 756 B |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 829 B |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 641 B |
@ -1,2 +1,2 @@
|
|||||||
.fa:before{-webkit-font-smoothing:antialiased}.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;content:""}.clearfix:after{clear:both}@font-face{font-family:FontAwesome;font-weight:normal;font-style:normal;src:url("../font/fontawesome_webfont.eot");src:url("../font/fontawesome_webfont.eot?#iefix") format("embedded-opentype"),url("../font/fontawesome_webfont.woff") format("woff"),url("../font/fontawesome_webfont.ttf") format("truetype"),url("../font/fontawesome_webfont.svg#FontAwesome") format("svg")}.fa:before{display:inline-block;font-family:FontAwesome;font-style:normal;font-weight:normal;line-height:1;text-decoration:inherit}a .fa{display:inline-block;text-decoration:inherit}li .fa{display:inline-block}li .fa-large:before,li .fa-large:before{width:1.875em}ul.fas{list-style-type:none;margin-left:2em;text-indent:-0.8em}ul.fas li .fa{width:0.8em}ul.fas li .fa-large:before,ul.fas li .fa-large:before{vertical-align:baseline}.fa-book:before{content:""}.icon-book:before{content:""}.fa-caret-down:before{content:""}.icon-caret-down:before{content:""}.fa-caret-up:before{content:""}.icon-caret-up:before{content:""}.fa-caret-left:before{content:""}.icon-caret-left:before{content:""}.fa-caret-right:before{content:""}.icon-caret-right:before{content:""}.rst-versions{position:fixed;bottom:0;left:0;width:300px;color:#fcfcfc;background:#1f1d1d;border-top:solid 10px #343131;font-family:"Lato","proxima-nova","Helvetica Neue",Arial,sans-serif;z-index:400}.rst-versions a{color:#2980B9;text-decoration:none}.rst-versions .rst-badge-small{display:none}.rst-versions .rst-current-version{padding:12px;background-color:#272525;display:block;text-align:right;font-size:90%;cursor:pointer;color:#27AE60;*zoom:1}.rst-versions .rst-current-version:before,.rst-versions .rst-current-version:after{display:table;content:""}.rst-versions .rst-current-version:after{clear:both}.rst-versions .rst-current-version .fa{color:#fcfcfc}.rst-versions .rst-current-version .fa-book{float:left}.rst-versions .rst-current-version .icon-book{float:left}.rst-versions .rst-current-version.rst-out-of-date{background-color:#E74C3C;color:#fff}.rst-versions .rst-current-version.rst-active-old-version{background-color:#F1C40F;color:#000}.rst-versions.shift-up .rst-other-versions{display:block}.rst-versions .rst-other-versions{font-size:90%;padding:12px;color:gray;display:none}.rst-versions .rst-other-versions hr{display:block;height:1px;border:0;margin:20px 0;padding:0;border-top:solid 1px #413d3d}.rst-versions .rst-other-versions dd{display:inline-block;margin:0}.rst-versions .rst-other-versions dd a{display:inline-block;padding:6px;color:#fcfcfc}.rst-versions.rst-badge{width:auto;bottom:20px;right:20px;left:auto;border:none;max-width:300px}.rst-versions.rst-badge .icon-book{float:none}.rst-versions.rst-badge .fa-book{float:none}.rst-versions.rst-badge.shift-up .rst-current-version{text-align:right}.rst-versions.rst-badge.shift-up .rst-current-version .fa-book{float:left}.rst-versions.rst-badge.shift-up .rst-current-version .icon-book{float:left}.rst-versions.rst-badge .rst-current-version{width:auto;height:30px;line-height:30px;padding:0 6px;display:block;text-align:center}@media screen and (max-width: 768px){.rst-versions{width:85%;display:none}.rst-versions.shift{display:block}img{width:100%;height:auto}}
|
.fa:before{-webkit-font-smoothing:antialiased}.clearfix{*zoom:1}.clearfix:before,.clearfix:after{display:table;content:""}.clearfix:after{clear:both}@font-face{font-family:FontAwesome;font-weight:normal;font-style:normal;src:url("../font/fontawesome_webfont.eot");src:url("../font/fontawesome_webfont.eot?#iefix") format("embedded-opentype"),url("../font/fontawesome_webfont.woff") format("woff"),url("../font/fontawesome_webfont.ttf") format("truetype"),url("../font/fontawesome_webfont.svg#FontAwesome") format("svg")}.fa:before{display:inline-block;font-family:FontAwesome;font-style:normal;font-weight:normal;line-height:1;text-decoration:inherit}a .fa{display:inline-block;text-decoration:inherit}li .fa{display:inline-block}li .fa-large:before,li .fa-large:before{width:1.875em}ul.fas{list-style-type:none;margin-left:2em;text-indent:-0.8em}ul.fas li .fa{width:0.8em}ul.fas li .fa-large:before,ul.fas li .fa-large:before{vertical-align:baseline}.fa-book:before{content:""}.icon-book:before{content:""}.fa-caret-down:before{content:""}.icon-caret-down:before{content:""}.fa-caret-up:before{content:""}.icon-caret-up:before{content:""}.fa-caret-left:before{content:""}.icon-caret-left:before{content:""}.fa-caret-right:before{content:""}.icon-caret-right:before{content:""}.rst-versions{position:fixed;bottom:0;left:0;width:300px;color:#fcfcfc;background:#1f1d1d;border-top:solid 10px #343131;font-family:"Lato","proxima-nova","Helvetica Neue",Arial,sans-serif;z-index:400}.rst-versions a{color:#2980B9;text-decoration:none}.rst-versions .rst-badge-small{display:none}.rst-versions .rst-current-version{padding:12px;background-color:#272525;display:block;text-align:right;font-size:90%;cursor:pointer;color:#27AE60;*zoom:1}.rst-versions .rst-current-version:before,.rst-versions .rst-current-version:after{display:table;content:""}.rst-versions .rst-current-version:after{clear:both}.rst-versions .rst-current-version .fa{color:#fcfcfc}.rst-versions .rst-current-version .fa-book{float:left}.rst-versions .rst-current-version .icon-book{float:left}.rst-versions .rst-current-version.rst-out-of-date{background-color:#E74C3C;color:#fff}.rst-versions .rst-current-version.rst-active-old-version{background-color:#F1C40F;color:#000}.rst-versions.shift-up .rst-other-versions{display:block}.rst-versions .rst-other-versions{font-size:90%;padding:12px;color:gray;display:none}.rst-versions .rst-other-versions hr{display:block;height:1px;border:0;margin:20px 0;padding:0;border-top:solid 1px #413d3d}.rst-versions .rst-other-versions dd{display:inline-block;margin:0}.rst-versions .rst-other-versions dd a{display:inline-block;padding:6px;color:#fcfcfc}.rst-versions.rst-badge{width:auto;bottom:20px;right:20px;left:auto;border:none;max-width:300px}.rst-versions.rst-badge .icon-book{float:none}.rst-versions.rst-badge .fa-book{float:none}.rst-versions.rst-badge.shift-up .rst-current-version{text-align:right}.rst-versions.rst-badge.shift-up .rst-current-version .fa-book{float:left}.rst-versions.rst-badge.shift-up .rst-current-version .icon-book{float:left}.rst-versions.rst-badge .rst-current-version{width:auto;height:30px;line-height:30px;padding:0 6px;display:block;text-align:center}@media screen and (max-width: 768px){.rst-versions{width:85%;display:none}.rst-versions.shift{display:block}}
|
||||||
/*# sourceMappingURL=badge_only.css.map */
|
/*# sourceMappingURL=badge_only.css.map */
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* Sphinx JavaScript utilities for all documentation.
|
* Sphinx JavaScript utilities for all documentation.
|
||||||
*
|
*
|
||||||
* :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
|
* :copyright: Copyright 2007-2017 by the Sphinx team, see AUTHORS.
|
||||||
* :license: BSD, see LICENSE for details.
|
* :license: BSD, see LICENSE for details.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
Before Width: | Height: | Size: 347 B After Width: | Height: | Size: 222 B |
BIN
_static/down.png
Before Width: | Height: | Size: 347 B After Width: | Height: | Size: 202 B |
BIN
_static/file.png
Before Width: | Height: | Size: 358 B After Width: | Height: | Size: 286 B |
Before Width: | Height: | Size: 382 KiB After Width: | Height: | Size: 434 KiB |
10074
_static/jquery-3.1.0.js
vendored
Normal file
8
_static/jquery.js
vendored
@ -13,12 +13,14 @@ function ThemeNav () {
|
|||||||
winPosition: 0,
|
winPosition: 0,
|
||||||
winHeight: null,
|
winHeight: null,
|
||||||
docHeight: null,
|
docHeight: null,
|
||||||
isRunning: null
|
isRunning: false
|
||||||
};
|
};
|
||||||
|
|
||||||
nav.enable = function () {
|
nav.enable = function () {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
|
if (!self.isRunning) {
|
||||||
|
self.isRunning = true;
|
||||||
jQuery(function ($) {
|
jQuery(function ($) {
|
||||||
self.init($);
|
self.init($);
|
||||||
|
|
||||||
@ -41,6 +43,7 @@ function ThemeNav () {
|
|||||||
self.onResize();
|
self.onResize();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
nav.init = function ($) {
|
nav.init = function ($) {
|
||||||
var doc = $(document),
|
var doc = $(document),
|
||||||
@ -95,6 +98,19 @@ function ThemeNav () {
|
|||||||
try {
|
try {
|
||||||
var link = $('.wy-menu-vertical')
|
var link = $('.wy-menu-vertical')
|
||||||
.find('[href="' + anchor + '"]');
|
.find('[href="' + anchor + '"]');
|
||||||
|
// If we didn't find a link, it may be because we clicked on
|
||||||
|
// something that is not in the sidebar (eg: when using
|
||||||
|
// sphinxcontrib.httpdomain it generates headerlinks but those
|
||||||
|
// aren't picked up and placed in the toctree). So let's find
|
||||||
|
// the closest header in the document and try with that one.
|
||||||
|
if (link.length === 0) {
|
||||||
|
var doc_link = $('.document a[href="' + anchor + '"]');
|
||||||
|
var closest_section = doc_link.closest('div.section');
|
||||||
|
// Try again with the closest section entry.
|
||||||
|
link = $('.wy-menu-vertical')
|
||||||
|
.find('[href="#' + closest_section.attr("id") + '"]');
|
||||||
|
|
||||||
|
}
|
||||||
$('.wy-menu-vertical li.toctree-l1 li.current')
|
$('.wy-menu-vertical li.toctree-l1 li.current')
|
||||||
.removeClass('current');
|
.removeClass('current');
|
||||||
link.closest('li.toctree-l2').addClass('current');
|
link.closest('li.toctree-l2').addClass('current');
|
||||||
|
Before Width: | Height: | Size: 173 B After Width: | Height: | Size: 90 B |
BIN
_static/plus.png
Before Width: | Height: | Size: 173 B After Width: | Height: | Size: 90 B |
@ -47,8 +47,10 @@
|
|||||||
.highlight .mh { color: #208050 } /* Literal.Number.Hex */
|
.highlight .mh { color: #208050 } /* Literal.Number.Hex */
|
||||||
.highlight .mi { color: #208050 } /* Literal.Number.Integer */
|
.highlight .mi { color: #208050 } /* Literal.Number.Integer */
|
||||||
.highlight .mo { color: #208050 } /* Literal.Number.Oct */
|
.highlight .mo { color: #208050 } /* Literal.Number.Oct */
|
||||||
|
.highlight .sa { color: #4070a0 } /* Literal.String.Affix */
|
||||||
.highlight .sb { color: #4070a0 } /* Literal.String.Backtick */
|
.highlight .sb { color: #4070a0 } /* Literal.String.Backtick */
|
||||||
.highlight .sc { color: #4070a0 } /* Literal.String.Char */
|
.highlight .sc { color: #4070a0 } /* Literal.String.Char */
|
||||||
|
.highlight .dl { color: #4070a0 } /* Literal.String.Delimiter */
|
||||||
.highlight .sd { color: #4070a0; font-style: italic } /* Literal.String.Doc */
|
.highlight .sd { color: #4070a0; font-style: italic } /* Literal.String.Doc */
|
||||||
.highlight .s2 { color: #4070a0 } /* Literal.String.Double */
|
.highlight .s2 { color: #4070a0 } /* Literal.String.Double */
|
||||||
.highlight .se { color: #4070a0; font-weight: bold } /* Literal.String.Escape */
|
.highlight .se { color: #4070a0; font-weight: bold } /* Literal.String.Escape */
|
||||||
@ -59,7 +61,9 @@
|
|||||||
.highlight .s1 { color: #4070a0 } /* Literal.String.Single */
|
.highlight .s1 { color: #4070a0 } /* Literal.String.Single */
|
||||||
.highlight .ss { color: #517918 } /* Literal.String.Symbol */
|
.highlight .ss { color: #517918 } /* Literal.String.Symbol */
|
||||||
.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
|
.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
|
||||||
|
.highlight .fm { color: #06287e } /* Name.Function.Magic */
|
||||||
.highlight .vc { color: #bb60d5 } /* Name.Variable.Class */
|
.highlight .vc { color: #bb60d5 } /* Name.Variable.Class */
|
||||||
.highlight .vg { color: #bb60d5 } /* Name.Variable.Global */
|
.highlight .vg { color: #bb60d5 } /* Name.Variable.Global */
|
||||||
.highlight .vi { color: #bb60d5 } /* Name.Variable.Instance */
|
.highlight .vi { color: #bb60d5 } /* Name.Variable.Instance */
|
||||||
|
.highlight .vm { color: #bb60d5 } /* Name.Variable.Magic */
|
||||||
.highlight .il { color: #208050 } /* Literal.Number.Integer.Long */
|
.highlight .il { color: #208050 } /* Literal.Number.Integer.Long */
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* Sphinx JavaScript utilities for the full-text search.
|
* Sphinx JavaScript utilities for the full-text search.
|
||||||
*
|
*
|
||||||
* :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
|
* :copyright: Copyright 2007-2017 by the Sphinx team, see AUTHORS.
|
||||||
* :license: BSD, see LICENSE for details.
|
* :license: BSD, see LICENSE for details.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@ -226,6 +226,106 @@ var Scorer = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
var splitChars = (function() {
|
||||||
|
var result = {};
|
||||||
|
var singles = [96, 180, 187, 191, 215, 247, 749, 885, 903, 907, 909, 930, 1014, 1648,
|
||||||
|
1748, 1809, 2416, 2473, 2481, 2526, 2601, 2609, 2612, 2615, 2653, 2702,
|
||||||
|
2706, 2729, 2737, 2740, 2857, 2865, 2868, 2910, 2928, 2948, 2961, 2971,
|
||||||
|
2973, 3085, 3089, 3113, 3124, 3213, 3217, 3241, 3252, 3295, 3341, 3345,
|
||||||
|
3369, 3506, 3516, 3633, 3715, 3721, 3736, 3744, 3748, 3750, 3756, 3761,
|
||||||
|
3781, 3912, 4239, 4347, 4681, 4695, 4697, 4745, 4785, 4799, 4801, 4823,
|
||||||
|
4881, 5760, 5901, 5997, 6313, 7405, 8024, 8026, 8028, 8030, 8117, 8125,
|
||||||
|
8133, 8181, 8468, 8485, 8487, 8489, 8494, 8527, 11311, 11359, 11687, 11695,
|
||||||
|
11703, 11711, 11719, 11727, 11735, 12448, 12539, 43010, 43014, 43019, 43587,
|
||||||
|
43696, 43713, 64286, 64297, 64311, 64317, 64319, 64322, 64325, 65141];
|
||||||
|
var i, j, start, end;
|
||||||
|
for (i = 0; i < singles.length; i++) {
|
||||||
|
result[singles[i]] = true;
|
||||||
|
}
|
||||||
|
var ranges = [[0, 47], [58, 64], [91, 94], [123, 169], [171, 177], [182, 184], [706, 709],
|
||||||
|
[722, 735], [741, 747], [751, 879], [888, 889], [894, 901], [1154, 1161],
|
||||||
|
[1318, 1328], [1367, 1368], [1370, 1376], [1416, 1487], [1515, 1519], [1523, 1568],
|
||||||
|
[1611, 1631], [1642, 1645], [1750, 1764], [1767, 1773], [1789, 1790], [1792, 1807],
|
||||||
|
[1840, 1868], [1958, 1968], [1970, 1983], [2027, 2035], [2038, 2041], [2043, 2047],
|
||||||
|
[2070, 2073], [2075, 2083], [2085, 2087], [2089, 2307], [2362, 2364], [2366, 2383],
|
||||||
|
[2385, 2391], [2402, 2405], [2419, 2424], [2432, 2436], [2445, 2446], [2449, 2450],
|
||||||
|
[2483, 2485], [2490, 2492], [2494, 2509], [2511, 2523], [2530, 2533], [2546, 2547],
|
||||||
|
[2554, 2564], [2571, 2574], [2577, 2578], [2618, 2648], [2655, 2661], [2672, 2673],
|
||||||
|
[2677, 2692], [2746, 2748], [2750, 2767], [2769, 2783], [2786, 2789], [2800, 2820],
|
||||||
|
[2829, 2830], [2833, 2834], [2874, 2876], [2878, 2907], [2914, 2917], [2930, 2946],
|
||||||
|
[2955, 2957], [2966, 2968], [2976, 2978], [2981, 2983], [2987, 2989], [3002, 3023],
|
||||||
|
[3025, 3045], [3059, 3076], [3130, 3132], [3134, 3159], [3162, 3167], [3170, 3173],
|
||||||
|
[3184, 3191], [3199, 3204], [3258, 3260], [3262, 3293], [3298, 3301], [3312, 3332],
|
||||||
|
[3386, 3388], [3390, 3423], [3426, 3429], [3446, 3449], [3456, 3460], [3479, 3481],
|
||||||
|
[3518, 3519], [3527, 3584], [3636, 3647], [3655, 3663], [3674, 3712], [3717, 3718],
|
||||||
|
[3723, 3724], [3726, 3731], [3752, 3753], [3764, 3772], [3774, 3775], [3783, 3791],
|
||||||
|
[3802, 3803], [3806, 3839], [3841, 3871], [3892, 3903], [3949, 3975], [3980, 4095],
|
||||||
|
[4139, 4158], [4170, 4175], [4182, 4185], [4190, 4192], [4194, 4196], [4199, 4205],
|
||||||
|
[4209, 4212], [4226, 4237], [4250, 4255], [4294, 4303], [4349, 4351], [4686, 4687],
|
||||||
|
[4702, 4703], [4750, 4751], [4790, 4791], [4806, 4807], [4886, 4887], [4955, 4968],
|
||||||
|
[4989, 4991], [5008, 5023], [5109, 5120], [5741, 5742], [5787, 5791], [5867, 5869],
|
||||||
|
[5873, 5887], [5906, 5919], [5938, 5951], [5970, 5983], [6001, 6015], [6068, 6102],
|
||||||
|
[6104, 6107], [6109, 6111], [6122, 6127], [6138, 6159], [6170, 6175], [6264, 6271],
|
||||||
|
[6315, 6319], [6390, 6399], [6429, 6469], [6510, 6511], [6517, 6527], [6572, 6592],
|
||||||
|
[6600, 6607], [6619, 6655], [6679, 6687], [6741, 6783], [6794, 6799], [6810, 6822],
|
||||||
|
[6824, 6916], [6964, 6980], [6988, 6991], [7002, 7042], [7073, 7085], [7098, 7167],
|
||||||
|
[7204, 7231], [7242, 7244], [7294, 7400], [7410, 7423], [7616, 7679], [7958, 7959],
|
||||||
|
[7966, 7967], [8006, 8007], [8014, 8015], [8062, 8063], [8127, 8129], [8141, 8143],
|
||||||
|
[8148, 8149], [8156, 8159], [8173, 8177], [8189, 8303], [8306, 8307], [8314, 8318],
|
||||||
|
[8330, 8335], [8341, 8449], [8451, 8454], [8456, 8457], [8470, 8472], [8478, 8483],
|
||||||
|
[8506, 8507], [8512, 8516], [8522, 8525], [8586, 9311], [9372, 9449], [9472, 10101],
|
||||||
|
[10132, 11263], [11493, 11498], [11503, 11516], [11518, 11519], [11558, 11567],
|
||||||
|
[11622, 11630], [11632, 11647], [11671, 11679], [11743, 11822], [11824, 12292],
|
||||||
|
[12296, 12320], [12330, 12336], [12342, 12343], [12349, 12352], [12439, 12444],
|
||||||
|
[12544, 12548], [12590, 12592], [12687, 12689], [12694, 12703], [12728, 12783],
|
||||||
|
[12800, 12831], [12842, 12880], [12896, 12927], [12938, 12976], [12992, 13311],
|
||||||
|
[19894, 19967], [40908, 40959], [42125, 42191], [42238, 42239], [42509, 42511],
|
||||||
|
[42540, 42559], [42592, 42593], [42607, 42622], [42648, 42655], [42736, 42774],
|
||||||
|
[42784, 42785], [42889, 42890], [42893, 43002], [43043, 43055], [43062, 43071],
|
||||||
|
[43124, 43137], [43188, 43215], [43226, 43249], [43256, 43258], [43260, 43263],
|
||||||
|
[43302, 43311], [43335, 43359], [43389, 43395], [43443, 43470], [43482, 43519],
|
||||||
|
[43561, 43583], [43596, 43599], [43610, 43615], [43639, 43641], [43643, 43647],
|
||||||
|
[43698, 43700], [43703, 43704], [43710, 43711], [43715, 43738], [43742, 43967],
|
||||||
|
[44003, 44015], [44026, 44031], [55204, 55215], [55239, 55242], [55292, 55295],
|
||||||
|
[57344, 63743], [64046, 64047], [64110, 64111], [64218, 64255], [64263, 64274],
|
||||||
|
[64280, 64284], [64434, 64466], [64830, 64847], [64912, 64913], [64968, 65007],
|
||||||
|
[65020, 65135], [65277, 65295], [65306, 65312], [65339, 65344], [65371, 65381],
|
||||||
|
[65471, 65473], [65480, 65481], [65488, 65489], [65496, 65497]];
|
||||||
|
for (i = 0; i < ranges.length; i++) {
|
||||||
|
start = ranges[i][0];
|
||||||
|
end = ranges[i][1];
|
||||||
|
for (j = start; j <= end; j++) {
|
||||||
|
result[j] = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
})();
|
||||||
|
|
||||||
|
function splitQuery(query) {
|
||||||
|
var result = [];
|
||||||
|
var start = -1;
|
||||||
|
for (var i = 0; i < query.length; i++) {
|
||||||
|
if (splitChars[query.charCodeAt(i)]) {
|
||||||
|
if (start !== -1) {
|
||||||
|
result.push(query.slice(start, i));
|
||||||
|
start = -1;
|
||||||
|
}
|
||||||
|
} else if (start === -1) {
|
||||||
|
start = i;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (start !== -1) {
|
||||||
|
result.push(query.slice(start));
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Search Module
|
* Search Module
|
||||||
*/
|
*/
|
||||||
@ -324,7 +424,7 @@ var Search = {
|
|||||||
var searchterms = [];
|
var searchterms = [];
|
||||||
var excluded = [];
|
var excluded = [];
|
||||||
var hlterms = [];
|
var hlterms = [];
|
||||||
var tmp = query.split(/\W+/);
|
var tmp = splitQuery(query);
|
||||||
var objectterms = [];
|
var objectterms = [];
|
||||||
for (i = 0; i < tmp.length; i++) {
|
for (i = 0; i < tmp.length; i++) {
|
||||||
if (tmp[i] !== "") {
|
if (tmp[i] !== "") {
|
||||||
@ -338,6 +438,10 @@ var Search = {
|
|||||||
}
|
}
|
||||||
// stem the word
|
// stem the word
|
||||||
var word = stemmer.stemWord(tmp[i].toLowerCase());
|
var word = stemmer.stemWord(tmp[i].toLowerCase());
|
||||||
|
// prevent stemmer from cutting word smaller than two chars
|
||||||
|
if(word.length < 3 && tmp[i].length >= 3) {
|
||||||
|
word = tmp[i];
|
||||||
|
}
|
||||||
var toAppend;
|
var toAppend;
|
||||||
// select the correct list
|
// select the correct list
|
||||||
if (word[0] == '-') {
|
if (word[0] == '-') {
|
||||||
@ -435,7 +539,8 @@ var Search = {
|
|||||||
displayNextItem();
|
displayNextItem();
|
||||||
});
|
});
|
||||||
} else if (DOCUMENTATION_OPTIONS.HAS_SOURCE) {
|
} else if (DOCUMENTATION_OPTIONS.HAS_SOURCE) {
|
||||||
$.ajax({url: DOCUMENTATION_OPTIONS.URL_ROOT + '_sources/' + item[0] + '.txt',
|
var suffix = DOCUMENTATION_OPTIONS.SOURCELINK_SUFFIX;
|
||||||
|
$.ajax({url: DOCUMENTATION_OPTIONS.URL_ROOT + '_sources/' + item[5] + (item[5].slice(-suffix.length) === suffix ? '' : suffix),
|
||||||
dataType: "text",
|
dataType: "text",
|
||||||
complete: function(jqxhr, textstatus) {
|
complete: function(jqxhr, textstatus) {
|
||||||
var data = jqxhr.responseText;
|
var data = jqxhr.responseText;
|
||||||
@ -474,6 +579,7 @@ var Search = {
|
|||||||
*/
|
*/
|
||||||
performObjectSearch : function(object, otherterms) {
|
performObjectSearch : function(object, otherterms) {
|
||||||
var filenames = this._index.filenames;
|
var filenames = this._index.filenames;
|
||||||
|
var docnames = this._index.docnames;
|
||||||
var objects = this._index.objects;
|
var objects = this._index.objects;
|
||||||
var objnames = this._index.objnames;
|
var objnames = this._index.objnames;
|
||||||
var titles = this._index.titles;
|
var titles = this._index.titles;
|
||||||
@ -527,7 +633,7 @@ var Search = {
|
|||||||
} else {
|
} else {
|
||||||
score += Scorer.objPrioDefault;
|
score += Scorer.objPrioDefault;
|
||||||
}
|
}
|
||||||
results.push([filenames[match[0]], fullname, '#'+anchor, descr, score]);
|
results.push([docnames[match[0]], fullname, '#'+anchor, descr, score, filenames[match[0]]]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -539,6 +645,7 @@ var Search = {
|
|||||||
* search for full-text terms in the index
|
* search for full-text terms in the index
|
||||||
*/
|
*/
|
||||||
performTermsSearch : function(searchterms, excluded, terms, titleterms) {
|
performTermsSearch : function(searchterms, excluded, terms, titleterms) {
|
||||||
|
var docnames = this._index.docnames;
|
||||||
var filenames = this._index.filenames;
|
var filenames = this._index.filenames;
|
||||||
var titles = this._index.titles;
|
var titles = this._index.titles;
|
||||||
|
|
||||||
@ -613,7 +720,7 @@ var Search = {
|
|||||||
// select one (max) score for the file.
|
// select one (max) score for the file.
|
||||||
// for better ranking, we should calculate ranking by using words statistics like basic tf-idf...
|
// for better ranking, we should calculate ranking by using words statistics like basic tf-idf...
|
||||||
var score = $u.max($u.map(fileMap[file], function(w){return scoreMap[file][w]}));
|
var score = $u.max($u.map(fileMap[file], function(w){return scoreMap[file][w]}));
|
||||||
results.push([filenames[file], titles[file], '', null, score]);
|
results.push([docnames[file], titles[file], '', null, score, filenames[file]]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return results;
|
return results;
|
||||||
|
Before Width: | Height: | Size: 345 B After Width: | Height: | Size: 214 B |
BIN
_static/up.png
Before Width: | Height: | Size: 345 B After Width: | Height: | Size: 203 B |
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* sphinx.websupport utilities for all documentation.
|
* sphinx.websupport utilities for all documentation.
|
||||||
*
|
*
|
||||||
* :copyright: Copyright 2007-2016 by the Sphinx team, see AUTHORS.
|
* :copyright: Copyright 2007-2017 by the Sphinx team, see AUTHORS.
|
||||||
* :license: BSD, see LICENSE for details.
|
* :license: BSD, see LICENSE for details.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
1193
genindex.html
43
index.html
@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<title>Welcome to Lorax’s documentation! — Lorax 26.2 documentation</title>
|
<title>Welcome to Lorax’s documentation! — Lorax 28.2 documentation</title>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -33,7 +35,7 @@
|
|||||||
<link rel="index" title="Index"
|
<link rel="index" title="Index"
|
||||||
href="genindex.html"/>
|
href="genindex.html"/>
|
||||||
<link rel="search" title="Search" href="search.html"/>
|
<link rel="search" title="Search" href="search.html"/>
|
||||||
<link rel="top" title="Lorax 26.2 documentation" href="#"/>
|
<link rel="top" title="Lorax 28.2 documentation" href="#"/>
|
||||||
<link rel="next" title="Introduction to Lorax" href="intro.html"/>
|
<link rel="next" title="Introduction to Lorax" href="intro.html"/>
|
||||||
|
|
||||||
|
|
||||||
@ -43,6 +45,7 @@
|
|||||||
|
|
||||||
<body class="wy-body-for-nav" role="document">
|
<body class="wy-body-for-nav" role="document">
|
||||||
|
|
||||||
|
|
||||||
<div class="wy-grid-for-nav">
|
<div class="wy-grid-for-nav">
|
||||||
|
|
||||||
|
|
||||||
@ -62,7 +65,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="version">
|
<div class="version">
|
||||||
26.2
|
28.2
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -83,6 +86,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<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">Introduction to Lorax</a></li>
|
||||||
<li class="toctree-l1"><a class="reference internal" href="intro.html#before-lorax">Before Lorax</a></li>
|
<li class="toctree-l1"><a class="reference internal" href="intro.html#before-lorax">Before Lorax</a></li>
|
||||||
@ -102,8 +108,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||||
|
|
||||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||||
<a href="#">Lorax</a>
|
<a href="#">Lorax</a>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
@ -116,19 +124,36 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div role="navigation" aria-label="breadcrumbs navigation">
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
||||||
|
|
||||||
<ul class="wy-breadcrumbs">
|
<ul class="wy-breadcrumbs">
|
||||||
|
|
||||||
<li><a href="#">Docs</a> »</li>
|
<li><a href="#">Docs</a> »</li>
|
||||||
|
|
||||||
<li>Welcome to Lorax’s documentation!</li>
|
<li>Welcome to Lorax’s documentation!</li>
|
||||||
|
|
||||||
|
|
||||||
<li class="wy-breadcrumbs-aside">
|
<li class="wy-breadcrumbs-aside">
|
||||||
|
|
||||||
|
|
||||||
<a href="_sources/index.txt" rel="nofollow"> View page source</a>
|
<a href="_sources/index.rst.txt" rel="nofollow"> View page source</a>
|
||||||
|
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||||
@ -158,13 +183,16 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="articleComments">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
|
|
||||||
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
|
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
|
||||||
|
|
||||||
<a href="intro.html" class="btn btn-neutral float-right" title="Introduction to Lorax" accesskey="n">Next <span class="fa fa-arrow-circle-right"></span></a>
|
<a href="intro.html" class="btn btn-neutral float-right" title="Introduction to Lorax" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@ -196,10 +224,11 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var DOCUMENTATION_OPTIONS = {
|
var DOCUMENTATION_OPTIONS = {
|
||||||
URL_ROOT:'./',
|
URL_ROOT:'./',
|
||||||
VERSION:'26.2',
|
VERSION:'28.2',
|
||||||
COLLAPSE_INDEX:false,
|
COLLAPSE_INDEX:false,
|
||||||
FILE_SUFFIX:'.html',
|
FILE_SUFFIX:'.html',
|
||||||
HAS_SOURCE: true
|
HAS_SOURCE: true,
|
||||||
|
SOURCELINK_SUFFIX: '.txt'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="_static/jquery.js"></script>
|
<script type="text/javascript" src="_static/jquery.js"></script>
|
||||||
|
45
intro.html
@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<title>Introduction to Lorax — Lorax 26.2 documentation</title>
|
<title>Introduction to Lorax — Lorax 28.2 documentation</title>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -33,7 +35,7 @@
|
|||||||
<link rel="index" title="Index"
|
<link rel="index" title="Index"
|
||||||
href="genindex.html"/>
|
href="genindex.html"/>
|
||||||
<link rel="search" title="Search" href="search.html"/>
|
<link rel="search" title="Search" href="search.html"/>
|
||||||
<link rel="top" title="Lorax 26.2 documentation" href="index.html"/>
|
<link rel="top" title="Lorax 28.2 documentation" href="index.html"/>
|
||||||
<link rel="next" title="Lorax" href="lorax.html"/>
|
<link rel="next" title="Lorax" href="lorax.html"/>
|
||||||
<link rel="prev" title="Welcome to Lorax’s documentation!" href="index.html"/>
|
<link rel="prev" title="Welcome to Lorax’s documentation!" href="index.html"/>
|
||||||
|
|
||||||
@ -44,6 +46,7 @@
|
|||||||
|
|
||||||
<body class="wy-body-for-nav" role="document">
|
<body class="wy-body-for-nav" role="document">
|
||||||
|
|
||||||
|
|
||||||
<div class="wy-grid-for-nav">
|
<div class="wy-grid-for-nav">
|
||||||
|
|
||||||
|
|
||||||
@ -63,7 +66,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="version">
|
<div class="version">
|
||||||
26.2
|
28.2
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -84,6 +87,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ul class="current">
|
<ul class="current">
|
||||||
<li class="toctree-l1 current"><a class="current reference internal" href="#">Introduction to Lorax</a></li>
|
<li class="toctree-l1 current"><a class="current reference internal" href="#">Introduction to Lorax</a></li>
|
||||||
<li class="toctree-l1"><a class="reference internal" href="#before-lorax">Before Lorax</a></li>
|
<li class="toctree-l1"><a class="reference internal" href="#before-lorax">Before Lorax</a></li>
|
||||||
@ -103,8 +109,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||||
|
|
||||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||||
<a href="index.html">Lorax</a>
|
<a href="index.html">Lorax</a>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
@ -117,19 +125,36 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div role="navigation" aria-label="breadcrumbs navigation">
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
||||||
|
|
||||||
<ul class="wy-breadcrumbs">
|
<ul class="wy-breadcrumbs">
|
||||||
|
|
||||||
<li><a href="index.html">Docs</a> »</li>
|
<li><a href="index.html">Docs</a> »</li>
|
||||||
|
|
||||||
<li>Introduction to Lorax</li>
|
<li>Introduction to Lorax</li>
|
||||||
|
|
||||||
|
|
||||||
<li class="wy-breadcrumbs-aside">
|
<li class="wy-breadcrumbs-aside">
|
||||||
|
|
||||||
|
|
||||||
<a href="_sources/intro.txt" rel="nofollow"> View page source</a>
|
<a href="_sources/intro.rst.txt" rel="nofollow"> View page source</a>
|
||||||
|
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||||
@ -188,16 +213,19 @@ upd-instroot and mk-images* scripts.</p>
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="articleComments">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
|
|
||||||
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
|
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
|
||||||
|
|
||||||
<a href="lorax.html" class="btn btn-neutral float-right" title="Lorax" accesskey="n">Next <span class="fa fa-arrow-circle-right"></span></a>
|
<a href="lorax.html" class="btn btn-neutral float-right" title="Lorax" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
|
||||||
|
|
||||||
|
|
||||||
<a href="index.html" class="btn btn-neutral" title="Welcome to Lorax’s documentation!" accesskey="p"><span class="fa fa-arrow-circle-left"></span> Previous</a>
|
<a href="index.html" class="btn btn-neutral" title="Welcome to Lorax’s documentation!" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -228,10 +256,11 @@ upd-instroot and mk-images* scripts.</p>
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var DOCUMENTATION_OPTIONS = {
|
var DOCUMENTATION_OPTIONS = {
|
||||||
URL_ROOT:'./',
|
URL_ROOT:'./',
|
||||||
VERSION:'26.2',
|
VERSION:'28.2',
|
||||||
COLLAPSE_INDEX:false,
|
COLLAPSE_INDEX:false,
|
||||||
FILE_SUFFIX:'.html',
|
FILE_SUFFIX:'.html',
|
||||||
HAS_SOURCE: true
|
HAS_SOURCE: true,
|
||||||
|
SOURCELINK_SUFFIX: '.txt'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="_static/jquery.js"></script>
|
<script type="text/javascript" src="_static/jquery.js"></script>
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<title>livemedia-creator — Lorax 26.2 documentation</title>
|
<title>livemedia-creator — Lorax 28.2 documentation</title>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -33,7 +35,7 @@
|
|||||||
<link rel="index" title="Index"
|
<link rel="index" title="Index"
|
||||||
href="genindex.html"/>
|
href="genindex.html"/>
|
||||||
<link rel="search" title="Search" href="search.html"/>
|
<link rel="search" title="Search" href="search.html"/>
|
||||||
<link rel="top" title="Lorax 26.2 documentation" href="index.html"/>
|
<link rel="top" title="Lorax 28.2 documentation" href="index.html"/>
|
||||||
<link rel="next" title="Product and Updates Images" href="product-images.html"/>
|
<link rel="next" title="Product and Updates Images" href="product-images.html"/>
|
||||||
<link rel="prev" title="Lorax" href="lorax.html"/>
|
<link rel="prev" title="Lorax" href="lorax.html"/>
|
||||||
|
|
||||||
@ -44,6 +46,7 @@
|
|||||||
|
|
||||||
<body class="wy-body-for-nav" role="document">
|
<body class="wy-body-for-nav" role="document">
|
||||||
|
|
||||||
|
|
||||||
<div class="wy-grid-for-nav">
|
<div class="wy-grid-for-nav">
|
||||||
|
|
||||||
|
|
||||||
@ -63,7 +66,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="version">
|
<div class="version">
|
||||||
26.2
|
28.2
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -84,6 +87,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ul class="current">
|
<ul class="current">
|
||||||
<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">Introduction to Lorax</a></li>
|
||||||
<li class="toctree-l1"><a class="reference internal" href="intro.html#before-lorax">Before Lorax</a></li>
|
<li class="toctree-l1"><a class="reference internal" href="intro.html#before-lorax">Before Lorax</a></li>
|
||||||
@ -125,8 +131,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||||
|
|
||||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||||
<a href="index.html">Lorax</a>
|
<a href="index.html">Lorax</a>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
@ -139,19 +147,36 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div role="navigation" aria-label="breadcrumbs navigation">
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
||||||
|
|
||||||
<ul class="wy-breadcrumbs">
|
<ul class="wy-breadcrumbs">
|
||||||
|
|
||||||
<li><a href="index.html">Docs</a> »</li>
|
<li><a href="index.html">Docs</a> »</li>
|
||||||
|
|
||||||
<li>livemedia-creator</li>
|
<li>livemedia-creator</li>
|
||||||
|
|
||||||
|
|
||||||
<li class="wy-breadcrumbs-aside">
|
<li class="wy-breadcrumbs-aside">
|
||||||
|
|
||||||
|
|
||||||
<a href="_sources/livemedia-creator.txt" rel="nofollow"> View page source</a>
|
<a href="_sources/livemedia-creator.rst.txt" rel="nofollow"> View page source</a>
|
||||||
|
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||||
@ -218,7 +243,7 @@ you have the anaconda-tui package installed.</p>
|
|||||||
<span class="p">[</span><span class="o">--</span><span class="n">vagrantfile</span> <span class="n">VAGRANTFILE</span><span class="p">]</span> <span class="p">[</span><span class="o">--</span><span class="n">title</span> <span class="n">TITLE</span><span class="p">]</span>
|
<span class="p">[</span><span class="o">--</span><span class="n">vagrantfile</span> <span class="n">VAGRANTFILE</span><span class="p">]</span> <span class="p">[</span><span class="o">--</span><span class="n">title</span> <span class="n">TITLE</span><span class="p">]</span>
|
||||||
<span class="p">[</span><span class="o">--</span><span class="n">project</span> <span class="n">PROJECT</span><span class="p">]</span> <span class="p">[</span><span class="o">--</span><span class="n">releasever</span> <span class="n">RELEASEVER</span><span class="p">]</span>
|
<span class="p">[</span><span class="o">--</span><span class="n">project</span> <span class="n">PROJECT</span><span class="p">]</span> <span class="p">[</span><span class="o">--</span><span class="n">releasever</span> <span class="n">RELEASEVER</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">squashfs_args</span> <span class="n">SQUASHFS_ARGS</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">squashfs_args</span> <span class="n">SQUASHFS_ARGS</span><span class="p">]</span>
|
||||||
<span class="p">[</span><span class="o">--</span><span class="n">timeout</span> <span class="n">TIMEOUT</span><span class="p">]</span>
|
<span class="p">[</span><span class="o">--</span><span class="n">timeout</span> <span class="n">TIMEOUT</span><span class="p">]</span> <span class="p">[</span><span class="o">-</span><span class="n">V</span><span class="p">]</span>
|
||||||
</pre></div>
|
</pre></div>
|
||||||
</div>
|
</div>
|
||||||
<dl class="docutils">
|
<dl class="docutils">
|
||||||
@ -230,50 +255,50 @@ you have the anaconda-tui package installed.</p>
|
|||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--make-iso=False</span></kbd></td>
|
<kbd><span class="option">--make-iso=False</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Build a live iso</td></tr>
|
<tr><td> </td><td>Build a live iso</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--make-disk=False</span></kbd></td>
|
<kbd><span class="option">--make-disk=False</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Build a partitioned disk image</td></tr>
|
<tr><td> </td><td>Build a partitioned disk image</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--make-fsimage=False</span></kbd></td>
|
<kbd><span class="option">--make-fsimage=False</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Build a filesystem image</td></tr>
|
<tr><td> </td><td>Build a filesystem image</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--make-appliance=False</span></kbd></td>
|
<kbd><span class="option">--make-appliance=False</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Build an appliance image and XML description</td></tr>
|
<tr><td> </td><td>Build an appliance image and XML description</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--make-ami=False</span></kbd></td>
|
<kbd><span class="option">--make-ami=False</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Build an ami image</td></tr>
|
<tr><td> </td><td>Build an ami image</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--make-tar=False</span></kbd></td>
|
<kbd><span class="option">--make-tar=False</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Build a tar of the root filesystem</td></tr>
|
<tr><td> </td><td>Build a tar of the root filesystem</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--make-pxe-live=False</span></kbd></td>
|
<kbd><span class="option">--make-pxe-live=False</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Build a live pxe boot squashfs image</td></tr>
|
<tr><td> </td><td>Build a live pxe boot squashfs image</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--make-ostree-live=False</span></kbd></td>
|
<kbd><span class="option">--make-ostree-live=False</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Build a live pxe boot squashfs image of Atomic Host</td></tr>
|
<tr><td> </td><td>Build a live pxe boot squashfs image of Atomic Host</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--make-oci=False</span></kbd></td>
|
<kbd><span class="option">--make-oci=False</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Build an Open Container Initiative image</td></tr>
|
<tr><td> </td><td>Build an Open Container Initiative image</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--make-vagrant=False</span></kbd></td>
|
<kbd><span class="option">--make-vagrant=False</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Build a Vagrant Box image</td></tr>
|
<tr><td> </td><td>Build a Vagrant Box image</td></tr>
|
||||||
<tr><td class="option-group">
|
<tr><td class="option-group">
|
||||||
<kbd><span class="option">--iso</span></kbd></td>
|
<kbd><span class="option">--iso</span></kbd></td>
|
||||||
<td>Anaconda installation .iso path to use for qemu</td></tr>
|
<td>Anaconda installation .iso path to use for qemu</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--iso-only=False</span></kbd></td>
|
<kbd><span class="option">--iso-only=False</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Remove all iso creation artifacts except the boot.iso, combine with –iso-name to rename the boot.iso</td></tr>
|
<tr><td> </td><td>Remove all iso creation artifacts except the boot.iso, combine with –iso-name to rename the boot.iso</td></tr>
|
||||||
<tr><td class="option-group">
|
<tr><td class="option-group">
|
||||||
<kbd><span class="option">--iso-name</span></kbd></td>
|
<kbd><span class="option">--iso-name</span></kbd></td>
|
||||||
<td>Name of output iso file for –iso-only. Default is boot.iso</td></tr>
|
<td>Name of output iso file for –iso-only. Default is boot.iso</td></tr>
|
||||||
@ -283,11 +308,11 @@ you have the anaconda-tui package installed.</p>
|
|||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--image-only=False</span></kbd></td>
|
<kbd><span class="option">--image-only=False</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Exit after creating fs/disk image.</td></tr>
|
<tr><td> </td><td>Exit after creating fs/disk image.</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--no-virt=False</span></kbd></td>
|
<kbd><span class="option">--no-virt=False</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Run anaconda directly on host instead of using qemu</td></tr>
|
<tr><td> </td><td>Run anaconda directly on host instead of using qemu</td></tr>
|
||||||
<tr><td class="option-group">
|
<tr><td class="option-group">
|
||||||
<kbd><span class="option">--proxy</span></kbd></td>
|
<kbd><span class="option">--proxy</span></kbd></td>
|
||||||
<td>proxy URL to use for the install</td></tr>
|
<td>proxy URL to use for the install</td></tr>
|
||||||
@ -303,11 +328,11 @@ you have the anaconda-tui package installed.</p>
|
|||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--logfile=./livemedia.log</span></kbd></td>
|
<kbd><span class="option">--logfile=./livemedia.log</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Name and path for primary logfile, other logs will be created in the same directory.</td></tr>
|
<tr><td> </td><td>Name and path for primary logfile, other logs will be created in the same directory.</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--lorax-templates</span></kbd></td>
|
<kbd><span class="option">--lorax-templates</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Path to mako templates for lorax</td></tr>
|
<tr><td> </td><td>Path to mako templates for lorax</td></tr>
|
||||||
<tr><td class="option-group">
|
<tr><td class="option-group">
|
||||||
<kbd><span class="option">--tmp=/var/tmp</span></kbd></td>
|
<kbd><span class="option">--tmp=/var/tmp</span></kbd></td>
|
||||||
<td>Top level temporary directory</td></tr>
|
<td>Top level temporary directory</td></tr>
|
||||||
@ -320,14 +345,14 @@ you have the anaconda-tui package installed.</p>
|
|||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--nomacboot=True</span></kbd></td>
|
<kbd><span class="option">--nomacboot=True</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Undocumented</td></tr>
|
<tr><td> </td><td>Undocumented</td></tr>
|
||||||
<tr><td class="option-group">
|
<tr><td class="option-group">
|
||||||
<kbd><span class="option">--disk-image</span></kbd></td>
|
<kbd><span class="option">--disk-image</span></kbd></td>
|
||||||
<td>Path to existing disk image to use for creating final image.</td></tr>
|
<td>Path to existing disk image to use for creating final image.</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--keep-image=False</span></kbd></td>
|
<kbd><span class="option">--keep-image=False</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Keep raw disk image after .iso creation</td></tr>
|
<tr><td> </td><td>Keep raw disk image after .iso creation</td></tr>
|
||||||
<tr><td class="option-group">
|
<tr><td class="option-group">
|
||||||
<kbd><span class="option">--fs-image</span></kbd></td>
|
<kbd><span class="option">--fs-image</span></kbd></td>
|
||||||
<td>Path to existing filesystem image to use for creating final image.</td></tr>
|
<td>Path to existing filesystem image to use for creating final image.</td></tr>
|
||||||
@ -337,7 +362,7 @@ you have the anaconda-tui package installed.</p>
|
|||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--fs-label=Anaconda</span></kbd></td>
|
<kbd><span class="option">--fs-label=Anaconda</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Label to set on fsimage, default is ‘Anaconda’</td></tr>
|
<tr><td> </td><td>Label to set on fsimage, default is ‘Anaconda’</td></tr>
|
||||||
<tr><td class="option-group">
|
<tr><td class="option-group">
|
||||||
<kbd><span class="option">--image-type</span></kbd></td>
|
<kbd><span class="option">--image-type</span></kbd></td>
|
||||||
<td>Create an image with qemu-img. See qemu-img –help for supported formats.</td></tr>
|
<td>Create an image with qemu-img. See qemu-img –help for supported formats.</td></tr>
|
||||||
@ -353,11 +378,11 @@ you have the anaconda-tui package installed.</p>
|
|||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--compression=xz</span></kbd></td>
|
<kbd><span class="option">--compression=xz</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Compression binary for make-tar. xz, lzma, gzip, and bzip2 are supported. xz is the default.</td></tr>
|
<tr><td> </td><td>Compression binary for make-tar. xz, lzma, gzip, and bzip2 are supported. xz is the default.</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--compress-arg=[]</span></kbd></td>
|
<kbd><span class="option">--compress-arg=[]</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Arguments to pass to compression. Pass once for each argument</td></tr>
|
<tr><td> </td><td>Arguments to pass to compression. Pass once for each argument</td></tr>
|
||||||
<tr><td class="option-group">
|
<tr><td class="option-group">
|
||||||
<kbd><span class="option">--app-name</span></kbd></td>
|
<kbd><span class="option">--app-name</span></kbd></td>
|
||||||
<td>Name of appliance to pass to template</td></tr>
|
<td>Name of appliance to pass to template</td></tr>
|
||||||
@ -367,7 +392,7 @@ you have the anaconda-tui package installed.</p>
|
|||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--app-file=appliance.xml</span></kbd></td>
|
<kbd><span class="option">--app-file=appliance.xml</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Appliance template results file.</td></tr>
|
<tr><td> </td><td>Appliance template results file.</td></tr>
|
||||||
<tr><td class="option-group">
|
<tr><td class="option-group">
|
||||||
<kbd><span class="option">--ram=1024</span></kbd></td>
|
<kbd><span class="option">--ram=1024</span></kbd></td>
|
||||||
<td>Memory to allocate for installer in megabytes.</td></tr>
|
<td>Memory to allocate for installer in megabytes.</td></tr>
|
||||||
@ -386,11 +411,11 @@ you have the anaconda-tui package installed.</p>
|
|||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--ovmf-path=/usr/share/edk2/ovmf/</span></kbd></td>
|
<kbd><span class="option">--ovmf-path=/usr/share/edk2/ovmf/</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Path to OVMF firmware</td></tr>
|
<tr><td> </td><td>Path to OVMF firmware</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--virt-uefi=False</span></kbd></td>
|
<kbd><span class="option">--virt-uefi=False</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Use OVMF firmware to boot the VM in UEFI mode</td></tr>
|
<tr><td> </td><td>Use OVMF firmware to boot the VM in UEFI mode</td></tr>
|
||||||
<tr><td class="option-group">
|
<tr><td class="option-group">
|
||||||
<kbd><span class="option">--no-kvm=False</span></kbd></td>
|
<kbd><span class="option">--no-kvm=False</span></kbd></td>
|
||||||
<td>Skip using kvm with qemu even if it is available.</td></tr>
|
<td>Skip using kvm with qemu even if it is available.</td></tr>
|
||||||
@ -400,11 +425,11 @@ you have the anaconda-tui package installed.</p>
|
|||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--live-rootfs-size=0</span></kbd></td>
|
<kbd><span class="option">--live-rootfs-size=0</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Size of root filesystem of live image in GiB</td></tr>
|
<tr><td> </td><td>Size of root filesystem of live image in GiB</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--live-rootfs-keep-size=False</span></kbd></td>
|
<kbd><span class="option">--live-rootfs-keep-size=False</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Keep the original size of root filesystem in live image</td></tr>
|
<tr><td> </td><td>Keep the original size of root filesystem in live image</td></tr>
|
||||||
<tr><td class="option-group">
|
<tr><td class="option-group">
|
||||||
<kbd><span class="option">--oci-config</span></kbd></td>
|
<kbd><span class="option">--oci-config</span></kbd></td>
|
||||||
<td>config.json OCI configuration file</td></tr>
|
<td>config.json OCI configuration file</td></tr>
|
||||||
@ -414,32 +439,35 @@ you have the anaconda-tui package installed.</p>
|
|||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--vagrant-metadata</span></kbd></td>
|
<kbd><span class="option">--vagrant-metadata</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>optional metadata.json file</td></tr>
|
<tr><td> </td><td>optional metadata.json file</td></tr>
|
||||||
<tr><td class="option-group">
|
<tr><td class="option-group">
|
||||||
<kbd><span class="option">--vagrantfile</span></kbd></td>
|
<kbd><span class="option">--vagrantfile</span></kbd></td>
|
||||||
<td>optional vagrantfile</td></tr>
|
<td>optional vagrantfile</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--title=Linux Live Media</span></kbd></td>
|
<kbd><span class="option">--title=Linux Live Media</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Substituted for @TITLE@ in bootloader config files</td></tr>
|
<tr><td> </td><td>Substituted for @TITLE@ in bootloader config files</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--project=Linux</span></kbd></td>
|
<kbd><span class="option">--project=Linux</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>substituted for @PROJECT@ in bootloader config files</td></tr>
|
<tr><td> </td><td>substituted for @PROJECT@ in bootloader config files</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--releasever=25</span></kbd></td>
|
<kbd><span class="option">--releasever=25</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>substituted for @VERSION@ in bootloader config files</td></tr>
|
<tr><td> </td><td>substituted for @VERSION@ in bootloader config files</td></tr>
|
||||||
<tr><td class="option-group">
|
<tr><td class="option-group">
|
||||||
<kbd><span class="option">--volid</span></kbd></td>
|
<kbd><span class="option">--volid</span></kbd></td>
|
||||||
<td>volume id</td></tr>
|
<td>volume id</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--squashfs_args</span></kbd></td>
|
<kbd><span class="option">--squashfs_args</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>additional squashfs args</td></tr>
|
<tr><td> </td><td>additional squashfs args</td></tr>
|
||||||
<tr><td class="option-group">
|
<tr><td class="option-group">
|
||||||
<kbd><span class="option">--timeout</span></kbd></td>
|
<kbd><span class="option">--timeout</span></kbd></td>
|
||||||
<td>Cancel installer after X minutes</td></tr>
|
<td>Cancel installer after X minutes</td></tr>
|
||||||
|
<tr><td class="option-group">
|
||||||
|
<kbd><span class="option">-V</span></kbd></td>
|
||||||
|
<td>show program’s version number and exit</td></tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</dd>
|
</dd>
|
||||||
@ -714,8 +742,9 @@ mock environment.</p>
|
|||||||
22.15 inside of a mock chroot with –make-iso and –make-fsimage.</p>
|
22.15 inside of a mock chroot with –make-iso and –make-fsimage.</p>
|
||||||
<div class="admonition note">
|
<div class="admonition note">
|
||||||
<p class="first admonition-title">Note</p>
|
<p class="first admonition-title">Note</p>
|
||||||
<p class="last">As of mock 1.2.12 you no longer need to bind mount <code class="docutils literal"><span class="pre">/dev/</span></code>, loop devices are setup
|
<p class="last">As of mock 1.3.4 you need to use <code class="docutils literal"><span class="pre">--old-chroot</span></code> with mock. Mock now defaults to using systemd-nspawn
|
||||||
as part of the standard mock <code class="docutils literal"><span class="pre">/dev/</span></code> creation.</p>
|
which cannot create the needed loop device nodes. Passing <code class="docutils literal"><span class="pre">--old-chroot</span></code> will use the old system
|
||||||
|
where <code class="docutils literal"><span class="pre">/dev/loop*</span></code> is setup for you.</p>
|
||||||
</div>
|
</div>
|
||||||
<p>On the host system:</p>
|
<p>On the host system:</p>
|
||||||
<ol class="arabic">
|
<ol class="arabic">
|
||||||
@ -963,16 +992,19 @@ report bugs against the lorax component.</p>
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="articleComments">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
|
|
||||||
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
|
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
|
||||||
|
|
||||||
<a href="product-images.html" class="btn btn-neutral float-right" title="Product and Updates Images" accesskey="n">Next <span class="fa fa-arrow-circle-right"></span></a>
|
<a href="product-images.html" class="btn btn-neutral float-right" title="Product and Updates Images" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
|
||||||
|
|
||||||
|
|
||||||
<a href="lorax.html" class="btn btn-neutral" title="Lorax" accesskey="p"><span class="fa fa-arrow-circle-left"></span> Previous</a>
|
<a href="lorax.html" class="btn btn-neutral" title="Lorax" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -1003,10 +1035,11 @@ report bugs against the lorax component.</p>
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var DOCUMENTATION_OPTIONS = {
|
var DOCUMENTATION_OPTIONS = {
|
||||||
URL_ROOT:'./',
|
URL_ROOT:'./',
|
||||||
VERSION:'26.2',
|
VERSION:'28.2',
|
||||||
COLLAPSE_INDEX:false,
|
COLLAPSE_INDEX:false,
|
||||||
FILE_SUFFIX:'.html',
|
FILE_SUFFIX:'.html',
|
||||||
HAS_SOURCE: true
|
HAS_SOURCE: true,
|
||||||
|
SOURCELINK_SUFFIX: '.txt'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="_static/jquery.js"></script>
|
<script type="text/javascript" src="_static/jquery.js"></script>
|
||||||
|
96
lorax.html
@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<title>Lorax — Lorax 26.2 documentation</title>
|
<title>Lorax — Lorax 28.2 documentation</title>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -33,7 +35,7 @@
|
|||||||
<link rel="index" title="Index"
|
<link rel="index" title="Index"
|
||||||
href="genindex.html"/>
|
href="genindex.html"/>
|
||||||
<link rel="search" title="Search" href="search.html"/>
|
<link rel="search" title="Search" href="search.html"/>
|
||||||
<link rel="top" title="Lorax 26.2 documentation" href="index.html"/>
|
<link rel="top" title="Lorax 28.2 documentation" href="index.html"/>
|
||||||
<link rel="next" title="livemedia-creator" href="livemedia-creator.html"/>
|
<link rel="next" title="livemedia-creator" href="livemedia-creator.html"/>
|
||||||
<link rel="prev" title="Introduction to Lorax" href="intro.html"/>
|
<link rel="prev" title="Introduction to Lorax" href="intro.html"/>
|
||||||
|
|
||||||
@ -44,6 +46,7 @@
|
|||||||
|
|
||||||
<body class="wy-body-for-nav" role="document">
|
<body class="wy-body-for-nav" role="document">
|
||||||
|
|
||||||
|
|
||||||
<div class="wy-grid-for-nav">
|
<div class="wy-grid-for-nav">
|
||||||
|
|
||||||
|
|
||||||
@ -63,7 +66,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="version">
|
<div class="version">
|
||||||
26.2
|
28.2
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -84,12 +87,16 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ul class="current">
|
<ul class="current">
|
||||||
<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">Introduction to Lorax</a></li>
|
||||||
<li class="toctree-l1"><a class="reference internal" href="intro.html#before-lorax">Before Lorax</a></li>
|
<li class="toctree-l1"><a class="reference internal" href="intro.html#before-lorax">Before Lorax</a></li>
|
||||||
<li class="toctree-l1 current"><a class="current reference internal" href="#">Lorax</a><ul>
|
<li class="toctree-l1 current"><a class="current reference internal" href="#">Lorax</a><ul>
|
||||||
<li class="toctree-l2"><a class="reference internal" href="#lorax-cmdline-arguments">lorax cmdline arguments</a></li>
|
<li class="toctree-l2"><a class="reference internal" href="#lorax-cmdline-arguments">lorax cmdline arguments</a></li>
|
||||||
<li class="toctree-l2"><a class="reference internal" href="#quickstart">Quickstart</a></li>
|
<li class="toctree-l2"><a class="reference internal" href="#quickstart">Quickstart</a></li>
|
||||||
|
<li class="toctree-l2"><a class="reference internal" href="#running-inside-of-mock">Running inside of mock</a></li>
|
||||||
<li class="toctree-l2"><a class="reference internal" href="#how-it-works">How it works</a><ul>
|
<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-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-postinstall-tmpl">runtime-postinstall.tmpl</a></li>
|
||||||
@ -116,8 +123,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||||
|
|
||||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||||
<a href="index.html">Lorax</a>
|
<a href="index.html">Lorax</a>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
@ -130,19 +139,36 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div role="navigation" aria-label="breadcrumbs navigation">
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
||||||
|
|
||||||
<ul class="wy-breadcrumbs">
|
<ul class="wy-breadcrumbs">
|
||||||
|
|
||||||
<li><a href="index.html">Docs</a> »</li>
|
<li><a href="index.html">Docs</a> »</li>
|
||||||
|
|
||||||
<li>Lorax</li>
|
<li>Lorax</li>
|
||||||
|
|
||||||
|
|
||||||
<li class="wy-breadcrumbs-aside">
|
<li class="wy-breadcrumbs-aside">
|
||||||
|
|
||||||
|
|
||||||
<a href="_sources/lorax.txt" rel="nofollow"> View page source</a>
|
<a href="_sources/lorax.rst.txt" rel="nofollow"> View page source</a>
|
||||||
|
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||||
@ -181,7 +207,8 @@ repositories.</p>
|
|||||||
<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="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">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">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">V</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">V</span><span class="p">]</span>
|
||||||
<span class="n">OUTPUTDIR</span>
|
<span class="n">OUTPUTDIR</span>
|
||||||
</pre></div>
|
</pre></div>
|
||||||
</div>
|
</div>
|
||||||
@ -214,40 +241,40 @@ repositories.</p>
|
|||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">-s=[]</span>, <span class="option">--source=[]</span></kbd></td>
|
<kbd><span class="option">-s=[]</span>, <span class="option">--source=[]</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>source repository (may be listed multiple times)</td></tr>
|
<tr><td> </td><td>source repository (may be listed multiple times)</td></tr>
|
||||||
<tr><td class="option-group">
|
<tr><td class="option-group">
|
||||||
<kbd><span class="option">--repo=[]</span></kbd></td>
|
<kbd><span class="option">--repo=[]</span></kbd></td>
|
||||||
<td>source dnf repository file</td></tr>
|
<td>source dnf repository file</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">-m=[]</span>, <span class="option">--mirrorlist=[]</span></kbd></td>
|
<kbd><span class="option">-m=[]</span>, <span class="option">--mirrorlist=[]</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>mirrorlist repository (may be listed multiple times)</td></tr>
|
<tr><td> </td><td>mirrorlist repository (may be listed multiple times)</td></tr>
|
||||||
<tr><td class="option-group">
|
<tr><td class="option-group">
|
||||||
<kbd><span class="option">-t</span>, <span class="option">--variant</span></kbd></td>
|
<kbd><span class="option">-t</span>, <span class="option">--variant</span></kbd></td>
|
||||||
<td>variant name</td></tr>
|
<td>variant name</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">-b=your distribution provided bug reporting tool</span>, <span class="option">--bugurl=your distribution provided bug reporting tool</span></kbd></td>
|
<kbd><span class="option">-b=your distribution provided bug reporting tool</span>, <span class="option">--bugurl=your distribution provided bug reporting tool</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>bug reporting URL for the product</td></tr>
|
<tr><td> </td><td>bug reporting URL for the product</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--isfinal=False</span></kbd></td>
|
<kbd><span class="option">--isfinal=False</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Undocumented</td></tr>
|
<tr><td> </td><td>Undocumented</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">-c=/etc/lorax/lorax.conf</span>, <span class="option">--config=/etc/lorax/lorax.conf</span></kbd></td>
|
<kbd><span class="option">-c=/etc/lorax/lorax.conf</span>, <span class="option">--config=/etc/lorax/lorax.conf</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>config file</td></tr>
|
<tr><td> </td><td>config file</td></tr>
|
||||||
<tr><td class="option-group">
|
<tr><td class="option-group">
|
||||||
<kbd><span class="option">--proxy</span></kbd></td>
|
<kbd><span class="option">--proxy</span></kbd></td>
|
||||||
<td>repo proxy url:port</td></tr>
|
<td>repo proxy url:port</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">-i=[]</span>, <span class="option">--installpkgs=[]</span></kbd></td>
|
<kbd><span class="option">-i=[]</span>, <span class="option">--installpkgs=[]</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>package glob to install before runtime-install.tmpl runs. (may be listed multiple times)</td></tr>
|
<tr><td> </td><td>package glob to install before runtime-install.tmpl runs. (may be listed multiple times)</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">-e=[]</span>, <span class="option">--excludepkgs=[]</span></kbd></td>
|
<kbd><span class="option">-e=[]</span>, <span class="option">--excludepkgs=[]</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>package glob to remove before runtime-install.tmpl runs. (may be listed multiple times)</td></tr>
|
<tr><td> </td><td>package glob to remove before runtime-install.tmpl runs. (may be listed multiple times)</td></tr>
|
||||||
<tr><td class="option-group">
|
<tr><td class="option-group">
|
||||||
<kbd><span class="option">--buildarch</span></kbd></td>
|
<kbd><span class="option">--buildarch</span></kbd></td>
|
||||||
<td>build architecture</td></tr>
|
<td>build architecture</td></tr>
|
||||||
@ -260,15 +287,15 @@ repositories.</p>
|
|||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--nomacboot=True</span></kbd></td>
|
<kbd><span class="option">--nomacboot=True</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Undocumented</td></tr>
|
<tr><td> </td><td>Undocumented</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--noupgrade=True</span></kbd></td>
|
<kbd><span class="option">--noupgrade=True</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Undocumented</td></tr>
|
<tr><td> </td><td>Undocumented</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--logfile=./lorax.log</span></kbd></td>
|
<kbd><span class="option">--logfile=./lorax.log</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Path to logfile</td></tr>
|
<tr><td> </td><td>Path to logfile</td></tr>
|
||||||
<tr><td class="option-group">
|
<tr><td class="option-group">
|
||||||
<kbd><span class="option">--tmp=/var/tmp</span></kbd></td>
|
<kbd><span class="option">--tmp=/var/tmp</span></kbd></td>
|
||||||
<td>Top level temporary directory</td></tr>
|
<td>Top level temporary directory</td></tr>
|
||||||
@ -284,38 +311,42 @@ repositories.</p>
|
|||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--add-template=[]</span></kbd></td>
|
<kbd><span class="option">--add-template=[]</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Additional template for runtime image</td></tr>
|
<tr><td> </td><td>Additional template for runtime image</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--add-template-var=[]</span></kbd></td>
|
<kbd><span class="option">--add-template-var=[]</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Set variable for runtime image template</td></tr>
|
<tr><td> </td><td>Set variable for runtime image template</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--add-arch-template=[]</span></kbd></td>
|
<kbd><span class="option">--add-arch-template=[]</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Additional template for architecture-specific image</td></tr>
|
<tr><td> </td><td>Additional template for architecture-specific image</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--add-arch-template-var=[]</span></kbd></td>
|
<kbd><span class="option">--add-arch-template-var=[]</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Set variable for architecture-specific image</td></tr>
|
<tr><td> </td><td>Set variable for architecture-specific image</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--noverify=True</span></kbd></td>
|
<kbd><span class="option">--noverify=True</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Do not verify the install root</td></tr>
|
<tr><td> </td><td>Do not verify the install root</td></tr>
|
||||||
<tr><td class="option-group">
|
<tr><td class="option-group">
|
||||||
<kbd><span class="option">--sharedir</span></kbd></td>
|
<kbd><span class="option">--sharedir</span></kbd></td>
|
||||||
<td>Directory containing all the templates. Overrides config file sharedir</td></tr>
|
<td>Directory containing all the templates. Overrides config file sharedir</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--enablerepo=[]</span></kbd></td>
|
<kbd><span class="option">--enablerepo=[]</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Names of repos to enable</td></tr>
|
<tr><td> </td><td>Names of repos to enable</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--disablerepo=[]</span></kbd></td>
|
<kbd><span class="option">--disablerepo=[]</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Names of repos to disable</td></tr>
|
<tr><td> </td><td>Names of repos to disable</td></tr>
|
||||||
<tr><td class="option-group" colspan="2">
|
<tr><td class="option-group" colspan="2">
|
||||||
<kbd><span class="option">--rootfs-size=2</span></kbd></td>
|
<kbd><span class="option">--rootfs-size=2</span></kbd></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td> </td><td>Size of root filesystem in GiB. Defaults to 2.</td></tr>
|
<tr><td> </td><td>Size of root filesystem in GiB. Defaults to 2.</td></tr>
|
||||||
|
<tr><td class="option-group" colspan="2">
|
||||||
|
<kbd><span class="option">--noverifyssl=False</span></kbd></td>
|
||||||
|
</tr>
|
||||||
|
<tr><td> </td><td>Do not verify SSL certificates</td></tr>
|
||||||
<tr><td class="option-group">
|
<tr><td class="option-group">
|
||||||
<kbd><span class="option">-V</span></kbd></td>
|
<kbd><span class="option">-V</span></kbd></td>
|
||||||
<td>show program’s version number and exit</td></tr>
|
<td>show program’s version number and exit</td></tr>
|
||||||
@ -341,6 +372,13 @@ override the ones in the distribution repositories.</p>
|
|||||||
<p>Under <code class="docutils literal"><span class="pre">./results/</span></code> will be the release tree files: .discinfo, .treeinfo, everything that
|
<p>Under <code class="docutils literal"><span class="pre">./results/</span></code> will be the release tree files: .discinfo, .treeinfo, everything that
|
||||||
goes onto the boot.iso, the pxeboot directory, and the boot.iso under <code class="docutils literal"><span class="pre">./images/</span></code>.</p>
|
goes onto the boot.iso, the pxeboot directory, and the boot.iso under <code class="docutils literal"><span class="pre">./images/</span></code>.</p>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="section" id="running-inside-of-mock">
|
||||||
|
<h2>Running inside of mock<a class="headerlink" href="#running-inside-of-mock" title="Permalink to this headline">¶</a></h2>
|
||||||
|
<p>If you are using lorax with mock v1.3.4 or later you will need to pass
|
||||||
|
<code class="docutils literal"><span class="pre">--old-chroot</span></code> to mock. Mock now defaults to using systemd-nspawn which cannot
|
||||||
|
create the needed loop device nodes. Passing <code class="docutils literal"><span class="pre">--old-chroot</span></code> will use the old
|
||||||
|
system where <code class="docutils literal"><span class="pre">/dev/loop*</span></code> is setup for you.</p>
|
||||||
|
</div>
|
||||||
<div class="section" id="how-it-works">
|
<div class="section" id="how-it-works">
|
||||||
<h2>How it works<a class="headerlink" href="#how-it-works" title="Permalink to this headline">¶</a></h2>
|
<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
|
<p>Lorax uses <a class="reference external" href="https://github.com/rpm-software-management/dnf">dnf</a> to install
|
||||||
@ -430,16 +468,19 @@ should) select the specific template directory by passing <code class="docutils
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="articleComments">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
|
|
||||||
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
|
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
|
||||||
|
|
||||||
<a href="livemedia-creator.html" class="btn btn-neutral float-right" title="livemedia-creator" accesskey="n">Next <span class="fa fa-arrow-circle-right"></span></a>
|
<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"></span></a>
|
||||||
|
|
||||||
|
|
||||||
<a href="intro.html" class="btn btn-neutral" title="Introduction to Lorax" accesskey="p"><span class="fa fa-arrow-circle-left"></span> Previous</a>
|
<a href="intro.html" class="btn btn-neutral" title="Introduction to Lorax" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -470,10 +511,11 @@ should) select the specific template directory by passing <code class="docutils
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var DOCUMENTATION_OPTIONS = {
|
var DOCUMENTATION_OPTIONS = {
|
||||||
URL_ROOT:'./',
|
URL_ROOT:'./',
|
||||||
VERSION:'26.2',
|
VERSION:'28.2',
|
||||||
COLLAPSE_INDEX:false,
|
COLLAPSE_INDEX:false,
|
||||||
FILE_SUFFIX:'.html',
|
FILE_SUFFIX:'.html',
|
||||||
HAS_SOURCE: true
|
HAS_SOURCE: true,
|
||||||
|
SOURCELINK_SUFFIX: '.txt'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="_static/jquery.js"></script>
|
<script type="text/javascript" src="_static/jquery.js"></script>
|
||||||
|
45
modules.html
@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<title>pylorax — Lorax 26.2 documentation</title>
|
<title>pylorax — Lorax 28.2 documentation</title>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -33,7 +35,7 @@
|
|||||||
<link rel="index" title="Index"
|
<link rel="index" title="Index"
|
||||||
href="genindex.html"/>
|
href="genindex.html"/>
|
||||||
<link rel="search" title="Search" href="search.html"/>
|
<link rel="search" title="Search" href="search.html"/>
|
||||||
<link rel="top" title="Lorax 26.2 documentation" href="index.html"/>
|
<link rel="top" title="Lorax 28.2 documentation" href="index.html"/>
|
||||||
<link rel="next" title="pylorax package" href="pylorax.html"/>
|
<link rel="next" title="pylorax package" href="pylorax.html"/>
|
||||||
<link rel="prev" title="Product and Updates Images" href="product-images.html"/>
|
<link rel="prev" title="Product and Updates Images" href="product-images.html"/>
|
||||||
|
|
||||||
@ -44,6 +46,7 @@
|
|||||||
|
|
||||||
<body class="wy-body-for-nav" role="document">
|
<body class="wy-body-for-nav" role="document">
|
||||||
|
|
||||||
|
|
||||||
<div class="wy-grid-for-nav">
|
<div class="wy-grid-for-nav">
|
||||||
|
|
||||||
|
|
||||||
@ -63,7 +66,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="version">
|
<div class="version">
|
||||||
26.2
|
28.2
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -84,6 +87,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ul class="current">
|
<ul class="current">
|
||||||
<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">Introduction to Lorax</a></li>
|
||||||
<li class="toctree-l1"><a class="reference internal" href="intro.html#before-lorax">Before Lorax</a></li>
|
<li class="toctree-l1"><a class="reference internal" href="intro.html#before-lorax">Before Lorax</a></li>
|
||||||
@ -106,8 +112,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||||
|
|
||||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||||
<a href="index.html">Lorax</a>
|
<a href="index.html">Lorax</a>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
@ -120,19 +128,36 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div role="navigation" aria-label="breadcrumbs navigation">
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
||||||
|
|
||||||
<ul class="wy-breadcrumbs">
|
<ul class="wy-breadcrumbs">
|
||||||
|
|
||||||
<li><a href="index.html">Docs</a> »</li>
|
<li><a href="index.html">Docs</a> »</li>
|
||||||
|
|
||||||
<li>pylorax</li>
|
<li>pylorax</li>
|
||||||
|
|
||||||
|
|
||||||
<li class="wy-breadcrumbs-aside">
|
<li class="wy-breadcrumbs-aside">
|
||||||
|
|
||||||
|
|
||||||
<a href="_sources/modules.txt" rel="nofollow"> View page source</a>
|
<a href="_sources/modules.rst.txt" rel="nofollow"> View page source</a>
|
||||||
|
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||||
@ -167,16 +192,19 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="articleComments">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
|
|
||||||
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
|
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
|
||||||
|
|
||||||
<a href="pylorax.html" class="btn btn-neutral float-right" title="pylorax package" accesskey="n">Next <span class="fa fa-arrow-circle-right"></span></a>
|
<a href="pylorax.html" class="btn btn-neutral float-right" title="pylorax package" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
|
||||||
|
|
||||||
|
|
||||||
<a href="product-images.html" class="btn btn-neutral" title="Product and Updates Images" accesskey="p"><span class="fa fa-arrow-circle-left"></span> Previous</a>
|
<a href="product-images.html" class="btn btn-neutral" title="Product and Updates Images" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -207,10 +235,11 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var DOCUMENTATION_OPTIONS = {
|
var DOCUMENTATION_OPTIONS = {
|
||||||
URL_ROOT:'./',
|
URL_ROOT:'./',
|
||||||
VERSION:'26.2',
|
VERSION:'28.2',
|
||||||
COLLAPSE_INDEX:false,
|
COLLAPSE_INDEX:false,
|
||||||
FILE_SUFFIX:'.html',
|
FILE_SUFFIX:'.html',
|
||||||
HAS_SOURCE: true
|
HAS_SOURCE: true,
|
||||||
|
SOURCELINK_SUFFIX: '.txt'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="_static/jquery.js"></script>
|
<script type="text/javascript" src="_static/jquery.js"></script>
|
||||||
|
BIN
objects.inv
@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<title>Product and Updates Images — Lorax 26.2 documentation</title>
|
<title>Product and Updates Images — Lorax 28.2 documentation</title>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -33,7 +35,7 @@
|
|||||||
<link rel="index" title="Index"
|
<link rel="index" title="Index"
|
||||||
href="genindex.html"/>
|
href="genindex.html"/>
|
||||||
<link rel="search" title="Search" href="search.html"/>
|
<link rel="search" title="Search" href="search.html"/>
|
||||||
<link rel="top" title="Lorax 26.2 documentation" href="index.html"/>
|
<link rel="top" title="Lorax 28.2 documentation" href="index.html"/>
|
||||||
<link rel="next" title="pylorax" href="modules.html"/>
|
<link rel="next" title="pylorax" href="modules.html"/>
|
||||||
<link rel="prev" title="livemedia-creator" href="livemedia-creator.html"/>
|
<link rel="prev" title="livemedia-creator" href="livemedia-creator.html"/>
|
||||||
|
|
||||||
@ -44,6 +46,7 @@
|
|||||||
|
|
||||||
<body class="wy-body-for-nav" role="document">
|
<body class="wy-body-for-nav" role="document">
|
||||||
|
|
||||||
|
|
||||||
<div class="wy-grid-for-nav">
|
<div class="wy-grid-for-nav">
|
||||||
|
|
||||||
|
|
||||||
@ -63,7 +66,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="version">
|
<div class="version">
|
||||||
26.2
|
28.2
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -84,6 +87,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ul class="current">
|
<ul class="current">
|
||||||
<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">Introduction to Lorax</a></li>
|
||||||
<li class="toctree-l1"><a class="reference internal" href="intro.html#before-lorax">Before Lorax</a></li>
|
<li class="toctree-l1"><a class="reference internal" href="intro.html#before-lorax">Before Lorax</a></li>
|
||||||
@ -103,8 +109,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||||
|
|
||||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||||
<a href="index.html">Lorax</a>
|
<a href="index.html">Lorax</a>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
@ -117,19 +125,36 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div role="navigation" aria-label="breadcrumbs navigation">
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
||||||
|
|
||||||
<ul class="wy-breadcrumbs">
|
<ul class="wy-breadcrumbs">
|
||||||
|
|
||||||
<li><a href="index.html">Docs</a> »</li>
|
<li><a href="index.html">Docs</a> »</li>
|
||||||
|
|
||||||
<li>Product and Updates Images</li>
|
<li>Product and Updates Images</li>
|
||||||
|
|
||||||
|
|
||||||
<li class="wy-breadcrumbs-aside">
|
<li class="wy-breadcrumbs-aside">
|
||||||
|
|
||||||
|
|
||||||
<a href="_sources/product-images.txt" rel="nofollow"> View page source</a>
|
<a href="_sources/product-images.rst.txt" rel="nofollow"> View page source</a>
|
||||||
|
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||||
@ -160,16 +185,19 @@ command or the installpkgs paramater of <a class="reference internal" href="pylo
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="articleComments">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
|
|
||||||
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
|
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
|
||||||
|
|
||||||
<a href="modules.html" class="btn btn-neutral float-right" title="pylorax" accesskey="n">Next <span class="fa fa-arrow-circle-right"></span></a>
|
<a href="modules.html" class="btn btn-neutral float-right" title="pylorax" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
|
||||||
|
|
||||||
|
|
||||||
<a href="livemedia-creator.html" class="btn btn-neutral" title="livemedia-creator" accesskey="p"><span class="fa fa-arrow-circle-left"></span> Previous</a>
|
<a href="livemedia-creator.html" class="btn btn-neutral" title="livemedia-creator" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -200,10 +228,11 @@ command or the installpkgs paramater of <a class="reference internal" href="pylo
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var DOCUMENTATION_OPTIONS = {
|
var DOCUMENTATION_OPTIONS = {
|
||||||
URL_ROOT:'./',
|
URL_ROOT:'./',
|
||||||
VERSION:'26.2',
|
VERSION:'28.2',
|
||||||
COLLAPSE_INDEX:false,
|
COLLAPSE_INDEX:false,
|
||||||
FILE_SUFFIX:'.html',
|
FILE_SUFFIX:'.html',
|
||||||
HAS_SOURCE: true
|
HAS_SOURCE: true,
|
||||||
|
SOURCELINK_SUFFIX: '.txt'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="_static/jquery.js"></script>
|
<script type="text/javascript" src="_static/jquery.js"></script>
|
||||||
|
@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<title>Python Module Index — Lorax 26.2 documentation</title>
|
<title>Python Module Index — Lorax 28.2 documentation</title>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -33,7 +35,7 @@
|
|||||||
<link rel="index" title="Index"
|
<link rel="index" title="Index"
|
||||||
href="genindex.html"/>
|
href="genindex.html"/>
|
||||||
<link rel="search" title="Search" href="search.html"/>
|
<link rel="search" title="Search" href="search.html"/>
|
||||||
<link rel="top" title="Lorax 26.2 documentation" href="index.html"/>
|
<link rel="top" title="Lorax 28.2 documentation" href="index.html"/>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -45,6 +47,7 @@
|
|||||||
|
|
||||||
<body class="wy-body-for-nav" role="document">
|
<body class="wy-body-for-nav" role="document">
|
||||||
|
|
||||||
|
|
||||||
<div class="wy-grid-for-nav">
|
<div class="wy-grid-for-nav">
|
||||||
|
|
||||||
|
|
||||||
@ -64,7 +67,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="version">
|
<div class="version">
|
||||||
26.2
|
28.2
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -85,6 +88,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<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">Introduction to Lorax</a></li>
|
||||||
<li class="toctree-l1"><a class="reference internal" href="intro.html#before-lorax">Before Lorax</a></li>
|
<li class="toctree-l1"><a class="reference internal" href="intro.html#before-lorax">Before Lorax</a></li>
|
||||||
@ -104,8 +110,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||||
|
|
||||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||||
<a href="index.html">Lorax</a>
|
<a href="index.html">Lorax</a>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
@ -118,17 +126,34 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div role="navigation" aria-label="breadcrumbs navigation">
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
||||||
|
|
||||||
<ul class="wy-breadcrumbs">
|
<ul class="wy-breadcrumbs">
|
||||||
|
|
||||||
<li><a href="index.html">Docs</a> »</li>
|
<li><a href="index.html">Docs</a> »</li>
|
||||||
|
|
||||||
<li></li>
|
<li>Python Module Index</li>
|
||||||
|
|
||||||
|
|
||||||
<li class="wy-breadcrumbs-aside">
|
<li class="wy-breadcrumbs-aside">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||||
@ -141,7 +166,7 @@
|
|||||||
<a href="#cap-p"><strong>p</strong></a>
|
<a href="#cap-p"><strong>p</strong></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table class="indextable modindextable" cellspacing="0" cellpadding="2">
|
<table class="indextable modindextable">
|
||||||
<tr class="pcap"><td></td><td> </td><td></td></tr>
|
<tr class="pcap"><td></td><td> </td><td></td></tr>
|
||||||
<tr class="cap" id="cap-p"><td></td><td>
|
<tr class="cap" id="cap-p"><td></td><td>
|
||||||
<strong>p</strong></td><td></td></tr>
|
<strong>p</strong></td><td></td></tr>
|
||||||
@ -229,6 +254,9 @@
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="articleComments">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
@ -260,10 +288,11 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var DOCUMENTATION_OPTIONS = {
|
var DOCUMENTATION_OPTIONS = {
|
||||||
URL_ROOT:'./',
|
URL_ROOT:'./',
|
||||||
VERSION:'26.2',
|
VERSION:'28.2',
|
||||||
COLLAPSE_INDEX:false,
|
COLLAPSE_INDEX:false,
|
||||||
FILE_SUFFIX:'.html',
|
FILE_SUFFIX:'.html',
|
||||||
HAS_SOURCE: true
|
HAS_SOURCE: true,
|
||||||
|
SOURCELINK_SUFFIX: '.txt'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="_static/jquery.js"></script>
|
<script type="text/javascript" src="_static/jquery.js"></script>
|
||||||
|
123
pylorax.html
@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<title>pylorax package — Lorax 26.2 documentation</title>
|
<title>pylorax package — Lorax 28.2 documentation</title>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -33,7 +35,7 @@
|
|||||||
<link rel="index" title="Index"
|
<link rel="index" title="Index"
|
||||||
href="genindex.html"/>
|
href="genindex.html"/>
|
||||||
<link rel="search" title="Search" href="search.html"/>
|
<link rel="search" title="Search" href="search.html"/>
|
||||||
<link rel="top" title="Lorax 26.2 documentation" href="index.html"/>
|
<link rel="top" title="Lorax 28.2 documentation" href="index.html"/>
|
||||||
<link rel="up" title="pylorax" href="modules.html"/>
|
<link rel="up" title="pylorax" href="modules.html"/>
|
||||||
<link rel="prev" title="pylorax" href="modules.html"/>
|
<link rel="prev" title="pylorax" href="modules.html"/>
|
||||||
|
|
||||||
@ -44,6 +46,7 @@
|
|||||||
|
|
||||||
<body class="wy-body-for-nav" role="document">
|
<body class="wy-body-for-nav" role="document">
|
||||||
|
|
||||||
|
|
||||||
<div class="wy-grid-for-nav">
|
<div class="wy-grid-for-nav">
|
||||||
|
|
||||||
|
|
||||||
@ -63,7 +66,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="version">
|
<div class="version">
|
||||||
26.2
|
28.2
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -84,6 +87,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ul class="current">
|
<ul class="current">
|
||||||
<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">Introduction to Lorax</a></li>
|
||||||
<li class="toctree-l1"><a class="reference internal" href="intro.html#before-lorax">Before Lorax</a></li>
|
<li class="toctree-l1"><a class="reference internal" href="intro.html#before-lorax">Before Lorax</a></li>
|
||||||
@ -125,8 +131,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||||
|
|
||||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||||
<a href="index.html">Lorax</a>
|
<a href="index.html">Lorax</a>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
@ -139,21 +147,38 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div role="navigation" aria-label="breadcrumbs navigation">
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
||||||
|
|
||||||
<ul class="wy-breadcrumbs">
|
<ul class="wy-breadcrumbs">
|
||||||
|
|
||||||
<li><a href="index.html">Docs</a> »</li>
|
<li><a href="index.html">Docs</a> »</li>
|
||||||
|
|
||||||
<li><a href="modules.html">pylorax</a> »</li>
|
<li><a href="modules.html">pylorax</a> »</li>
|
||||||
|
|
||||||
<li>pylorax package</li>
|
<li>pylorax package</li>
|
||||||
|
|
||||||
|
|
||||||
<li class="wy-breadcrumbs-aside">
|
<li class="wy-breadcrumbs-aside">
|
||||||
|
|
||||||
|
|
||||||
<a href="_sources/pylorax.txt" rel="nofollow"> View page source</a>
|
<a href="_sources/pylorax.rst.txt" rel="nofollow"> View page source</a>
|
||||||
|
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||||
@ -169,7 +194,7 @@
|
|||||||
<dl class="class">
|
<dl class="class">
|
||||||
<dt id="pylorax.base.BaseLoraxClass">
|
<dt id="pylorax.base.BaseLoraxClass">
|
||||||
<em class="property">class </em><code class="descclassname">pylorax.base.</code><code class="descname">BaseLoraxClass</code><a class="reference internal" href="_modules/pylorax/base.html#BaseLoraxClass"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.base.BaseLoraxClass" title="Permalink to this definition">¶</a></dt>
|
<em class="property">class </em><code class="descclassname">pylorax.base.</code><code class="descname">BaseLoraxClass</code><a class="reference internal" href="_modules/pylorax/base.html#BaseLoraxClass"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.base.BaseLoraxClass" title="Permalink to this definition">¶</a></dt>
|
||||||
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.5)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
|
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.6)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
|
||||||
<dl class="method">
|
<dl class="method">
|
||||||
<dt id="pylorax.base.BaseLoraxClass.pcritical">
|
<dt id="pylorax.base.BaseLoraxClass.pcritical">
|
||||||
<code class="descname">pcritical</code><span class="sig-paren">(</span><em>msg</em>, <em>fobj=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/base.html#BaseLoraxClass.pcritical"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.base.BaseLoraxClass.pcritical" title="Permalink to this definition">¶</a></dt>
|
<code class="descname">pcritical</code><span class="sig-paren">(</span><em>msg</em>, <em>fobj=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'></em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/base.html#BaseLoraxClass.pcritical"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.base.BaseLoraxClass.pcritical" title="Permalink to this definition">¶</a></dt>
|
||||||
@ -200,7 +225,7 @@
|
|||||||
<dl class="class">
|
<dl class="class">
|
||||||
<dt id="pylorax.base.DataHolder">
|
<dt id="pylorax.base.DataHolder">
|
||||||
<em class="property">class </em><code class="descclassname">pylorax.base.</code><code class="descname">DataHolder</code><span class="sig-paren">(</span><em>**kwargs</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/base.html#DataHolder"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.base.DataHolder" title="Permalink to this definition">¶</a></dt>
|
<em class="property">class </em><code class="descclassname">pylorax.base.</code><code class="descname">DataHolder</code><span class="sig-paren">(</span><em>**kwargs</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/base.html#DataHolder"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.base.DataHolder" title="Permalink to this definition">¶</a></dt>
|
||||||
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#dict" title="(in Python v3.5)"><code class="xref py py-class docutils literal"><span class="pre">dict</span></code></a></p>
|
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#dict" title="(in Python v3.6)"><code class="xref py py-class docutils literal"><span class="pre">dict</span></code></a></p>
|
||||||
<dl class="method">
|
<dl class="method">
|
||||||
<dt id="pylorax.base.DataHolder.copy">
|
<dt id="pylorax.base.DataHolder.copy">
|
||||||
<code class="descname">copy</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/base.html#DataHolder.copy"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.base.DataHolder.copy" title="Permalink to this definition">¶</a></dt>
|
<code class="descname">copy</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/base.html#DataHolder.copy"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.base.DataHolder.copy" title="Permalink to this definition">¶</a></dt>
|
||||||
@ -214,7 +239,7 @@
|
|||||||
<dl class="class">
|
<dl class="class">
|
||||||
<dt id="pylorax.buildstamp.BuildStamp">
|
<dt id="pylorax.buildstamp.BuildStamp">
|
||||||
<em class="property">class </em><code class="descclassname">pylorax.buildstamp.</code><code class="descname">BuildStamp</code><span class="sig-paren">(</span><em>product</em>, <em>version</em>, <em>bugurl</em>, <em>isfinal</em>, <em>buildarch</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/buildstamp.html#BuildStamp"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.buildstamp.BuildStamp" title="Permalink to this definition">¶</a></dt>
|
<em class="property">class </em><code class="descclassname">pylorax.buildstamp.</code><code class="descname">BuildStamp</code><span class="sig-paren">(</span><em>product</em>, <em>version</em>, <em>bugurl</em>, <em>isfinal</em>, <em>buildarch</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/buildstamp.html#BuildStamp"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.buildstamp.BuildStamp" title="Permalink to this definition">¶</a></dt>
|
||||||
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.5)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
|
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.6)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
|
||||||
<dl class="method">
|
<dl class="method">
|
||||||
<dt id="pylorax.buildstamp.BuildStamp.write">
|
<dt id="pylorax.buildstamp.BuildStamp.write">
|
||||||
<code class="descname">write</code><span class="sig-paren">(</span><em>outfile</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/buildstamp.html#BuildStamp.write"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.buildstamp.BuildStamp.write" title="Permalink to this definition">¶</a></dt>
|
<code class="descname">write</code><span class="sig-paren">(</span><em>outfile</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/buildstamp.html#BuildStamp.write"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.buildstamp.BuildStamp.write" title="Permalink to this definition">¶</a></dt>
|
||||||
@ -251,7 +276,7 @@
|
|||||||
<dl class="class">
|
<dl class="class">
|
||||||
<dt id="pylorax.discinfo.DiscInfo">
|
<dt id="pylorax.discinfo.DiscInfo">
|
||||||
<em class="property">class </em><code class="descclassname">pylorax.discinfo.</code><code class="descname">DiscInfo</code><span class="sig-paren">(</span><em>release</em>, <em>basearch</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/discinfo.html#DiscInfo"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.discinfo.DiscInfo" title="Permalink to this definition">¶</a></dt>
|
<em class="property">class </em><code class="descclassname">pylorax.discinfo.</code><code class="descname">DiscInfo</code><span class="sig-paren">(</span><em>release</em>, <em>basearch</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/discinfo.html#DiscInfo"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.discinfo.DiscInfo" title="Permalink to this definition">¶</a></dt>
|
||||||
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.5)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
|
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.6)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
|
||||||
<dl class="method">
|
<dl class="method">
|
||||||
<dt id="pylorax.discinfo.DiscInfo.write">
|
<dt id="pylorax.discinfo.DiscInfo.write">
|
||||||
<code class="descname">write</code><span class="sig-paren">(</span><em>outfile</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/discinfo.html#DiscInfo.write"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.discinfo.DiscInfo.write" title="Permalink to this definition">¶</a></dt>
|
<code class="descname">write</code><span class="sig-paren">(</span><em>outfile</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/discinfo.html#DiscInfo.write"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.discinfo.DiscInfo.write" title="Permalink to this definition">¶</a></dt>
|
||||||
@ -268,7 +293,7 @@
|
|||||||
<dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">DownloadProgress</span></code></p>
|
<dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">DownloadProgress</span></code></p>
|
||||||
<dl class="method">
|
<dl class="method">
|
||||||
<dt id="pylorax.dnfhelper.LoraxDownloadCallback.end">
|
<dt id="pylorax.dnfhelper.LoraxDownloadCallback.end">
|
||||||
<code class="descname">end</code><span class="sig-paren">(</span><em>payload</em>, <em>status</em>, <em>err_msg</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/dnfhelper.html#LoraxDownloadCallback.end"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.dnfhelper.LoraxDownloadCallback.end" title="Permalink to this definition">¶</a></dt>
|
<code class="descname">end</code><span class="sig-paren">(</span><em>payload</em>, <em>status</em>, <em>msg</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/dnfhelper.html#LoraxDownloadCallback.end"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.dnfhelper.LoraxDownloadCallback.end" title="Permalink to this definition">¶</a></dt>
|
||||||
<dd></dd></dl>
|
<dd></dd></dl>
|
||||||
|
|
||||||
<dl class="method">
|
<dl class="method">
|
||||||
@ -278,7 +303,7 @@
|
|||||||
|
|
||||||
<dl class="method">
|
<dl class="method">
|
||||||
<dt id="pylorax.dnfhelper.LoraxDownloadCallback.start">
|
<dt id="pylorax.dnfhelper.LoraxDownloadCallback.start">
|
||||||
<code class="descname">start</code><span class="sig-paren">(</span><em>total_files</em>, <em>total_size</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/dnfhelper.html#LoraxDownloadCallback.start"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.dnfhelper.LoraxDownloadCallback.start" title="Permalink to this definition">¶</a></dt>
|
<code class="descname">start</code><span class="sig-paren">(</span><em>total_files</em>, <em>total_size</em>, <em>total_drpms=0</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/dnfhelper.html#LoraxDownloadCallback.start"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.dnfhelper.LoraxDownloadCallback.start" title="Permalink to this definition">¶</a></dt>
|
||||||
<dd></dd></dl>
|
<dd></dd></dl>
|
||||||
|
|
||||||
</dd></dl>
|
</dd></dl>
|
||||||
@ -289,7 +314,7 @@
|
|||||||
<dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">TransactionProgress</span></code></p>
|
<dd><p>Bases: <code class="xref py py-class docutils literal"><span class="pre">TransactionProgress</span></code></p>
|
||||||
<dl class="method">
|
<dl class="method">
|
||||||
<dt id="pylorax.dnfhelper.LoraxRpmCallback.error">
|
<dt id="pylorax.dnfhelper.LoraxRpmCallback.error">
|
||||||
<code class="descname">error</code><span class="sig-paren">(</span><em>err_msg</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/dnfhelper.html#LoraxRpmCallback.error"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.dnfhelper.LoraxRpmCallback.error" title="Permalink to this definition">¶</a></dt>
|
<code class="descname">error</code><span class="sig-paren">(</span><em>message</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/dnfhelper.html#LoraxRpmCallback.error"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.dnfhelper.LoraxRpmCallback.error" title="Permalink to this definition">¶</a></dt>
|
||||||
<dd></dd></dl>
|
<dd></dd></dl>
|
||||||
|
|
||||||
<dl class="method">
|
<dl class="method">
|
||||||
@ -305,7 +330,7 @@
|
|||||||
<dl class="class">
|
<dl class="class">
|
||||||
<dt id="pylorax.executils.ExecProduct">
|
<dt id="pylorax.executils.ExecProduct">
|
||||||
<em class="property">class </em><code class="descclassname">pylorax.executils.</code><code class="descname">ExecProduct</code><span class="sig-paren">(</span><em>rc</em>, <em>stdout</em>, <em>stderr</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/executils.html#ExecProduct"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.executils.ExecProduct" title="Permalink to this definition">¶</a></dt>
|
<em class="property">class </em><code class="descclassname">pylorax.executils.</code><code class="descname">ExecProduct</code><span class="sig-paren">(</span><em>rc</em>, <em>stdout</em>, <em>stderr</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/executils.html#ExecProduct"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.executils.ExecProduct" title="Permalink to this definition">¶</a></dt>
|
||||||
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.5)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
|
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.6)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
|
||||||
</dd></dl>
|
</dd></dl>
|
||||||
|
|
||||||
<dl class="function">
|
<dl class="function">
|
||||||
@ -438,8 +463,8 @@ variable name, the old value is overwritten.</p>
|
|||||||
<col class="field-body" />
|
<col class="field-body" />
|
||||||
<tbody valign="top">
|
<tbody valign="top">
|
||||||
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
|
||||||
<li><strong>name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.5)"><em>str</em></a>) – The name of the environment variable</li>
|
<li><strong>name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.6)"><em>str</em></a>) – The name of the environment variable</li>
|
||||||
<li><strong>value</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.5)"><em>str</em></a>) – The value of the environment variable</li>
|
<li><strong>value</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.6)"><em>str</em></a>) – The value of the environment variable</li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -487,25 +512,25 @@ last.</p>
|
|||||||
<dl class="class">
|
<dl class="class">
|
||||||
<dt id="pylorax.imgutils.DMDev">
|
<dt id="pylorax.imgutils.DMDev">
|
||||||
<em class="property">class </em><code class="descclassname">pylorax.imgutils.</code><code class="descname">DMDev</code><span class="sig-paren">(</span><em>dev</em>, <em>size</em>, <em>name=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/imgutils.html#DMDev"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.imgutils.DMDev" title="Permalink to this definition">¶</a></dt>
|
<em class="property">class </em><code class="descclassname">pylorax.imgutils.</code><code class="descname">DMDev</code><span class="sig-paren">(</span><em>dev</em>, <em>size</em>, <em>name=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/imgutils.html#DMDev"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.imgutils.DMDev" title="Permalink to this definition">¶</a></dt>
|
||||||
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.5)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
|
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.6)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
|
||||||
</dd></dl>
|
</dd></dl>
|
||||||
|
|
||||||
<dl class="class">
|
<dl class="class">
|
||||||
<dt id="pylorax.imgutils.LoopDev">
|
<dt id="pylorax.imgutils.LoopDev">
|
||||||
<em class="property">class </em><code class="descclassname">pylorax.imgutils.</code><code class="descname">LoopDev</code><span class="sig-paren">(</span><em>filename</em>, <em>size=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/imgutils.html#LoopDev"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.imgutils.LoopDev" title="Permalink to this definition">¶</a></dt>
|
<em class="property">class </em><code class="descclassname">pylorax.imgutils.</code><code class="descname">LoopDev</code><span class="sig-paren">(</span><em>filename</em>, <em>size=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/imgutils.html#LoopDev"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.imgutils.LoopDev" title="Permalink to this definition">¶</a></dt>
|
||||||
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.5)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
|
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.6)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
|
||||||
</dd></dl>
|
</dd></dl>
|
||||||
|
|
||||||
<dl class="class">
|
<dl class="class">
|
||||||
<dt id="pylorax.imgutils.Mount">
|
<dt id="pylorax.imgutils.Mount">
|
||||||
<em class="property">class </em><code class="descclassname">pylorax.imgutils.</code><code class="descname">Mount</code><span class="sig-paren">(</span><em>dev</em>, <em>opts=''</em>, <em>mnt=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/imgutils.html#Mount"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.imgutils.Mount" title="Permalink to this definition">¶</a></dt>
|
<em class="property">class </em><code class="descclassname">pylorax.imgutils.</code><code class="descname">Mount</code><span class="sig-paren">(</span><em>dev</em>, <em>opts=''</em>, <em>mnt=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/imgutils.html#Mount"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.imgutils.Mount" title="Permalink to this definition">¶</a></dt>
|
||||||
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.5)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
|
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.6)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
|
||||||
</dd></dl>
|
</dd></dl>
|
||||||
|
|
||||||
<dl class="class">
|
<dl class="class">
|
||||||
<dt id="pylorax.imgutils.PartitionMount">
|
<dt id="pylorax.imgutils.PartitionMount">
|
||||||
<em class="property">class </em><code class="descclassname">pylorax.imgutils.</code><code class="descname">PartitionMount</code><span class="sig-paren">(</span><em>disk_img</em>, <em>mount_ok=None</em>, <em>submount=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/imgutils.html#PartitionMount"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.imgutils.PartitionMount" title="Permalink to this definition">¶</a></dt>
|
<em class="property">class </em><code class="descclassname">pylorax.imgutils.</code><code class="descname">PartitionMount</code><span class="sig-paren">(</span><em>disk_img</em>, <em>mount_ok=None</em>, <em>submount=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/imgutils.html#PartitionMount"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.imgutils.PartitionMount" title="Permalink to this definition">¶</a></dt>
|
||||||
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.5)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
|
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.6)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
|
||||||
<p>Mount a partitioned image file using kpartx</p>
|
<p>Mount a partitioned image file using kpartx</p>
|
||||||
</dd></dl>
|
</dd></dl>
|
||||||
|
|
||||||
@ -574,6 +599,16 @@ Raises CalledProcessError if losetup fails.</p>
|
|||||||
<dd><p>Detach the given loop device. Return False on failure.</p>
|
<dd><p>Detach the given loop device. Return False on failure.</p>
|
||||||
</dd></dl>
|
</dd></dl>
|
||||||
|
|
||||||
|
<dl class="function">
|
||||||
|
<dt id="pylorax.imgutils.loop_waitfor">
|
||||||
|
<code class="descclassname">pylorax.imgutils.</code><code class="descname">loop_waitfor</code><span class="sig-paren">(</span><em>loop_dev</em>, <em>outfile</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/imgutils.html#loop_waitfor"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.imgutils.loop_waitfor" title="Permalink to this definition">¶</a></dt>
|
||||||
|
<dd><p>Make sure the loop device is attached to the outfile.</p>
|
||||||
|
<p>It seems that on rare occasions losetup can return before the /dev/loopX is
|
||||||
|
ready for use, causing problems with mkfs. This tries to make sure that the
|
||||||
|
loop device really is associated with the backing file before continuing.</p>
|
||||||
|
<p>Raise RuntimeError if it isn’t setup after 5 tries.</p>
|
||||||
|
</dd></dl>
|
||||||
|
|
||||||
<dl class="function">
|
<dl class="function">
|
||||||
<dt id="pylorax.imgutils.mkbtrfsimg">
|
<dt id="pylorax.imgutils.mkbtrfsimg">
|
||||||
<code class="descclassname">pylorax.imgutils.</code><code class="descname">mkbtrfsimg</code><span class="sig-paren">(</span><em>rootdir</em>, <em>outfile</em>, <em>size=None</em>, <em>label=''</em>, <em>mountargs=''</em>, <em>graft=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/imgutils.html#mkbtrfsimg"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.imgutils.mkbtrfsimg" title="Permalink to this definition">¶</a></dt>
|
<code class="descclassname">pylorax.imgutils.</code><code class="descname">mkbtrfsimg</code><span class="sig-paren">(</span><em>rootdir</em>, <em>outfile</em>, <em>size=None</em>, <em>label=''</em>, <em>mountargs=''</em>, <em>graft=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/imgutils.html#mkbtrfsimg"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.imgutils.mkbtrfsimg" title="Permalink to this definition">¶</a></dt>
|
||||||
@ -637,11 +672,11 @@ in options.</p>
|
|||||||
<col class="field-body" />
|
<col class="field-body" />
|
||||||
<tbody valign="top">
|
<tbody valign="top">
|
||||||
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
|
||||||
<li><strong>rootdir</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.5)"><em>str</em></a>) – Root directory</li>
|
<li><strong>rootdir</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.6)"><em>str</em></a>) – Root directory</li>
|
||||||
<li><strong>outfile</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.5)"><em>str</em></a>) – Path of output image file</li>
|
<li><strong>outfile</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.6)"><em>str</em></a>) – Path of output image file</li>
|
||||||
<li><strong>label</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.5)"><em>str</em></a>) – Filesystem label</li>
|
<li><strong>label</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.6)"><em>str</em></a>) – Filesystem label</li>
|
||||||
<li><strong>size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.5)"><em>int</em></a>) – Size of the image in GiB, if None computed automatically</li>
|
<li><strong>size</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.6)"><em>int</em></a>) – Size of the image in GiB, if None computed automatically</li>
|
||||||
<li><strong>sysroot</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.5)"><em>str</em></a>) – path to system (deployment) root relative to physical root</li>
|
<li><strong>sysroot</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.6)"><em>str</em></a>) – path to system (deployment) root relative to physical root</li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -696,7 +731,7 @@ raises CalledProcessError if umount fails.</p>
|
|||||||
<dl class="class">
|
<dl class="class">
|
||||||
<dt id="pylorax.ltmpl.LoraxTemplate">
|
<dt id="pylorax.ltmpl.LoraxTemplate">
|
||||||
<em class="property">class </em><code class="descclassname">pylorax.ltmpl.</code><code class="descname">LoraxTemplate</code><span class="sig-paren">(</span><em>directories=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/ltmpl.html#LoraxTemplate"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.ltmpl.LoraxTemplate" title="Permalink to this definition">¶</a></dt>
|
<em class="property">class </em><code class="descclassname">pylorax.ltmpl.</code><code class="descname">LoraxTemplate</code><span class="sig-paren">(</span><em>directories=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/ltmpl.html#LoraxTemplate"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.ltmpl.LoraxTemplate" title="Permalink to this definition">¶</a></dt>
|
||||||
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.5)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
|
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.6)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
|
||||||
<dl class="method">
|
<dl class="method">
|
||||||
<dt id="pylorax.ltmpl.LoraxTemplate.parse">
|
<dt id="pylorax.ltmpl.LoraxTemplate.parse">
|
||||||
<code class="descname">parse</code><span class="sig-paren">(</span><em>template_file</em>, <em>variables</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/ltmpl.html#LoraxTemplate.parse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.ltmpl.LoraxTemplate.parse" title="Permalink to this definition">¶</a></dt>
|
<code class="descname">parse</code><span class="sig-paren">(</span><em>template_file</em>, <em>variables</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/ltmpl.html#LoraxTemplate.parse"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.ltmpl.LoraxTemplate.parse" title="Permalink to this definition">¶</a></dt>
|
||||||
@ -707,7 +742,7 @@ raises CalledProcessError if umount fails.</p>
|
|||||||
<dl class="class">
|
<dl class="class">
|
||||||
<dt id="pylorax.ltmpl.LoraxTemplateRunner">
|
<dt id="pylorax.ltmpl.LoraxTemplateRunner">
|
||||||
<em class="property">class </em><code class="descclassname">pylorax.ltmpl.</code><code class="descname">LoraxTemplateRunner</code><span class="sig-paren">(</span><em>inroot</em>, <em>outroot</em>, <em>dbo=None</em>, <em>fatalerrors=True</em>, <em>templatedir=None</em>, <em>defaults=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/ltmpl.html#LoraxTemplateRunner"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.ltmpl.LoraxTemplateRunner" title="Permalink to this definition">¶</a></dt>
|
<em class="property">class </em><code class="descclassname">pylorax.ltmpl.</code><code class="descname">LoraxTemplateRunner</code><span class="sig-paren">(</span><em>inroot</em>, <em>outroot</em>, <em>dbo=None</em>, <em>fatalerrors=True</em>, <em>templatedir=None</em>, <em>defaults=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/ltmpl.html#LoraxTemplateRunner"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.ltmpl.LoraxTemplateRunner" title="Permalink to this definition">¶</a></dt>
|
||||||
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.5)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
|
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.6)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
|
||||||
<p>This class parses and executes Lorax templates. Sample usage:</p>
|
<p>This class parses and executes Lorax templates. Sample usage:</p>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<div><p># install a bunch of packages
|
<div><p># install a bunch of packages
|
||||||
@ -1127,7 +1162,7 @@ Example:</p>
|
|||||||
<dl class="class">
|
<dl class="class">
|
||||||
<dt id="pylorax.monitor.LogMonitor">
|
<dt id="pylorax.monitor.LogMonitor">
|
||||||
<em class="property">class </em><code class="descclassname">pylorax.monitor.</code><code class="descname">LogMonitor</code><span class="sig-paren">(</span><em>log_path=None</em>, <em>host='localhost'</em>, <em>port=0</em>, <em>timeout=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/monitor.html#LogMonitor"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.monitor.LogMonitor" title="Permalink to this definition">¶</a></dt>
|
<em class="property">class </em><code class="descclassname">pylorax.monitor.</code><code class="descname">LogMonitor</code><span class="sig-paren">(</span><em>log_path=None</em>, <em>host='localhost'</em>, <em>port=0</em>, <em>timeout=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/monitor.html#LogMonitor"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.monitor.LogMonitor" title="Permalink to this definition">¶</a></dt>
|
||||||
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.5)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
|
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.6)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
|
||||||
<p>Setup a server to monitor the logs output by the installation</p>
|
<p>Setup a server to monitor the logs output by the installation</p>
|
||||||
<p>This needs to be running before the virt-install runs, it expects
|
<p>This needs to be running before the virt-install runs, it expects
|
||||||
there to be a listener on the port used for the virtio log port.</p>
|
there to be a listener on the port used for the virtio log port.</p>
|
||||||
@ -1142,7 +1177,7 @@ there to be a listener on the port used for the virtio log port.</p>
|
|||||||
<dl class="class">
|
<dl class="class">
|
||||||
<dt id="pylorax.monitor.LogRequestHandler">
|
<dt id="pylorax.monitor.LogRequestHandler">
|
||||||
<em class="property">class </em><code class="descclassname">pylorax.monitor.</code><code class="descname">LogRequestHandler</code><span class="sig-paren">(</span><em>request</em>, <em>client_address</em>, <em>server</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/monitor.html#LogRequestHandler"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.monitor.LogRequestHandler" title="Permalink to this definition">¶</a></dt>
|
<em class="property">class </em><code class="descclassname">pylorax.monitor.</code><code class="descname">LogRequestHandler</code><span class="sig-paren">(</span><em>request</em>, <em>client_address</em>, <em>server</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/monitor.html#LogRequestHandler"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.monitor.LogRequestHandler" title="Permalink to this definition">¶</a></dt>
|
||||||
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/socketserver.html#socketserver.BaseRequestHandler" title="(in Python v3.5)"><code class="xref py py-class docutils literal"><span class="pre">socketserver.BaseRequestHandler</span></code></a></p>
|
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/socketserver.html#socketserver.BaseRequestHandler" title="(in Python v3.6)"><code class="xref py py-class docutils literal"><span class="pre">socketserver.BaseRequestHandler</span></code></a></p>
|
||||||
<p>Handle monitoring and saving the logfiles from the virtual install</p>
|
<p>Handle monitoring and saving the logfiles from the virtual install</p>
|
||||||
<p>Incoming data is written to self.server.log_path and each line is checked
|
<p>Incoming data is written to self.server.log_path and each line is checked
|
||||||
for patterns that would indicate that the installation failed.
|
for patterns that would indicate that the installation failed.
|
||||||
@ -1169,7 +1204,7 @@ errors that indicate that the install failed.</p>
|
|||||||
<col class="field-name" />
|
<col class="field-name" />
|
||||||
<col class="field-body" />
|
<col class="field-body" />
|
||||||
<tbody valign="top">
|
<tbody valign="top">
|
||||||
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>line</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.5)"><em>str</em></a>) – log line to check for failure</td>
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>line</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.6)"><em>str</em></a>) – log line to check for failure</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@ -1187,7 +1222,7 @@ errors that indicate that the install failed.</p>
|
|||||||
<dl class="class">
|
<dl class="class">
|
||||||
<dt id="pylorax.monitor.LogServer">
|
<dt id="pylorax.monitor.LogServer">
|
||||||
<em class="property">class </em><code class="descclassname">pylorax.monitor.</code><code class="descname">LogServer</code><span class="sig-paren">(</span><em>log_path</em>, <em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/monitor.html#LogServer"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.monitor.LogServer" title="Permalink to this definition">¶</a></dt>
|
<em class="property">class </em><code class="descclassname">pylorax.monitor.</code><code class="descname">LogServer</code><span class="sig-paren">(</span><em>log_path</em>, <em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/monitor.html#LogServer"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.monitor.LogServer" title="Permalink to this definition">¶</a></dt>
|
||||||
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/socketserver.html#socketserver.TCPServer" title="(in Python v3.5)"><code class="xref py py-class docutils literal"><span class="pre">socketserver.TCPServer</span></code></a></p>
|
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/socketserver.html#socketserver.TCPServer" title="(in Python v3.6)"><code class="xref py py-class docutils literal"><span class="pre">socketserver.TCPServer</span></code></a></p>
|
||||||
<p>A TCP Server that listens for log data</p>
|
<p>A TCP Server that listens for log data</p>
|
||||||
<dl class="method">
|
<dl class="method">
|
||||||
<dt id="pylorax.monitor.LogServer.log_check">
|
<dt id="pylorax.monitor.LogServer.log_check">
|
||||||
@ -1199,7 +1234,7 @@ errors that indicate that the install failed.</p>
|
|||||||
<tbody valign="top">
|
<tbody valign="top">
|
||||||
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">True if there has been an error</td>
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">True if there has been an error</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.5)">bool</a></td>
|
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.6)">bool</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@ -1218,7 +1253,7 @@ errors that indicate that the install failed.</p>
|
|||||||
<dl class="class">
|
<dl class="class">
|
||||||
<dt id="pylorax.mount.IsoMountpoint">
|
<dt id="pylorax.mount.IsoMountpoint">
|
||||||
<em class="property">class </em><code class="descclassname">pylorax.mount.</code><code class="descname">IsoMountpoint</code><span class="sig-paren">(</span><em>iso_path</em>, <em>initrd_path=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/mount.html#IsoMountpoint"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.mount.IsoMountpoint" title="Permalink to this definition">¶</a></dt>
|
<em class="property">class </em><code class="descclassname">pylorax.mount.</code><code class="descname">IsoMountpoint</code><span class="sig-paren">(</span><em>iso_path</em>, <em>initrd_path=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/mount.html#IsoMountpoint"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.mount.IsoMountpoint" title="Permalink to this definition">¶</a></dt>
|
||||||
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.5)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
|
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.6)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
|
||||||
<p>Mount the iso and check to make sure the vmlinuz and initrd.img files exist</p>
|
<p>Mount the iso and check to make sure the vmlinuz and initrd.img files exist</p>
|
||||||
<p>Also check the iso for a a stage2 image and set a flag and extract the
|
<p>Also check the iso for a a stage2 image and set a flag and extract the
|
||||||
iso’s label.</p>
|
iso’s label.</p>
|
||||||
@ -1285,7 +1320,7 @@ iso’s label.</p>
|
|||||||
<dl class="class">
|
<dl class="class">
|
||||||
<dt id="pylorax.treebuilder.RuntimeBuilder">
|
<dt id="pylorax.treebuilder.RuntimeBuilder">
|
||||||
<em class="property">class </em><code class="descclassname">pylorax.treebuilder.</code><code class="descname">RuntimeBuilder</code><span class="sig-paren">(</span><em>product</em>, <em>arch</em>, <em>dbo</em>, <em>templatedir=None</em>, <em>installpkgs=None</em>, <em>excludepkgs=None</em>, <em>add_templates=None</em>, <em>add_template_vars=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/treebuilder.html#RuntimeBuilder"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.treebuilder.RuntimeBuilder" title="Permalink to this definition">¶</a></dt>
|
<em class="property">class </em><code class="descclassname">pylorax.treebuilder.</code><code class="descname">RuntimeBuilder</code><span class="sig-paren">(</span><em>product</em>, <em>arch</em>, <em>dbo</em>, <em>templatedir=None</em>, <em>installpkgs=None</em>, <em>excludepkgs=None</em>, <em>add_templates=None</em>, <em>add_template_vars=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/treebuilder.html#RuntimeBuilder"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.treebuilder.RuntimeBuilder" title="Permalink to this definition">¶</a></dt>
|
||||||
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.5)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
|
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.6)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
|
||||||
<p>Builds the anaconda runtime image.</p>
|
<p>Builds the anaconda runtime image.</p>
|
||||||
<dl class="method">
|
<dl class="method">
|
||||||
<dt id="pylorax.treebuilder.RuntimeBuilder.cleanup">
|
<dt id="pylorax.treebuilder.RuntimeBuilder.cleanup">
|
||||||
@ -1345,7 +1380,7 @@ iso’s label.</p>
|
|||||||
<dl class="class">
|
<dl class="class">
|
||||||
<dt id="pylorax.treebuilder.TreeBuilder">
|
<dt id="pylorax.treebuilder.TreeBuilder">
|
||||||
<em class="property">class </em><code class="descclassname">pylorax.treebuilder.</code><code class="descname">TreeBuilder</code><span class="sig-paren">(</span><em>product</em>, <em>arch</em>, <em>inroot</em>, <em>outroot</em>, <em>runtime</em>, <em>isolabel</em>, <em>domacboot=True</em>, <em>doupgrade=True</em>, <em>templatedir=None</em>, <em>add_templates=None</em>, <em>add_template_vars=None</em>, <em>workdir=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/treebuilder.html#TreeBuilder"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.treebuilder.TreeBuilder" title="Permalink to this definition">¶</a></dt>
|
<em class="property">class </em><code class="descclassname">pylorax.treebuilder.</code><code class="descname">TreeBuilder</code><span class="sig-paren">(</span><em>product</em>, <em>arch</em>, <em>inroot</em>, <em>outroot</em>, <em>runtime</em>, <em>isolabel</em>, <em>domacboot=True</em>, <em>doupgrade=True</em>, <em>templatedir=None</em>, <em>add_templates=None</em>, <em>add_template_vars=None</em>, <em>workdir=None</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/treebuilder.html#TreeBuilder"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.treebuilder.TreeBuilder" title="Permalink to this definition">¶</a></dt>
|
||||||
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.5)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
|
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.6)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
|
||||||
<p>Builds the arch-specific boot images.
|
<p>Builds the arch-specific boot images.
|
||||||
inroot should be the installtree root (the newly-built runtime dir)</p>
|
inroot should be the installtree root (the newly-built runtime dir)</p>
|
||||||
<dl class="method">
|
<dl class="method">
|
||||||
@ -1432,7 +1467,7 @@ name of the kernel.</p>
|
|||||||
<dl class="class">
|
<dl class="class">
|
||||||
<dt id="pylorax.treeinfo.TreeInfo">
|
<dt id="pylorax.treeinfo.TreeInfo">
|
||||||
<em class="property">class </em><code class="descclassname">pylorax.treeinfo.</code><code class="descname">TreeInfo</code><span class="sig-paren">(</span><em>product</em>, <em>version</em>, <em>variant</em>, <em>basearch</em>, <em>packagedir=''</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/treeinfo.html#TreeInfo"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.treeinfo.TreeInfo" title="Permalink to this definition">¶</a></dt>
|
<em class="property">class </em><code class="descclassname">pylorax.treeinfo.</code><code class="descname">TreeInfo</code><span class="sig-paren">(</span><em>product</em>, <em>version</em>, <em>variant</em>, <em>basearch</em>, <em>packagedir=''</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/treeinfo.html#TreeInfo"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.treeinfo.TreeInfo" title="Permalink to this definition">¶</a></dt>
|
||||||
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.5)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
|
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.6)"><code class="xref py py-class docutils literal"><span class="pre">object</span></code></a></p>
|
||||||
<dl class="method">
|
<dl class="method">
|
||||||
<dt id="pylorax.treeinfo.TreeInfo.add_section">
|
<dt id="pylorax.treeinfo.TreeInfo.add_section">
|
||||||
<code class="descname">add_section</code><span class="sig-paren">(</span><em>section</em>, <em>data</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/treeinfo.html#TreeInfo.add_section"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.treeinfo.TreeInfo.add_section" title="Permalink to this definition">¶</a></dt>
|
<code class="descname">add_section</code><span class="sig-paren">(</span><em>section</em>, <em>data</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylorax/treeinfo.html#TreeInfo.add_section"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylorax.treeinfo.TreeInfo.add_section" title="Permalink to this definition">¶</a></dt>
|
||||||
@ -1454,7 +1489,7 @@ name of the kernel.</p>
|
|||||||
<dd><p>Bases: <a class="reference internal" href="#pylorax.base.DataHolder" title="pylorax.base.DataHolder"><code class="xref py py-class docutils literal"><span class="pre">pylorax.base.DataHolder</span></code></a></p>
|
<dd><p>Bases: <a class="reference internal" href="#pylorax.base.DataHolder" title="pylorax.base.DataHolder"><code class="xref py py-class docutils literal"><span class="pre">pylorax.base.DataHolder</span></code></a></p>
|
||||||
<dl class="attribute">
|
<dl class="attribute">
|
||||||
<dt id="pylorax.ArchData.bcj_arch">
|
<dt id="pylorax.ArchData.bcj_arch">
|
||||||
<code class="descname">bcj_arch</code><em class="property"> = {'ppc': 'powerpc', 'armhfp': 'arm', 'ppc64le': 'powerpc', 'i386': 'x86', 'ppc64': 'powerpc', 'arm': 'arm', 'x86_64': 'x86'}</em><a class="headerlink" href="#pylorax.ArchData.bcj_arch" title="Permalink to this definition">¶</a></dt>
|
<code class="descname">bcj_arch</code><em class="property"> = {'i386': 'x86', 'x86_64': 'x86', 'ppc': 'powerpc', 'ppc64': 'powerpc', 'ppc64le': 'powerpc', 'arm': 'arm', 'armhfp': 'arm'}</em><a class="headerlink" href="#pylorax.ArchData.bcj_arch" title="Permalink to this definition">¶</a></dt>
|
||||||
<dd></dd></dl>
|
<dd></dd></dl>
|
||||||
|
|
||||||
<dl class="attribute">
|
<dl class="attribute">
|
||||||
@ -1506,11 +1541,11 @@ Otherwise use the sharedir</p>
|
|||||||
<col class="field-name" />
|
<col class="field-name" />
|
||||||
<col class="field-body" />
|
<col class="field-body" />
|
||||||
<tbody valign="top">
|
<tbody valign="top">
|
||||||
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>templatedir</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.5)"><em>str</em></a>) – Top directory to search for templates</td>
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>templatedir</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.6)"><em>str</em></a>) – Top directory to search for templates</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">Path to templates</td>
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">Path to templates</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.5)">str</a></td>
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.6)">str</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@ -1533,8 +1568,8 @@ lowest numbered directory entry is returned.</p>
|
|||||||
<col class="field-body" />
|
<col class="field-body" />
|
||||||
<tbody valign="top">
|
<tbody valign="top">
|
||||||
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
|
||||||
<li><strong>logfile</strong> (<a class="reference external" href="https://docs.python.org/3/library/string.html#module-string" title="(in Python v3.5)"><em>string</em></a>) – filename to write the log to</li>
|
<li><strong>logfile</strong> (<a class="reference external" href="https://docs.python.org/3/library/string.html#module-string" title="(in Python v3.6)"><em>string</em></a>) – filename to write the log to</li>
|
||||||
<li><strong>theLogger</strong> (<a class="reference external" href="https://docs.python.org/3/library/logging.html#logging.Logger" title="(in Python v3.5)"><em>logging.Logger</em></a>) – top-level logger</li>
|
<li><strong>theLogger</strong> (<a class="reference external" href="https://docs.python.org/3/library/logging.html#logging.Logger" title="(in Python v3.6)"><em>logging.Logger</em></a>) – top-level logger</li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -1546,6 +1581,9 @@ lowest numbered directory entry is returned.</p>
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="articleComments">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
@ -1553,7 +1591,7 @@ lowest numbered directory entry is returned.</p>
|
|||||||
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
|
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
|
||||||
|
|
||||||
|
|
||||||
<a href="modules.html" class="btn btn-neutral" title="pylorax" accesskey="p"><span class="fa fa-arrow-circle-left"></span> Previous</a>
|
<a href="modules.html" class="btn btn-neutral" title="pylorax" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -1584,10 +1622,11 @@ lowest numbered directory entry is returned.</p>
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var DOCUMENTATION_OPTIONS = {
|
var DOCUMENTATION_OPTIONS = {
|
||||||
URL_ROOT:'./',
|
URL_ROOT:'./',
|
||||||
VERSION:'26.2',
|
VERSION:'28.2',
|
||||||
COLLAPSE_INDEX:false,
|
COLLAPSE_INDEX:false,
|
||||||
FILE_SUFFIX:'.html',
|
FILE_SUFFIX:'.html',
|
||||||
HAS_SOURCE: true
|
HAS_SOURCE: true,
|
||||||
|
SOURCELINK_SUFFIX: '.txt'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="_static/jquery.js"></script>
|
<script type="text/javascript" src="_static/jquery.js"></script>
|
||||||
|
41
search.html
@ -8,7 +8,9 @@
|
|||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<title>Search — Lorax 26.2 documentation</title>
|
<title>Search — Lorax 28.2 documentation</title>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -33,7 +35,7 @@
|
|||||||
<link rel="index" title="Index"
|
<link rel="index" title="Index"
|
||||||
href="genindex.html"/>
|
href="genindex.html"/>
|
||||||
<link rel="search" title="Search" href="#"/>
|
<link rel="search" title="Search" href="#"/>
|
||||||
<link rel="top" title="Lorax 26.2 documentation" href="index.html"/>
|
<link rel="top" title="Lorax 28.2 documentation" href="index.html"/>
|
||||||
|
|
||||||
|
|
||||||
<script src="_static/js/modernizr.min.js"></script>
|
<script src="_static/js/modernizr.min.js"></script>
|
||||||
@ -42,6 +44,7 @@
|
|||||||
|
|
||||||
<body class="wy-body-for-nav" role="document">
|
<body class="wy-body-for-nav" role="document">
|
||||||
|
|
||||||
|
|
||||||
<div class="wy-grid-for-nav">
|
<div class="wy-grid-for-nav">
|
||||||
|
|
||||||
|
|
||||||
@ -61,7 +64,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<div class="version">
|
<div class="version">
|
||||||
26.2
|
28.2
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -82,6 +85,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
<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">Introduction to Lorax</a></li>
|
||||||
<li class="toctree-l1"><a class="reference internal" href="intro.html#before-lorax">Before Lorax</a></li>
|
<li class="toctree-l1"><a class="reference internal" href="intro.html#before-lorax">Before Lorax</a></li>
|
||||||
@ -101,8 +107,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
||||||
|
|
||||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||||
<a href="index.html">Lorax</a>
|
<a href="index.html">Lorax</a>
|
||||||
|
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
||||||
@ -115,15 +123,32 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div role="navigation" aria-label="breadcrumbs navigation">
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
||||||
|
|
||||||
<ul class="wy-breadcrumbs">
|
<ul class="wy-breadcrumbs">
|
||||||
|
|
||||||
<li><a href="index.html">Docs</a> »</li>
|
<li><a href="index.html">Docs</a> »</li>
|
||||||
|
|
||||||
<li></li>
|
<li>Search</li>
|
||||||
|
|
||||||
|
|
||||||
<li class="wy-breadcrumbs-aside">
|
<li class="wy-breadcrumbs-aside">
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||||
@ -143,6 +168,9 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="articleComments">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<footer>
|
<footer>
|
||||||
@ -174,10 +202,11 @@
|
|||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var DOCUMENTATION_OPTIONS = {
|
var DOCUMENTATION_OPTIONS = {
|
||||||
URL_ROOT:'./',
|
URL_ROOT:'./',
|
||||||
VERSION:'26.2',
|
VERSION:'28.2',
|
||||||
COLLAPSE_INDEX:false,
|
COLLAPSE_INDEX:false,
|
||||||
FILE_SUFFIX:'.html',
|
FILE_SUFFIX:'.html',
|
||||||
HAS_SOURCE: true
|
HAS_SOURCE: true,
|
||||||
|
SOURCELINK_SUFFIX: '.txt'
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="_static/jquery.js"></script>
|
<script type="text/javascript" src="_static/jquery.js"></script>
|
||||||
|