38f3e28d77
Use the output of git diff --full-index --binary anaconda-22.20.13-1..anaconda-23.19.10-1 from anaconda's git repository and fix-up merge conflicts.
8163 lines
497 KiB
HTML
Executable File
8163 lines
497 KiB
HTML
Executable File
|
|
|
|
<!DOCTYPE html>
|
|
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
|
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
|
<head>
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>pyanaconda package — Anaconda 23.15 documentation</title>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
|
|
|
|
|
|
|
|
|
|
|
|
<link rel="top" title="Anaconda 23.15 documentation" href="index.html"/>
|
|
<link rel="up" title="pyanaconda" href="modules.html"/>
|
|
<link rel="next" title="pyanaconda.installclasses package" href="pyanaconda.installclasses.html"/>
|
|
<link rel="prev" title="pyanaconda" href="modules.html"/>
|
|
|
|
|
|
<script src="_static/js/modernizr.min.js"></script>
|
|
|
|
</head>
|
|
|
|
<body class="wy-body-for-nav" role="document">
|
|
|
|
<div class="wy-grid-for-nav">
|
|
|
|
|
|
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
|
<div class="wy-side-nav-search">
|
|
|
|
|
|
|
|
<a href="index.html" class="icon icon-home"> Anaconda
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
<div role="search">
|
|
<form id="rtd-search-form" class="wy-form" action="search.html" method="get">
|
|
<input type="text" name="q" placeholder="Search docs" />
|
|
<input type="hidden" name="check_keywords" value="yes" />
|
|
<input type="hidden" name="area" value="default" />
|
|
</form>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
|
|
|
|
|
|
|
<ul class="current">
|
|
<li class="toctree-l1"><a class="reference internal" href="intro.html">Introduction to Anaconda</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="boot-options.html">Anaconda Boot Options</a><ul>
|
|
<li class="toctree-l2"><a class="reference internal" href="boot-options.html#installation-source">Installation Source</a><ul>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#inst-repo">inst.repo</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#inst-stage2">inst.stage2</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#inst-dd">inst.dd</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#inst-multilib">inst.multilib</a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="toctree-l2"><a class="reference internal" href="boot-options.html#kickstart">Kickstart</a><ul>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#inst-ks">inst.ks</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#inst-ks-sendmac">inst.ks.sendmac</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#inst-ks-sendsn">inst.ks.sendsn</a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="toctree-l2"><a class="reference internal" href="boot-options.html#network-options">Network Options</a><ul>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#ip">ip</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#nameserver">nameserver</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#bootdev">bootdev</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#ifname">ifname</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#inst-dhcpclass">inst.dhcpclass</a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="toctree-l2"><a class="reference internal" href="boot-options.html#console-display-options">Console / Display Options</a><ul>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#console">console</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#inst-lang">inst.lang</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#inst-geoloc">inst.geoloc</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#inst-keymap">inst.keymap</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#inst-cmdline">inst.cmdline</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#inst-graphical">inst.graphical</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#inst-text">inst.text</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#inst-resolution">inst.resolution</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#inst-vnc">inst.vnc</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#inst-vncpassword">inst.vncpassword</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#inst-vncconnect">inst.vncconnect</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#inst-headless">inst.headless</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#inst-xdriver">inst.xdriver</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#inst-usefbx">inst.usefbx</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#inst-sshd">inst.sshd</a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="toctree-l2"><a class="reference internal" href="boot-options.html#debugging-and-troubleshooting">Debugging and Troubleshooting</a><ul>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#inst-rescue">inst.rescue</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#inst-updates">inst.updates</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#inst-loglevel">inst.loglevel</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#inst-syslog">inst.syslog</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#inst-virtiolog">inst.virtiolog</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#inst-zram">inst.zram</a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="toctree-l2"><a class="reference internal" href="boot-options.html#deprecated-options">Deprecated Options</a><ul>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#method">method</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#repo-nfsiso">repo=nfsiso:...</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#dns">dns</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#netmask-gateway-hostname">netmask, gateway, hostname</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#ip-bootif">ip=bootif</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#ksdevice">ksdevice</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#blacklist-nofirewire">blacklist, nofirewire</a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="toctree-l2"><a class="reference internal" href="boot-options.html#removed-options">Removed Options</a><ul>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#askmethod-asknetwork">askmethod, asknetwork</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#id5">serial</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#updates">updates</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#essid-wepkey-wpakey">essid, wepkey, wpakey</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#ethtool">ethtool</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#gdb">gdb</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#inst-mediacheck">inst.mediacheck</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#ks-floppy">ks=floppy</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#display">display</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#utf8">utf8</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#noipv6">noipv6</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="boot-options.html#upgradeany">upgradeany</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="kickstart.html">Anaconda Kickstart Documentation</a><ul>
|
|
<li class="toctree-l2"><a class="reference internal" href="kickstart.html#pwpolicy">pwpolicy</a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="commit-log.html">Rules for commit messages</a></li>
|
|
<li class="toctree-l1"><a class="reference internal" href="driverdisc.html">Brief description of DriverDisc version 3</a><ul>
|
|
<li class="toctree-l2"><a class="reference internal" href="driverdisc.html#devices-which-can-contain-dds">Devices which can contain DDs</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="driverdisc.html#what-can-be-updated-using-dds">What can be updated using DDs?</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="driverdisc.html#selecting-dd-manually">Selecting DD manually</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="driverdisc.html#automatic-driverdisc-detection">Automatic DriverDisc detection</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="driverdisc.html#ddv3-structure">DDv3 structure</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="driverdisc.html#initrd-overlay-driverdisc-image">Initrd overlay driverdisc image</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="driverdisc.html#firmware-and-module-update">Firmware and module update</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="driverdisc.html#package-installation">Package installation</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="driverdisc.html#summary">Summary</a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="iscsi.html">iSCSI and Anaconda</a><ul>
|
|
<li class="toctree-l2"><a class="reference internal" href="iscsi.html#introduction">Introduction</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="iscsi.html#what-is-expected-from-anaconda">What is expected from Anaconda</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="iscsi.html#how-anaconda-handles-iscsi">How Anaconda handles iscsi</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="iscsi.html#libiscsi">Libiscsi</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="iscsi.html#debugging-iscsi-bugs">Debugging iSCSI bugs</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="iscsi.html#future-of-iscsi-in-anaconda">Future of iSCSI in Anaconda</a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="multipath.html">Multipath and Anaconda</a><ul>
|
|
<li class="toctree-l2"><a class="reference internal" href="multipath.html#introduction">Introduction</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="multipath.html#what-is-expected-from-anaconda">What is expected from Anaconda</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="multipath.html#how-anaconda-handles-multipath">How Anaconda handles multipath</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="multipath.html#debugging-multipath-bugs">Debugging multipath bugs</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="multipath.html#future-of-multipath-in-anaconda">Future of multipath in Anaconda</a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="toctree-l1 current"><a class="reference internal" href="modules.html">pyanaconda</a><ul class="current">
|
|
<li class="toctree-l2 current"><a class="current reference internal" href="">pyanaconda package</a><ul>
|
|
<li class="toctree-l3"><a class="reference internal" href="#subpackages">Subpackages</a><ul>
|
|
<li class="toctree-l4"><a class="reference internal" href="pyanaconda.installclasses.html">pyanaconda.installclasses package</a></li>
|
|
<li class="toctree-l4"><a class="reference internal" href="pyanaconda.isys.html">pyanaconda.isys package</a></li>
|
|
<li class="toctree-l4"><a class="reference internal" href="pyanaconda.packaging.html">pyanaconda.packaging package</a></li>
|
|
<li class="toctree-l4"><a class="reference internal" href="pyanaconda.ui.html">pyanaconda.ui package</a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#submodules">Submodules</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.addons">pyanaconda.addons module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.anaconda">pyanaconda.anaconda module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.anaconda_argparse">pyanaconda.anaconda_argparse module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.anaconda_log">pyanaconda.anaconda_log module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.bootloader">pyanaconda.bootloader module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.constants">pyanaconda.constants module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.constants_text">pyanaconda.constants_text module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.desktop">pyanaconda.desktop module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.errors">pyanaconda.errors module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.exception">pyanaconda.exception module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.flags">pyanaconda.flags module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.geoloc">pyanaconda.geoloc module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.i18n">pyanaconda.i18n module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.ihelp">pyanaconda.ihelp module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.image">pyanaconda.image module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.install">pyanaconda.install module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.installclass">pyanaconda.installclass module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.installinterfacebase">pyanaconda.installinterfacebase module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.iutil">pyanaconda.iutil module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.kexec">pyanaconda.kexec module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.keyboard">pyanaconda.keyboard module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.kickstart">pyanaconda.kickstart module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.localization">pyanaconda.localization module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.network">pyanaconda.network module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.nm">pyanaconda.nm module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.ntp">pyanaconda.ntp module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.orderedset">pyanaconda.orderedset module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.product">pyanaconda.product module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.progress">pyanaconda.progress module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.pwpolicy">pyanaconda.pwpolicy module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.queuefactory">pyanaconda.queuefactory module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.regexes">pyanaconda.regexes module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.rescue">pyanaconda.rescue module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.safe_dbus">pyanaconda.safe_dbus module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.screensaver">pyanaconda.screensaver module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.simpleconfig">pyanaconda.simpleconfig module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.startup_utils">pyanaconda.startup_utils module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.storage_utils">pyanaconda.storage_utils module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.text">pyanaconda.text module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.threads">pyanaconda.threads module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.timezone">pyanaconda.timezone module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.users">pyanaconda.users module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.version">pyanaconda.version module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda.vnc">pyanaconda.vnc module</a></li>
|
|
<li class="toctree-l3"><a class="reference internal" href="#module-pyanaconda">Module contents</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
|
|
|
|
|
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
|
<a href="index.html">Anaconda</a>
|
|
</nav>
|
|
|
|
|
|
|
|
<div class="wy-nav-content">
|
|
<div class="rst-content">
|
|
<div role="navigation" aria-label="breadcrumbs navigation">
|
|
<ul class="wy-breadcrumbs">
|
|
<li><a href="index.html">Docs</a> »</li>
|
|
|
|
<li><a href="modules.html">pyanaconda</a> »</li>
|
|
|
|
<li>pyanaconda package</li>
|
|
<li class="wy-breadcrumbs-aside">
|
|
|
|
|
|
<a href="_sources/pyanaconda.txt" rel="nofollow"> View page source</a>
|
|
|
|
|
|
</li>
|
|
</ul>
|
|
<hr/>
|
|
</div>
|
|
<div role="main" class="document">
|
|
|
|
<div class="section" id="pyanaconda-package">
|
|
<h1>pyanaconda package<a class="headerlink" href="#pyanaconda-package" title="Permalink to this headline">¶</a></h1>
|
|
<div class="section" id="subpackages">
|
|
<h2>Subpackages<a class="headerlink" href="#subpackages" title="Permalink to this headline">¶</a></h2>
|
|
<div class="toctree-wrapper compound">
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="pyanaconda.installclasses.html">pyanaconda.installclasses package</a><ul>
|
|
<li class="toctree-l2"><a class="reference internal" href="pyanaconda.installclasses.html#submodules">Submodules</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="pyanaconda.installclasses.html#module-pyanaconda.installclasses.fedora">pyanaconda.installclasses.fedora module</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="pyanaconda.installclasses.html#module-pyanaconda.installclasses.rhel">pyanaconda.installclasses.rhel module</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="pyanaconda.installclasses.html#module-pyanaconda.installclasses">Module contents</a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="pyanaconda.isys.html">pyanaconda.isys package</a><ul>
|
|
<li class="toctree-l2"><a class="reference internal" href="pyanaconda.isys.html#module-pyanaconda.isys">Module contents</a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="pyanaconda.packaging.html">pyanaconda.packaging package</a><ul>
|
|
<li class="toctree-l2"><a class="reference internal" href="pyanaconda.packaging.html#submodules">Submodules</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="pyanaconda.packaging.html#module-pyanaconda.packaging.dnfpayload">pyanaconda.packaging.dnfpayload module</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="pyanaconda.packaging.html#module-pyanaconda.packaging.livepayload">pyanaconda.packaging.livepayload module</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="pyanaconda.packaging.html#module-pyanaconda.packaging.rpmostreepayload">pyanaconda.packaging.rpmostreepayload module</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="pyanaconda.packaging.html#module-pyanaconda.packaging.tarpayload">pyanaconda.packaging.tarpayload module</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="pyanaconda.packaging.html#module-pyanaconda.packaging">Module contents</a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="pyanaconda.ui.html">pyanaconda.ui package</a><ul>
|
|
<li class="toctree-l2"><a class="reference internal" href="pyanaconda.ui.html#subpackages">Subpackages</a><ul>
|
|
<li class="toctree-l3"><a class="reference internal" href="pyanaconda.ui.categories.html">pyanaconda.ui.categories package</a><ul>
|
|
<li class="toctree-l4"><a class="reference internal" href="pyanaconda.ui.categories.html#submodules">Submodules</a></li>
|
|
<li class="toctree-l4"><a class="reference internal" href="pyanaconda.ui.categories.html#module-pyanaconda.ui.categories.customization">pyanaconda.ui.categories.customization module</a></li>
|
|
<li class="toctree-l4"><a class="reference internal" href="pyanaconda.ui.categories.html#module-pyanaconda.ui.categories.localization">pyanaconda.ui.categories.localization module</a></li>
|
|
<li class="toctree-l4"><a class="reference internal" href="pyanaconda.ui.categories.html#module-pyanaconda.ui.categories.software">pyanaconda.ui.categories.software module</a></li>
|
|
<li class="toctree-l4"><a class="reference internal" href="pyanaconda.ui.categories.html#module-pyanaconda.ui.categories.system">pyanaconda.ui.categories.system module</a></li>
|
|
<li class="toctree-l4"><a class="reference internal" href="pyanaconda.ui.categories.html#module-pyanaconda.ui.categories.user_settings">pyanaconda.ui.categories.user_settings module</a></li>
|
|
<li class="toctree-l4"><a class="reference internal" href="pyanaconda.ui.categories.html#module-pyanaconda.ui.categories">Module contents</a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="toctree-l3"><a class="reference internal" href="pyanaconda.ui.gui.html">pyanaconda.ui.gui package</a><ul>
|
|
<li class="toctree-l4"><a class="reference internal" href="pyanaconda.ui.gui.html#subpackages">Subpackages</a><ul>
|
|
<li class="toctree-l5"><a class="reference internal" href="pyanaconda.ui.gui.hubs.html">pyanaconda.ui.gui.hubs package</a><ul>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.gui.hubs.html#submodules">Submodules</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.gui.hubs.html#module-pyanaconda.ui.gui.hubs.progress">pyanaconda.ui.gui.hubs.progress module</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.gui.hubs.html#module-pyanaconda.ui.gui.hubs.summary">pyanaconda.ui.gui.hubs.summary module</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.gui.hubs.html#module-pyanaconda.ui.gui.hubs">Module contents</a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="toctree-l5"><a class="reference internal" href="pyanaconda.ui.gui.spokes.html">pyanaconda.ui.gui.spokes package</a><ul>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.gui.spokes.html#subpackages">Subpackages</a><ul>
|
|
<li class="toctree-l7"><a class="reference internal" href="pyanaconda.ui.gui.spokes.advstorage.html">pyanaconda.ui.gui.spokes.advstorage package</a><ul>
|
|
<li class="toctree-l8"><a class="reference internal" href="pyanaconda.ui.gui.spokes.advstorage.html#submodules">Submodules</a></li>
|
|
<li class="toctree-l8"><a class="reference internal" href="pyanaconda.ui.gui.spokes.advstorage.html#module-pyanaconda.ui.gui.spokes.advstorage.dasd">pyanaconda.ui.gui.spokes.advstorage.dasd module</a></li>
|
|
<li class="toctree-l8"><a class="reference internal" href="pyanaconda.ui.gui.spokes.advstorage.html#module-pyanaconda.ui.gui.spokes.advstorage.fcoe">pyanaconda.ui.gui.spokes.advstorage.fcoe module</a></li>
|
|
<li class="toctree-l8"><a class="reference internal" href="pyanaconda.ui.gui.spokes.advstorage.html#module-pyanaconda.ui.gui.spokes.advstorage.iscsi">pyanaconda.ui.gui.spokes.advstorage.iscsi module</a></li>
|
|
<li class="toctree-l8"><a class="reference internal" href="pyanaconda.ui.gui.spokes.advstorage.html#module-pyanaconda.ui.gui.spokes.advstorage.zfcp">pyanaconda.ui.gui.spokes.advstorage.zfcp module</a></li>
|
|
<li class="toctree-l8"><a class="reference internal" href="pyanaconda.ui.gui.spokes.advstorage.html#module-pyanaconda.ui.gui.spokes.advstorage">Module contents</a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="toctree-l7"><a class="reference internal" href="pyanaconda.ui.gui.spokes.lib.html">pyanaconda.ui.gui.spokes.lib package</a><ul>
|
|
<li class="toctree-l8"><a class="reference internal" href="pyanaconda.ui.gui.spokes.lib.html#submodules">Submodules</a></li>
|
|
<li class="toctree-l8"><a class="reference internal" href="pyanaconda.ui.gui.spokes.lib.html#module-pyanaconda.ui.gui.spokes.lib.accordion">pyanaconda.ui.gui.spokes.lib.accordion module</a></li>
|
|
<li class="toctree-l8"><a class="reference internal" href="pyanaconda.ui.gui.spokes.lib.html#module-pyanaconda.ui.gui.spokes.lib.cart">pyanaconda.ui.gui.spokes.lib.cart module</a></li>
|
|
<li class="toctree-l8"><a class="reference internal" href="pyanaconda.ui.gui.spokes.lib.html#module-pyanaconda.ui.gui.spokes.lib.custom_storage_helpers">pyanaconda.ui.gui.spokes.lib.custom_storage_helpers module</a></li>
|
|
<li class="toctree-l8"><a class="reference internal" href="pyanaconda.ui.gui.spokes.lib.html#module-pyanaconda.ui.gui.spokes.lib.dasdfmt">pyanaconda.ui.gui.spokes.lib.dasdfmt module</a></li>
|
|
<li class="toctree-l8"><a class="reference internal" href="pyanaconda.ui.gui.spokes.lib.html#module-pyanaconda.ui.gui.spokes.lib.detailederror">pyanaconda.ui.gui.spokes.lib.detailederror module</a></li>
|
|
<li class="toctree-l8"><a class="reference internal" href="pyanaconda.ui.gui.spokes.lib.html#module-pyanaconda.ui.gui.spokes.lib.entropy_dialog">pyanaconda.ui.gui.spokes.lib.entropy_dialog module</a></li>
|
|
<li class="toctree-l8"><a class="reference internal" href="pyanaconda.ui.gui.spokes.lib.html#module-pyanaconda.ui.gui.spokes.lib.lang_locale_handler">pyanaconda.ui.gui.spokes.lib.lang_locale_handler module</a></li>
|
|
<li class="toctree-l8"><a class="reference internal" href="pyanaconda.ui.gui.spokes.lib.html#module-pyanaconda.ui.gui.spokes.lib.passphrase">pyanaconda.ui.gui.spokes.lib.passphrase module</a></li>
|
|
<li class="toctree-l8"><a class="reference internal" href="pyanaconda.ui.gui.spokes.lib.html#module-pyanaconda.ui.gui.spokes.lib.refresh">pyanaconda.ui.gui.spokes.lib.refresh module</a></li>
|
|
<li class="toctree-l8"><a class="reference internal" href="pyanaconda.ui.gui.spokes.lib.html#module-pyanaconda.ui.gui.spokes.lib.resize">pyanaconda.ui.gui.spokes.lib.resize module</a></li>
|
|
<li class="toctree-l8"><a class="reference internal" href="pyanaconda.ui.gui.spokes.lib.html#module-pyanaconda.ui.gui.spokes.lib.summary">pyanaconda.ui.gui.spokes.lib.summary module</a></li>
|
|
<li class="toctree-l8"><a class="reference internal" href="pyanaconda.ui.gui.spokes.lib.html#module-pyanaconda.ui.gui.spokes.lib">Module contents</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.gui.spokes.html#submodules">Submodules</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.gui.spokes.html#module-pyanaconda.ui.gui.spokes.custom">pyanaconda.ui.gui.spokes.custom module</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.gui.spokes.html#module-pyanaconda.ui.gui.spokes.datetime_spoke">pyanaconda.ui.gui.spokes.datetime_spoke module</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.gui.spokes.html#module-pyanaconda.ui.gui.spokes.filter">pyanaconda.ui.gui.spokes.filter module</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.gui.spokes.html#module-pyanaconda.ui.gui.spokes.keyboard">pyanaconda.ui.gui.spokes.keyboard module</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.gui.spokes.html#module-pyanaconda.ui.gui.spokes.langsupport">pyanaconda.ui.gui.spokes.langsupport module</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.gui.spokes.html#module-pyanaconda.ui.gui.spokes.network">pyanaconda.ui.gui.spokes.network module</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.gui.spokes.html#module-pyanaconda.ui.gui.spokes.password">pyanaconda.ui.gui.spokes.password module</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.gui.spokes.html#module-pyanaconda.ui.gui.spokes.software">pyanaconda.ui.gui.spokes.software module</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.gui.spokes.html#module-pyanaconda.ui.gui.spokes.source">pyanaconda.ui.gui.spokes.source module</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.gui.spokes.html#module-pyanaconda.ui.gui.spokes.storage">pyanaconda.ui.gui.spokes.storage module</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.gui.spokes.html#module-pyanaconda.ui.gui.spokes.user">pyanaconda.ui.gui.spokes.user module</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.gui.spokes.html#module-pyanaconda.ui.gui.spokes.welcome">pyanaconda.ui.gui.spokes.welcome module</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.gui.spokes.html#module-pyanaconda.ui.gui.spokes">Module contents</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li class="toctree-l4"><a class="reference internal" href="pyanaconda.ui.gui.html#submodules">Submodules</a></li>
|
|
<li class="toctree-l4"><a class="reference internal" href="pyanaconda.ui.gui.html#module-pyanaconda.ui.gui.helpers">pyanaconda.ui.gui.helpers module</a></li>
|
|
<li class="toctree-l4"><a class="reference internal" href="pyanaconda.ui.gui.html#module-pyanaconda.ui.gui.utils">pyanaconda.ui.gui.utils module</a></li>
|
|
<li class="toctree-l4"><a class="reference internal" href="pyanaconda.ui.gui.html#module-pyanaconda.ui.gui.xkl_wrapper">pyanaconda.ui.gui.xkl_wrapper module</a></li>
|
|
<li class="toctree-l4"><a class="reference internal" href="pyanaconda.ui.gui.html#module-pyanaconda.ui.gui">Module contents</a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="toctree-l3"><a class="reference internal" href="pyanaconda.ui.lib.html">pyanaconda.ui.lib package</a><ul>
|
|
<li class="toctree-l4"><a class="reference internal" href="pyanaconda.ui.lib.html#submodules">Submodules</a></li>
|
|
<li class="toctree-l4"><a class="reference internal" href="pyanaconda.ui.lib.html#module-pyanaconda.ui.lib.disks">pyanaconda.ui.lib.disks module</a></li>
|
|
<li class="toctree-l4"><a class="reference internal" href="pyanaconda.ui.lib.html#module-pyanaconda.ui.lib.entropy">pyanaconda.ui.lib.entropy module</a></li>
|
|
<li class="toctree-l4"><a class="reference internal" href="pyanaconda.ui.lib.html#module-pyanaconda.ui.lib.space">pyanaconda.ui.lib.space module</a></li>
|
|
<li class="toctree-l4"><a class="reference internal" href="pyanaconda.ui.lib.html#module-pyanaconda.ui.lib">Module contents</a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="toctree-l3"><a class="reference internal" href="pyanaconda.ui.tui.html">pyanaconda.ui.tui package</a><ul>
|
|
<li class="toctree-l4"><a class="reference internal" href="pyanaconda.ui.tui.html#subpackages">Subpackages</a><ul>
|
|
<li class="toctree-l5"><a class="reference internal" href="pyanaconda.ui.tui.hubs.html">pyanaconda.ui.tui.hubs package</a><ul>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.tui.hubs.html#submodules">Submodules</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.tui.hubs.html#module-pyanaconda.ui.tui.hubs.summary">pyanaconda.ui.tui.hubs.summary module</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.tui.hubs.html#module-pyanaconda.ui.tui.hubs">Module contents</a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="toctree-l5"><a class="reference internal" href="pyanaconda.ui.tui.simpleline.html">pyanaconda.ui.tui.simpleline package</a><ul>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.tui.simpleline.html#submodules">Submodules</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.tui.simpleline.html#module-pyanaconda.ui.tui.simpleline.base">pyanaconda.ui.tui.simpleline.base module</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.tui.simpleline.html#module-pyanaconda.ui.tui.simpleline.widgets">pyanaconda.ui.tui.simpleline.widgets module</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.tui.simpleline.html#module-pyanaconda.ui.tui.simpleline">Module contents</a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="toctree-l5"><a class="reference internal" href="pyanaconda.ui.tui.spokes.html">pyanaconda.ui.tui.spokes package</a><ul>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.tui.spokes.html#submodules">Submodules</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.tui.spokes.html#module-pyanaconda.ui.tui.spokes.askvnc">pyanaconda.ui.tui.spokes.askvnc module</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.tui.spokes.html#module-pyanaconda.ui.tui.spokes.langsupport">pyanaconda.ui.tui.spokes.langsupport module</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.tui.spokes.html#module-pyanaconda.ui.tui.spokes.network">pyanaconda.ui.tui.spokes.network module</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.tui.spokes.html#module-pyanaconda.ui.tui.spokes.password">pyanaconda.ui.tui.spokes.password module</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.tui.spokes.html#module-pyanaconda.ui.tui.spokes.progress">pyanaconda.ui.tui.spokes.progress module</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.tui.spokes.html#module-pyanaconda.ui.tui.spokes.shell_spoke">pyanaconda.ui.tui.spokes.shell_spoke module</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.tui.spokes.html#module-pyanaconda.ui.tui.spokes.software">pyanaconda.ui.tui.spokes.software module</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.tui.spokes.html#module-pyanaconda.ui.tui.spokes.source">pyanaconda.ui.tui.spokes.source module</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.tui.spokes.html#module-pyanaconda.ui.tui.spokes.storage">pyanaconda.ui.tui.spokes.storage module</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.tui.spokes.html#module-pyanaconda.ui.tui.spokes.time_spoke">pyanaconda.ui.tui.spokes.time_spoke module</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.tui.spokes.html#module-pyanaconda.ui.tui.spokes.user">pyanaconda.ui.tui.spokes.user module</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.tui.spokes.html#module-pyanaconda.ui.tui.spokes.warnings_spoke">pyanaconda.ui.tui.spokes.warnings_spoke module</a></li>
|
|
<li class="toctree-l6"><a class="reference internal" href="pyanaconda.ui.tui.spokes.html#module-pyanaconda.ui.tui.spokes">Module contents</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li class="toctree-l4"><a class="reference internal" href="pyanaconda.ui.tui.html#submodules">Submodules</a></li>
|
|
<li class="toctree-l4"><a class="reference internal" href="pyanaconda.ui.tui.html#module-pyanaconda.ui.tui.tuiobject">pyanaconda.ui.tui.tuiobject module</a></li>
|
|
<li class="toctree-l4"><a class="reference internal" href="pyanaconda.ui.tui.html#module-pyanaconda.ui.tui">Module contents</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li class="toctree-l2"><a class="reference internal" href="pyanaconda.ui.html#submodules">Submodules</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="pyanaconda.ui.html#module-pyanaconda.ui.common">pyanaconda.ui.common module</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="pyanaconda.ui.html#module-pyanaconda.ui.communication">pyanaconda.ui.communication module</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="pyanaconda.ui.html#module-pyanaconda.ui.helpers">pyanaconda.ui.helpers module</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="pyanaconda.ui.html#module-pyanaconda.ui">Module contents</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="submodules">
|
|
<h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this headline">¶</a></h2>
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.addons">
|
|
<span id="pyanaconda-addons-module"></span><h2>pyanaconda.addons module<a class="headerlink" href="#module-pyanaconda.addons" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="class">
|
|
<dt id="pyanaconda.addons.AddonSection">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.addons.</tt><tt class="descname">AddonSection</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.addons.AddonSection" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.sections.Section</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.addons.AddonSection.finalize">
|
|
<tt class="descname">finalize</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.addons.AddonSection.finalize" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Let addon know no additional data will come.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.addons.AddonSection.handleHeader">
|
|
<tt class="descname">handleHeader</tt><big>(</big><em>lineno</em>, <em>args</em><big>)</big><a class="headerlink" href="#pyanaconda.addons.AddonSection.handleHeader" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Process the arguments to the %addon header.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.addons.AddonSection.handleLine">
|
|
<tt class="descname">handleLine</tt><big>(</big><em>line</em><big>)</big><a class="headerlink" href="#pyanaconda.addons.AddonSection.handleLine" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.addons.AddonSection.sectionOpen">
|
|
<tt class="descname">sectionOpen</tt><em class="property"> = '%addon'</em><a class="headerlink" href="#pyanaconda.addons.AddonSection.sectionOpen" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.addons.AddonRegistry">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.addons.</tt><tt class="descname">AddonRegistry</tt><big>(</big><em>dictionary</em><big>)</big><a class="headerlink" href="#pyanaconda.addons.AddonRegistry" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
<p>This class represents the ksdata.addons object and
|
|
maintains the ids and data structures for loaded
|
|
addons.</p>
|
|
<p>It acts as a proxy during kickstart save.</p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.addons.AddonRegistry.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>storage</em>, <em>ksdata</em>, <em>instClass</em>, <em>users</em><big>)</big><a class="headerlink" href="#pyanaconda.addons.AddonRegistry.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>This method calls execute on all the registered addons.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.addons.AddonRegistry.setup">
|
|
<tt class="descname">setup</tt><big>(</big><em>storage</em>, <em>ksdata</em>, <em>instClass</em><big>)</big><a class="headerlink" href="#pyanaconda.addons.AddonRegistry.setup" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>This method calls setup on all the registered addons.</p>
|
|
</dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.addons.AddonData">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.addons.</tt><tt class="descname">AddonData</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#pyanaconda.addons.AddonData" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
<p>This is a common parent class for loading and storing
|
|
3rd party data to kickstart. It is instantiated by
|
|
kickstart parser and stored as ksdata.addons.<name>
|
|
to be used in the user interfaces.</p>
|
|
<p>The mandatory method handle_line receives all lines
|
|
from the corresponding addon section in kickstart and
|
|
the mandatory __str__ implementation is responsible for
|
|
returning the proper kickstart text (to be placed into
|
|
the %addon section) back.</p>
|
|
<p>There is also a mandatory method execute, which should
|
|
make all the described changes to the installed system.</p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.addons.AddonData.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>storage</em>, <em>ksdata</em>, <em>instClass</em>, <em>users</em><big>)</big><a class="headerlink" href="#pyanaconda.addons.AddonData.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Make the changes to the underlying system.</p>
|
|
<p>This method is called only once in the post-install
|
|
setup phase.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.addons.AddonData.finalize">
|
|
<tt class="descname">finalize</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.addons.AddonData.finalize" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>No additional data will come.</p>
|
|
<p>Addon should check if all mandatory attributes were populated.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.addons.AddonData.handle_header">
|
|
<tt class="descname">handle_header</tt><big>(</big><em>lineno</em>, <em>args</em><big>)</big><a class="headerlink" href="#pyanaconda.addons.AddonData.handle_header" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Process additional arguments to the %addon line.</p>
|
|
<p>This function receives any arguments on the %addon line after the
|
|
addon ID. For example, for the line:</p>
|
|
<blockquote>
|
|
<div>%addon com_example_foo –argument=’example’</div></blockquote>
|
|
<p>This function would be called with args=[“–argument=’example’”].</p>
|
|
<p>By default AddonData.handle_header just preserves the passed
|
|
arguments by storing them and adding them to the __str__ output.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.addons.AddonData.handle_line">
|
|
<tt class="descname">handle_line</tt><big>(</big><em>line</em><big>)</big><a class="headerlink" href="#pyanaconda.addons.AddonData.handle_line" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Process one kickstart line.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.addons.AddonData.setup">
|
|
<tt class="descname">setup</tt><big>(</big><em>storage</em>, <em>ksdata</em>, <em>instClass</em><big>)</big><a class="headerlink" href="#pyanaconda.addons.AddonData.setup" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Make the changes to the install system.</p>
|
|
<p>This method is called before the installation
|
|
is started and directly from spokes. It must be possible
|
|
to call it multiple times without breaking the environment.</p>
|
|
</dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.addons.collect_addon_paths">
|
|
<tt class="descclassname">pyanaconda.addons.</tt><tt class="descname">collect_addon_paths</tt><big>(</big><em>toplevel_addon_paths</em>, <em>ui_subdir='gui'</em><big>)</big><a class="headerlink" href="#pyanaconda.addons.collect_addon_paths" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>This method looks into the directories present
|
|
in toplevel_addon_paths and registers each subdirectory
|
|
as a new addon identified by that subdirectory name.</p>
|
|
<p>It then registers spokes, categories and data (ks)
|
|
paths for the application to use. By default is looks
|
|
for spokes and categories in <addon>/gui/ subdirectory
|
|
but that can be changed using the ui_subdir argument.</p>
|
|
</dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.anaconda">
|
|
<span id="pyanaconda-anaconda-module"></span><h2>pyanaconda.anaconda module<a class="headerlink" href="#module-pyanaconda.anaconda" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="class">
|
|
<dt id="pyanaconda.anaconda.Anaconda">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.anaconda.</tt><tt class="descname">Anaconda</tt><a class="headerlink" href="#pyanaconda.anaconda.Anaconda" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.anaconda.Anaconda.bootloader">
|
|
<tt class="descname">bootloader</tt><a class="headerlink" href="#pyanaconda.anaconda.Anaconda.bootloader" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.anaconda.Anaconda.dumpState">
|
|
<tt class="descname">dumpState</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.anaconda.Anaconda.dumpState" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.anaconda.Anaconda.initInterface">
|
|
<tt class="descname">initInterface</tt><big>(</big><em>addon_paths=None</em><big>)</big><a class="headerlink" href="#pyanaconda.anaconda.Anaconda.initInterface" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.anaconda.Anaconda.instClass">
|
|
<tt class="descname">instClass</tt><a class="headerlink" href="#pyanaconda.anaconda.Anaconda.instClass" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.anaconda.Anaconda.intf">
|
|
<tt class="descname">intf</tt><a class="headerlink" href="#pyanaconda.anaconda.Anaconda.intf" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.anaconda.Anaconda.payload">
|
|
<tt class="descname">payload</tt><a class="headerlink" href="#pyanaconda.anaconda.Anaconda.payload" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.anaconda.Anaconda.protected">
|
|
<tt class="descname">protected</tt><a class="headerlink" href="#pyanaconda.anaconda.Anaconda.protected" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.anaconda.Anaconda.storage">
|
|
<tt class="descname">storage</tt><a class="headerlink" href="#pyanaconda.anaconda.Anaconda.storage" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.anaconda.Anaconda.writeXdriver">
|
|
<tt class="descname">writeXdriver</tt><big>(</big><em>root=None</em><big>)</big><a class="headerlink" href="#pyanaconda.anaconda.Anaconda.writeXdriver" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.anaconda_argparse">
|
|
<span id="pyanaconda-anaconda-argparse-module"></span><h2>pyanaconda.anaconda_argparse module<a class="headerlink" href="#module-pyanaconda.anaconda_argparse" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="class">
|
|
<dt id="pyanaconda.anaconda_argparse.AnacondaArgumentParser">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.anaconda_argparse.</tt><tt class="descname">AnacondaArgumentParser</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.anaconda_argparse.AnacondaArgumentParser" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/argparse.html#argparse.ArgumentParser" title="(in Python v3.4)"><tt class="xref py py-class docutils literal"><span class="pre">argparse.ArgumentParser</span></tt></a></p>
|
|
<p>Subclass of ArgumentParser that also examines boot arguments.</p>
|
|
<p>If the “bootarg_prefix” keyword argument is set, it’s assumed that all
|
|
bootargs will start with that prefix.</p>
|
|
<dl class="docutils">
|
|
<dt>“require_prefix” is a bool:</dt>
|
|
<dd>False: accept the argument with or without the prefix.
|
|
True: ignore the argument without the prefix. (default)</dd>
|
|
</dl>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.anaconda_argparse.AnacondaArgumentParser.add_argument">
|
|
<tt class="descname">add_argument</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.anaconda_argparse.AnacondaArgumentParser.add_argument" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Add a new option - like ArgumentParser.add_argument.</p>
|
|
<p>The long options will be added to the list of boot args, unless
|
|
the keyword argument ‘bootarg’ is set to False.</p>
|
|
<p>Positional arguments that don’t start with ‘-‘ are considered extra
|
|
boot args to look for.</p>
|
|
<p>NOTE: conflict_handler is currently ignored for boot args - they will
|
|
always raise ArgumentError if they conflict.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.anaconda_argparse.AnacondaArgumentParser.parse_args">
|
|
<tt class="descname">parse_args</tt><big>(</big><em>args=None</em>, <em>boot_cmdline=None</em><big>)</big><a class="headerlink" href="#pyanaconda.anaconda_argparse.AnacondaArgumentParser.parse_args" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Like ArgumentParser.parse_args(), but also parses the boot cmdline.
|
|
(see parse_boot_cmdline for details on that process.)
|
|
Program cmdline arguments will override boot cmdline arguments.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
|
|
<li><strong>args</strong> (<em>string or None</em>) – program command line arguments</li>
|
|
<li><strong>boot_cmdline</strong> (<em>string, dict or None</em>) – the Anaconda boot command line arguments</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">an argparse Namespace instance</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">Namespace</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.anaconda_argparse.AnacondaArgumentParser.parse_boot_cmdline">
|
|
<tt class="descname">parse_boot_cmdline</tt><big>(</big><em>boot_cmdline</em><big>)</big><a class="headerlink" href="#pyanaconda.anaconda_argparse.AnacondaArgumentParser.parse_boot_cmdline" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Parse the boot cmdline and create an appropriate Namespace instance
|
|
according to the option definitions set by add_argument.</p>
|
|
<p>boot_cmdline can be given as a string (to be parsed by BootArgs), or a
|
|
dict (or any object with .items()) of {bootarg:value} pairs.</p>
|
|
<p>If boot_cmdline is None, the boot_cmdline data will be whatever BootArgs reads
|
|
by default (/proc/cmdline, /run/initramfs/etc/cmdline, /etc/cmdline).</p>
|
|
<p>If an option requires a value but the boot arg doesn’t provide one,
|
|
we’ll quietly not set anything in the Namespace. We also skip any boot options
|
|
that were not specified by add_argument as we don’t care about them
|
|
(there will usually be quite a lot of them (rd.*, etc.).</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>boot_cmdline</strong> (<em>string, dict or None</em>) – the Anaconda boot command line arguments</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">an argparse Namespace instance</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">Namespace</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.anaconda_argparse.HelpTextParser">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.anaconda_argparse.</tt><tt class="descname">HelpTextParser</tt><big>(</big><em>path</em><big>)</big><a class="headerlink" href="#pyanaconda.anaconda_argparse.HelpTextParser" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
<p>Class to parse help text from file and make it available to option
|
|
parser.</p>
|
|
<p>Initializer
|
|
:param path: The absolute path to the help text file</p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.anaconda_argparse.HelpTextParser.help_text">
|
|
<tt class="descname">help_text</tt><big>(</big><em>option</em><big>)</big><a class="headerlink" href="#pyanaconda.anaconda_argparse.HelpTextParser.help_text" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns the help text corresponding to the given command-line option.
|
|
If no help text is available, returns the empty string.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>option</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – The name of the option</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">str</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.anaconda_argparse.HelpTextParser.read">
|
|
<tt class="descname">read</tt><big>(</big><em>lines</em><big>)</big><a class="headerlink" href="#pyanaconda.anaconda_argparse.HelpTextParser.read" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Reads option, help text pairs from a text file.</p>
|
|
<p>Each pair is separated from the next by an empty line.
|
|
The option comes first, followed by any number of lines of help text.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>lines</strong> – a sequence of lines of text</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.anaconda_argparse.get_help_width">
|
|
<tt class="descclassname">pyanaconda.anaconda_argparse.</tt><tt class="descname">get_help_width</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.anaconda_argparse.get_help_width" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Try to detect the terminal window width size and use it to
|
|
compute optimal help text width. If it can’t be detected
|
|
a default values is returned.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">optimal help text width in number of characters</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">int</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.anaconda_argparse.name_path_pairs">
|
|
<tt class="descclassname">pyanaconda.anaconda_argparse.</tt><tt class="descname">name_path_pairs</tt><big>(</big><em>image_specs</em><big>)</big><a class="headerlink" href="#pyanaconda.anaconda_argparse.name_path_pairs" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Processes and verifies image file specifications. Generates pairs
|
|
of names and paths.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>image_specs</strong> (<em>list of str</em>) – a list of image specifications</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p>Each image spec in image_specs has format <path>[:<name>] where
|
|
<path> is the path to a local file and <name> is an optional
|
|
name used to identify the disk in UI. <name> may not contain colons
|
|
or slashes.</p>
|
|
<p>If no name given in specification, synthesizes name from basename
|
|
of path. Since two distinct paths may have the same basename, handles
|
|
name collisions by synthesizing a different name for the colliding
|
|
name.</p>
|
|
<dl class="docutils">
|
|
<dt>Raises an exception if:</dt>
|
|
<dd><ul class="first last simple">
|
|
<li>A path is empty</li>
|
|
<li>A path specifies a non-existant file</li>
|
|
<li>A path specifies a directory</li>
|
|
<li>Duplicate paths are specified</li>
|
|
<li>A name contains a “/”</li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.anaconda_log">
|
|
<span id="pyanaconda-anaconda-log-module"></span><h2>pyanaconda.anaconda_log module<a class="headerlink" href="#module-pyanaconda.anaconda_log" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="class">
|
|
<dt id="pyanaconda.anaconda_log.AnacondaLog">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.anaconda_log.</tt><tt class="descname">AnacondaLog</tt><a class="headerlink" href="#pyanaconda.anaconda_log.AnacondaLog" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.anaconda_log.AnacondaLog.SYSLOG_CFGFILE">
|
|
<tt class="descname">SYSLOG_CFGFILE</tt><em class="property"> = '/etc/rsyslog.conf'</em><a class="headerlink" href="#pyanaconda.anaconda_log.AnacondaLog.SYSLOG_CFGFILE" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.anaconda_log.AnacondaLog.VIRTIO_PORT">
|
|
<tt class="descname">VIRTIO_PORT</tt><em class="property"> = '/dev/virtio-ports/org.fedoraproject.anaconda.log.0'</em><a class="headerlink" href="#pyanaconda.anaconda_log.AnacondaLog.VIRTIO_PORT" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.anaconda_log.AnacondaLog.addFileHandler">
|
|
<tt class="descname">addFileHandler</tt><big>(</big><em>dest</em>, <em>addToLogger</em>, <em>minLevel=20</em>, <em>fmtStr='%(asctime)s</em>, <em>%(msecs)03d %(levelname)s %(name)s: %(message)s'</em>, <em>autoLevel=False</em><big>)</big><a class="headerlink" href="#pyanaconda.anaconda_log.AnacondaLog.addFileHandler" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.anaconda_log.AnacondaLog.forwardToSyslog">
|
|
<tt class="descname">forwardToSyslog</tt><big>(</big><em>logr</em><big>)</big><a class="headerlink" href="#pyanaconda.anaconda_log.AnacondaLog.forwardToSyslog" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Forward everything that goes in the logger to the syslog daemon.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.anaconda_log.AnacondaLog.restartSyslog">
|
|
<tt class="descname">restartSyslog</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.anaconda_log.AnacondaLog.restartSyslog" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.anaconda_log.AnacondaLog.setupVirtio">
|
|
<tt class="descname">setupVirtio</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.anaconda_log.AnacondaLog.setupVirtio" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Setup virtio rsyslog logging.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.anaconda_log.AnacondaLog.setup_remotelog">
|
|
<tt class="descname">setup_remotelog</tt><big>(</big><em>host</em>, <em>port</em><big>)</big><a class="headerlink" href="#pyanaconda.anaconda_log.AnacondaLog.setup_remotelog" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.anaconda_log.AnacondaLog.showwarning">
|
|
<tt class="descname">showwarning</tt><big>(</big><em>message</em>, <em>category</em>, <em>filename</em>, <em>lineno</em>, <em>file=<_io.TextIOWrapper name='<stderr>' mode='w' encoding='UTF-8'></em>, <em>line=None</em><big>)</big><a class="headerlink" href="#pyanaconda.anaconda_log.AnacondaLog.showwarning" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Make sure messages sent through python’s warnings module get logged.</p>
|
|
<p>The warnings mechanism is used by some libraries we use,
|
|
notably pykickstart.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.anaconda_log.AnacondaLog.updateRemote">
|
|
<tt class="descname">updateRemote</tt><big>(</big><em>remote_syslog</em><big>)</big><a class="headerlink" href="#pyanaconda.anaconda_log.AnacondaLog.updateRemote" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Updates the location of remote rsyslogd to forward to.</p>
|
|
<p>Requires updating rsyslogd config and restarting rsyslog</p>
|
|
</dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.anaconda_log.AnacondaSocketHandler">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.anaconda_log.</tt><tt class="descname">AnacondaSocketHandler</tt><big>(</big><em>host</em>, <em>port</em><big>)</big><a class="headerlink" href="#pyanaconda.anaconda_log.AnacondaSocketHandler" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/logging.handlers.html#logging.handlers.SocketHandler" title="(in Python v3.4)"><tt class="xref py py-class docutils literal"><span class="pre">logging.handlers.SocketHandler</span></tt></a></p>
|
|
<p>Initializes the handler with a specific host address and port.</p>
|
|
<p>When the attribute <em>closeOnError</em> is set to True - if a socket error
|
|
occurs, the socket is silently closed and then reopened on the next
|
|
logging call.</p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.anaconda_log.AnacondaSocketHandler.makePickle">
|
|
<tt class="descname">makePickle</tt><big>(</big><em>record</em><big>)</big><a class="headerlink" href="#pyanaconda.anaconda_log.AnacondaSocketHandler.makePickle" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.anaconda_log.AnacondaSyslogHandler">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.anaconda_log.</tt><tt class="descname">AnacondaSyslogHandler</tt><big>(</big><em>address=('localhost'</em>, <em>514)</em>, <em>facility=1</em>, <em>tag=''</em><big>)</big><a class="headerlink" href="#pyanaconda.anaconda_log.AnacondaSyslogHandler" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/logging.handlers.html#logging.handlers.SysLogHandler" title="(in Python v3.4)"><tt class="xref py py-class docutils literal"><span class="pre">logging.handlers.SysLogHandler</span></tt></a></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.anaconda_log.AnacondaSyslogHandler.emit">
|
|
<tt class="descname">emit</tt><big>(</big><em>record</em><big>)</big><a class="headerlink" href="#pyanaconda.anaconda_log.AnacondaSyslogHandler.emit" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.anaconda_log.AnacondaSyslogHandler.levelMap">
|
|
<tt class="descname">levelMap</tt><em class="property"> = {'CRIT': 'critical', 'LOCK': 'debug', 'ERR': 'error'}</em><a class="headerlink" href="#pyanaconda.anaconda_log.AnacondaSyslogHandler.levelMap" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.anaconda_log.AnacondaSyslogHandler.mapPriority">
|
|
<tt class="descname">mapPriority</tt><big>(</big><em>level</em><big>)</big><a class="headerlink" href="#pyanaconda.anaconda_log.AnacondaSyslogHandler.mapPriority" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Map the priority level to a syslog level</p>
|
|
</dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.anaconda_log.autoSetLevel">
|
|
<tt class="descclassname">pyanaconda.anaconda_log.</tt><tt class="descname">autoSetLevel</tt><big>(</big><em>handler</em>, <em>value</em><big>)</big><a class="headerlink" href="#pyanaconda.anaconda_log.autoSetLevel" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.anaconda_log.init">
|
|
<tt class="descclassname">pyanaconda.anaconda_log.</tt><tt class="descname">init</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.anaconda_log.init" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.anaconda_log.setHandlersLevel">
|
|
<tt class="descclassname">pyanaconda.anaconda_log.</tt><tt class="descname">setHandlersLevel</tt><big>(</big><em>logr</em>, <em>level</em><big>)</big><a class="headerlink" href="#pyanaconda.anaconda_log.setHandlersLevel" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.bootloader">
|
|
<span id="pyanaconda-bootloader-module"></span><h2>pyanaconda.bootloader module<a class="headerlink" href="#module-pyanaconda.bootloader" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="class">
|
|
<dt id="pyanaconda.bootloader.Aarch64EFIGRUB">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.bootloader.</tt><tt class="descname">Aarch64EFIGRUB</tt><a class="headerlink" href="#pyanaconda.bootloader.Aarch64EFIGRUB" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#pyanaconda.bootloader.EFIGRUB" title="pyanaconda.bootloader.EFIGRUB"><tt class="xref py py-class docutils literal"><span class="pre">pyanaconda.bootloader.EFIGRUB</span></tt></a></p>
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.bootloader.Arguments">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.bootloader.</tt><tt class="descname">Arguments</tt><big>(</big><em>iterable=None</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.Arguments" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#pyanaconda.orderedset.OrderedSet" title="pyanaconda.orderedset.OrderedSet"><tt class="xref py py-class docutils literal"><span class="pre">pyanaconda.orderedset.OrderedSet</span></tt></a></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.Arguments.add">
|
|
<tt class="descname">add</tt><big>(</big><em>key</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.Arguments.add" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.Arguments.update">
|
|
<tt class="descname">update</tt><big>(</big><em>other</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.Arguments.update" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.bootloader.BootLoader">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.bootloader.</tt><tt class="descname">BootLoader</tt><a class="headerlink" href="#pyanaconda.bootloader.BootLoader" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.BootLoader.add_image">
|
|
<tt class="descname">add_image</tt><big>(</big><em>image</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.add_image" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Add a BootLoaderImage instance to the image list.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.BootLoader.boot_prefix">
|
|
<tt class="descname">boot_prefix</tt><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.boot_prefix" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Prefix, if any, to paths in /boot.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.BootLoader.can_dual_boot">
|
|
<tt class="descname">can_dual_boot</tt><em class="property"> = False</em><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.can_dual_boot" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.BootLoader.can_update">
|
|
<tt class="descname">can_update</tt><em class="property"> = False</em><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.can_update" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.BootLoader.check">
|
|
<tt class="descname">check</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.check" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Run additional bootloader checks</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.BootLoader.clear_images">
|
|
<tt class="descname">clear_images</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.clear_images" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Empty out the image list.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.BootLoader.config_file">
|
|
<tt class="descname">config_file</tt><em class="property"> = None</em><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.config_file" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.BootLoader.config_file_mode">
|
|
<tt class="descname">config_file_mode</tt><em class="property"> = 384</em><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.config_file_mode" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.BootLoader.default">
|
|
<tt class="descname">default</tt><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.default" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>The default image.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.BootLoader.device_description">
|
|
<tt class="descname">device_description</tt><big>(</big><em>device</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.device_description" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.BootLoader.device_descriptions">
|
|
<tt class="descname">device_descriptions</tt><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.device_descriptions" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.BootLoader.disk_order">
|
|
<tt class="descname">disk_order</tt><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.disk_order" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Potentially partial order for disks.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.BootLoader.disklabel_types">
|
|
<tt class="descname">disklabel_types</tt><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.disklabel_types" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.BootLoader.encryption_support">
|
|
<tt class="descname">encryption_support</tt><em class="property"> = False</em><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.encryption_support" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.BootLoader.global_preserve_args">
|
|
<tt class="descname">global_preserve_args</tt><em class="property"> = ['speakup_synth', 'apic', 'noapic', 'apm', 'ide', 'noht', 'acpi', 'video', 'pci', 'nodmraid', 'nompath', 'nomodeset', 'noiswmd', 'fips', 'selinux', 'biosdevname', 'ipv6.disable', 'net.ifnames']</em><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.global_preserve_args" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.BootLoader.has_windows">
|
|
<tt class="descname">has_windows</tt><big>(</big><em>devices</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.has_windows" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.BootLoader.image_label">
|
|
<tt class="descname">image_label</tt><big>(</big><em>image</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.image_label" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return the appropriate image label for this bootloader.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.BootLoader.image_label_attr">
|
|
<tt class="descname">image_label_attr</tt><em class="property"> = 'label'</em><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.image_label_attr" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.BootLoader.images">
|
|
<tt class="descname">images</tt><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.images" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>List of OS images that will be included in the configuration.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.BootLoader.install">
|
|
<tt class="descname">install</tt><big>(</big><em>args=None</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.install" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.BootLoader.is_valid_stage1_device">
|
|
<tt class="descname">is_valid_stage1_device</tt><big>(</big><em>device</em>, <em>early=False</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.is_valid_stage1_device" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return True if the device is a valid stage1 target device.</p>
|
|
<p>Also collect lists of errors and warnings.</p>
|
|
<p>The criteria for being a valid stage1 target device vary from
|
|
platform to platform. On some platforms a disk with an msdos
|
|
disklabel is a valid stage1 target, while some platforms require
|
|
a special device. Some examples of these special devices are EFI
|
|
system partitions on EFI machines, PReP boot partitions on
|
|
iSeries, and Apple bootstrap partitions on Mac.</p>
|
|
<p>The ‘early’ keyword argument is a boolean flag indicating whether
|
|
or not this check is being performed at a point where the mountpoint
|
|
cannot be expected to be set for things like EFI system partitions.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.BootLoader.is_valid_stage2_device">
|
|
<tt class="descname">is_valid_stage2_device</tt><big>(</big><em>device</em>, <em>linux=True</em>, <em>non_linux=False</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.is_valid_stage2_device" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return True if the device is suitable as a stage2 target device.</p>
|
|
<p>Also collect lists of errors and warnings.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.BootLoader.name">
|
|
<tt class="descname">name</tt><em class="property"> = 'Generic Bootloader'</em><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.name" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.BootLoader.packages">
|
|
<tt class="descname">packages</tt><em class="property"> = []</em><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.packages" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.BootLoader.preserve_args">
|
|
<tt class="descname">preserve_args</tt><em class="property"> = []</em><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.preserve_args" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.BootLoader.reset">
|
|
<tt class="descname">reset</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.reset" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Reset stage1 and stage2 values</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.BootLoader.set_boot_args">
|
|
<tt class="descname">set_boot_args</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.set_boot_args" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Set up the boot command line.</p>
|
|
<p>Keyword Arguments:</p>
|
|
<blockquote>
|
|
<div>storage - a blivet.Storage instance</div></blockquote>
|
|
<p>All other arguments are expected to have a dracutSetupArgs()
|
|
method.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.BootLoader.set_disk_list">
|
|
<tt class="descname">set_disk_list</tt><big>(</big><em>disks</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.set_disk_list" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.BootLoader.set_preferred_stage1_type">
|
|
<tt class="descname">set_preferred_stage1_type</tt><big>(</big><em>preferred</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.set_preferred_stage1_type" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Set a preferred type of stage1 device.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.BootLoader.set_stage1_device">
|
|
<tt class="descname">set_stage1_device</tt><big>(</big><em>devices</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.set_stage1_device" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.BootLoader.stage2_bootable">
|
|
<tt class="descname">stage2_bootable</tt><em class="property"> = False</em><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.stage2_bootable" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.BootLoader.stage2_description">
|
|
<tt class="descname">stage2_description</tt><em class="property"> = '/boot file system'</em><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.stage2_description" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.BootLoader.stage2_device">
|
|
<tt class="descname">stage2_device</tt><em class="property"> = None</em><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.stage2_device" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.BootLoader.stage2_device_types">
|
|
<tt class="descname">stage2_device_types</tt><em class="property"> = []</em><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.stage2_device_types" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.BootLoader.stage2_format_types">
|
|
<tt class="descname">stage2_format_types</tt><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.stage2_format_types" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.BootLoader.stage2_is_valid_stage1">
|
|
<tt class="descname">stage2_is_valid_stage1</tt><em class="property"> = False</em><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.stage2_is_valid_stage1" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.BootLoader.stage2_max_end">
|
|
<tt class="descname">stage2_max_end</tt><em class="property"> = Size('2 TiB')</em><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.stage2_max_end" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.BootLoader.stage2_mountpoints">
|
|
<tt class="descname">stage2_mountpoints</tt><em class="property"> = ['/boot', '/']</em><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.stage2_mountpoints" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.BootLoader.stage2_must_be_primary">
|
|
<tt class="descname">stage2_must_be_primary</tt><em class="property"> = True</em><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.stage2_must_be_primary" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.BootLoader.stage2_raid_levels">
|
|
<tt class="descname">stage2_raid_levels</tt><em class="property"> = []</em><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.stage2_raid_levels" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.BootLoader.stage2_raid_member_types">
|
|
<tt class="descname">stage2_raid_member_types</tt><em class="property"> = []</em><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.stage2_raid_member_types" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.BootLoader.stage2_raid_metadata">
|
|
<tt class="descname">stage2_raid_metadata</tt><em class="property"> = []</em><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.stage2_raid_metadata" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.BootLoader.timeout">
|
|
<tt class="descname">timeout</tt><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.timeout" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bootloader timeout in seconds.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.BootLoader.trusted_boot">
|
|
<tt class="descname">trusted_boot</tt><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.trusted_boot" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.BootLoader.update">
|
|
<tt class="descname">update</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.update" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Update an existing bootloader configuration.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.BootLoader.update_only">
|
|
<tt class="descname">update_only</tt><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.update_only" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.BootLoader.write">
|
|
<tt class="descname">write</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.write" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Write the bootloader configuration and install the bootloader.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.BootLoader.write_config">
|
|
<tt class="descname">write_config</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.write_config" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Write the bootloader configuration.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.BootLoader.write_config_console">
|
|
<tt class="descname">write_config_console</tt><big>(</big><em>config</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.write_config_console" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Write console-related configuration lines.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.BootLoader.write_config_header">
|
|
<tt class="descname">write_config_header</tt><big>(</big><em>config</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.write_config_header" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Write global configuration lines.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.BootLoader.write_config_images">
|
|
<tt class="descname">write_config_images</tt><big>(</big><em>config</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.write_config_images" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Write image configuration entries.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.BootLoader.write_config_password">
|
|
<tt class="descname">write_config_password</tt><big>(</big><em>config</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.write_config_password" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Write password-related configuration lines.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.BootLoader.write_config_post">
|
|
<tt class="descname">write_config_post</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.BootLoader.write_config_post" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.bootloader.BootLoaderError">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.bootloader.</tt><tt class="descname">BootLoaderError</tt><a class="headerlink" href="#pyanaconda.bootloader.BootLoaderError" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.Exception</span></tt></p>
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.bootloader.BootLoaderImage">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.bootloader.</tt><tt class="descname">BootLoaderImage</tt><big>(</big><em>device=None</em>, <em>label=None</em>, <em>short=None</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.BootLoaderImage" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
<p>Base class for bootloader images. Suitable for non-linux OS images.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.bootloader.EFIGRUB">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.bootloader.</tt><tt class="descname">EFIGRUB</tt><a class="headerlink" href="#pyanaconda.bootloader.EFIGRUB" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#pyanaconda.bootloader.GRUB2" title="pyanaconda.bootloader.GRUB2"><tt class="xref py py-class docutils literal"><span class="pre">pyanaconda.bootloader.GRUB2</span></tt></a></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.EFIGRUB.add_efi_boot_target">
|
|
<tt class="descname">add_efi_boot_target</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.EFIGRUB.add_efi_boot_target" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.EFIGRUB.can_dual_boot">
|
|
<tt class="descname">can_dual_boot</tt><em class="property"> = False</em><a class="headerlink" href="#pyanaconda.bootloader.EFIGRUB.can_dual_boot" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.EFIGRUB.check">
|
|
<tt class="descname">check</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.EFIGRUB.check" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.EFIGRUB.efi_dir_as_efifs_dir">
|
|
<tt class="descname">efi_dir_as_efifs_dir</tt><a class="headerlink" href="#pyanaconda.bootloader.EFIGRUB.efi_dir_as_efifs_dir" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.EFIGRUB.efibootmgr">
|
|
<tt class="descname">efibootmgr</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.EFIGRUB.efibootmgr" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.EFIGRUB.install">
|
|
<tt class="descname">install</tt><big>(</big><em>args=None</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.EFIGRUB.install" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.EFIGRUB.packages">
|
|
<tt class="descname">packages</tt><em class="property"> = ['grub2-efi', 'efibootmgr', 'shim']</em><a class="headerlink" href="#pyanaconda.bootloader.EFIGRUB.packages" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.EFIGRUB.remove_efi_boot_target">
|
|
<tt class="descname">remove_efi_boot_target</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.EFIGRUB.remove_efi_boot_target" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.EFIGRUB.stage2_bootable">
|
|
<tt class="descname">stage2_bootable</tt><em class="property"> = False</em><a class="headerlink" href="#pyanaconda.bootloader.EFIGRUB.stage2_bootable" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.EFIGRUB.stage2_is_valid_stage1">
|
|
<tt class="descname">stage2_is_valid_stage1</tt><em class="property"> = False</em><a class="headerlink" href="#pyanaconda.bootloader.EFIGRUB.stage2_is_valid_stage1" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.EFIGRUB.update">
|
|
<tt class="descname">update</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.EFIGRUB.update" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.EFIGRUB.write">
|
|
<tt class="descname">write</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.EFIGRUB.write" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Write the bootloader configuration and install the bootloader.</p>
|
|
</dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.bootloader.EXTLINUX">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.bootloader.</tt><tt class="descname">EXTLINUX</tt><a class="headerlink" href="#pyanaconda.bootloader.EXTLINUX" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#pyanaconda.bootloader.BootLoader" title="pyanaconda.bootloader.BootLoader"><tt class="xref py py-class docutils literal"><span class="pre">pyanaconda.bootloader.BootLoader</span></tt></a></p>
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.EXTLINUX.boot_prefix">
|
|
<tt class="descname">boot_prefix</tt><a class="headerlink" href="#pyanaconda.bootloader.EXTLINUX.boot_prefix" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Prefix, if any, to paths in /boot.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.EXTLINUX.config_file">
|
|
<tt class="descname">config_file</tt><a class="headerlink" href="#pyanaconda.bootloader.EXTLINUX.config_file" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.EXTLINUX.install">
|
|
<tt class="descname">install</tt><big>(</big><em>args=None</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.EXTLINUX.install" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.EXTLINUX.name">
|
|
<tt class="descname">name</tt><em class="property"> = 'EXTLINUX'</em><a class="headerlink" href="#pyanaconda.bootloader.EXTLINUX.name" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.EXTLINUX.packages">
|
|
<tt class="descname">packages</tt><em class="property"> = ['syslinux-extlinux']</em><a class="headerlink" href="#pyanaconda.bootloader.EXTLINUX.packages" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.EXTLINUX.stage1_device_types">
|
|
<tt class="descname">stage1_device_types</tt><em class="property"> = ['disk']</em><a class="headerlink" href="#pyanaconda.bootloader.EXTLINUX.stage1_device_types" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.EXTLINUX.stage2_bootable">
|
|
<tt class="descname">stage2_bootable</tt><em class="property"> = True</em><a class="headerlink" href="#pyanaconda.bootloader.EXTLINUX.stage2_bootable" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.EXTLINUX.stage2_device_types">
|
|
<tt class="descname">stage2_device_types</tt><em class="property"> = ['partition']</em><a class="headerlink" href="#pyanaconda.bootloader.EXTLINUX.stage2_device_types" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.EXTLINUX.stage2_format_types">
|
|
<tt class="descname">stage2_format_types</tt><em class="property"> = ['ext4', 'ext3', 'ext2']</em><a class="headerlink" href="#pyanaconda.bootloader.EXTLINUX.stage2_format_types" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.EXTLINUX.write_config">
|
|
<tt class="descname">write_config</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.EXTLINUX.write_config" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.EXTLINUX.write_config_console">
|
|
<tt class="descname">write_config_console</tt><big>(</big><em>config</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.EXTLINUX.write_config_console" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.EXTLINUX.write_config_header">
|
|
<tt class="descname">write_config_header</tt><big>(</big><em>config</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.EXTLINUX.write_config_header" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.EXTLINUX.write_config_images">
|
|
<tt class="descname">write_config_images</tt><big>(</big><em>config</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.EXTLINUX.write_config_images" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.EXTLINUX.write_config_password">
|
|
<tt class="descname">write_config_password</tt><big>(</big><em>config</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.EXTLINUX.write_config_password" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.EXTLINUX.write_config_post">
|
|
<tt class="descname">write_config_post</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.EXTLINUX.write_config_post" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.bootloader.GRUB">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.bootloader.</tt><tt class="descname">GRUB</tt><a class="headerlink" href="#pyanaconda.bootloader.GRUB" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#pyanaconda.bootloader.BootLoader" title="pyanaconda.bootloader.BootLoader"><tt class="xref py py-class docutils literal"><span class="pre">pyanaconda.bootloader.BootLoader</span></tt></a></p>
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.GRUB.can_dual_boot">
|
|
<tt class="descname">can_dual_boot</tt><em class="property"> = True</em><a class="headerlink" href="#pyanaconda.bootloader.GRUB.can_dual_boot" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.GRUB.can_update">
|
|
<tt class="descname">can_update</tt><em class="property"> = True</em><a class="headerlink" href="#pyanaconda.bootloader.GRUB.can_update" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.GRUB.config_dir">
|
|
<tt class="descname">config_dir</tt><a class="headerlink" href="#pyanaconda.bootloader.GRUB.config_dir" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Full path to configuration directory.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.GRUB.config_file">
|
|
<tt class="descname">config_file</tt><a class="headerlink" href="#pyanaconda.bootloader.GRUB.config_file" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Full path to configuration file.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.GRUB.device_map_file">
|
|
<tt class="descname">device_map_file</tt><a class="headerlink" href="#pyanaconda.bootloader.GRUB.device_map_file" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Full path to device.map file.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.GRUB.grub_conf_device_line">
|
|
<tt class="descname">grub_conf_device_line</tt><a class="headerlink" href="#pyanaconda.bootloader.GRUB.grub_conf_device_line" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.GRUB.grub_config_dir">
|
|
<tt class="descname">grub_config_dir</tt><a class="headerlink" href="#pyanaconda.bootloader.GRUB.grub_config_dir" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Config dir, adjusted for grub’s view of the world.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.GRUB.grub_device_name">
|
|
<tt class="descname">grub_device_name</tt><big>(</big><em>device</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.GRUB.grub_device_name" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return a grub-friendly representation of device.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.GRUB.has_serial_console">
|
|
<tt class="descname">has_serial_console</tt><a class="headerlink" href="#pyanaconda.bootloader.GRUB.has_serial_console" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>true if the console is a serial console.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.GRUB.has_windows">
|
|
<tt class="descname">has_windows</tt><big>(</big><em>devices</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.GRUB.has_windows" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Potential boot devices containing non-linux operating systems.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.GRUB.install">
|
|
<tt class="descname">install</tt><big>(</big><em>args=None</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.GRUB.install" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.GRUB.install_targets">
|
|
<tt class="descname">install_targets</tt><a class="headerlink" href="#pyanaconda.bootloader.GRUB.install_targets" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>List of (stage1, stage2) tuples representing install targets.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.GRUB.is_valid_stage2_device">
|
|
<tt class="descname">is_valid_stage2_device</tt><big>(</big><em>device</em>, <em>linux=True</em>, <em>non_linux=False</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.GRUB.is_valid_stage2_device" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.GRUB.name">
|
|
<tt class="descname">name</tt><em class="property"> = 'GRUB'</em><a class="headerlink" href="#pyanaconda.bootloader.GRUB.name" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.GRUB.packages">
|
|
<tt class="descname">packages</tt><em class="property"> = ['grub']</em><a class="headerlink" href="#pyanaconda.bootloader.GRUB.packages" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.GRUB.serial_command">
|
|
<tt class="descname">serial_command</tt><a class="headerlink" href="#pyanaconda.bootloader.GRUB.serial_command" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.GRUB.splash_dir">
|
|
<tt class="descname">splash_dir</tt><a class="headerlink" href="#pyanaconda.bootloader.GRUB.splash_dir" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>relative path to splash image directory.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.GRUB.stage2_bootable">
|
|
<tt class="descname">stage2_bootable</tt><em class="property"> = True</em><a class="headerlink" href="#pyanaconda.bootloader.GRUB.stage2_bootable" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.GRUB.stage2_device_types">
|
|
<tt class="descname">stage2_device_types</tt><em class="property"> = ['partition', 'mdarray']</em><a class="headerlink" href="#pyanaconda.bootloader.GRUB.stage2_device_types" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.GRUB.stage2_is_valid_stage1">
|
|
<tt class="descname">stage2_is_valid_stage1</tt><em class="property"> = True</em><a class="headerlink" href="#pyanaconda.bootloader.GRUB.stage2_is_valid_stage1" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.GRUB.stage2_must_be_primary">
|
|
<tt class="descname">stage2_must_be_primary</tt><em class="property"> = False</em><a class="headerlink" href="#pyanaconda.bootloader.GRUB.stage2_must_be_primary" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.GRUB.stage2_raid_levels">
|
|
<tt class="descname">stage2_raid_levels</tt><em class="property"> = [<blivet.devicelibs.raid.RAID1 object at 0x7feabb86bfd0>]</em><a class="headerlink" href="#pyanaconda.bootloader.GRUB.stage2_raid_levels" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.GRUB.stage2_raid_member_types">
|
|
<tt class="descname">stage2_raid_member_types</tt><em class="property"> = ['partition']</em><a class="headerlink" href="#pyanaconda.bootloader.GRUB.stage2_raid_member_types" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.GRUB.stage2_raid_metadata">
|
|
<tt class="descname">stage2_raid_metadata</tt><em class="property"> = ['0', '0.90', '1.0']</em><a class="headerlink" href="#pyanaconda.bootloader.GRUB.stage2_raid_metadata" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.GRUB.update">
|
|
<tt class="descname">update</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.GRUB.update" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.GRUB.write_config">
|
|
<tt class="descname">write_config</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.GRUB.write_config" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Write bootloader configuration to disk.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.GRUB.write_config_console">
|
|
<tt class="descname">write_config_console</tt><big>(</big><em>config</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.GRUB.write_config_console" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Write console-related configuration.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.GRUB.write_config_header">
|
|
<tt class="descname">write_config_header</tt><big>(</big><em>config</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.GRUB.write_config_header" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Write global configuration information.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.GRUB.write_config_images">
|
|
<tt class="descname">write_config_images</tt><big>(</big><em>config</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.GRUB.write_config_images" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Write image entries into configuration file.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.GRUB.write_config_password">
|
|
<tt class="descname">write_config_password</tt><big>(</big><em>config</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.GRUB.write_config_password" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Write password-related configuration.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.GRUB.write_config_post">
|
|
<tt class="descname">write_config_post</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.GRUB.write_config_post" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Perform additional configuration after writing config file(s).</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.GRUB.write_device_map">
|
|
<tt class="descname">write_device_map</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.GRUB.write_device_map" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Write out a device map containing all supported devices.</p>
|
|
</dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.bootloader.GRUB2">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.bootloader.</tt><tt class="descname">GRUB2</tt><a class="headerlink" href="#pyanaconda.bootloader.GRUB2" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#pyanaconda.bootloader.GRUB" title="pyanaconda.bootloader.GRUB"><tt class="xref py py-class docutils literal"><span class="pre">pyanaconda.bootloader.GRUB</span></tt></a></p>
|
|
<p>GRUBv2</p>
|
|
<ul>
|
|
<li><dl class="first docutils">
|
|
<dt>configuration</dt>
|
|
<dd><ul class="first last">
|
|
<li><dl class="first docutils">
|
|
<dt>password (insecure), password_pbkdf2</dt>
|
|
<dd><ul class="first last simple">
|
|
<li><a class="reference external" href="http://www.gnu.org/software/grub/manual/grub.html#Invoking-grub_002dmkpasswd_002dpbkdf2">http://www.gnu.org/software/grub/manual/grub.html#Invoking-grub_002dmkpasswd_002dpbkdf2</a></li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</li>
|
|
<li><p class="first">–users per-entry specifies which users can access, otherwise
|
|
entry is unrestricted</p>
|
|
</li>
|
|
<li><p class="first">/etc/grub/custom.cfg</p>
|
|
</li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</li>
|
|
<li><p class="first">how does grub resolve names of md arrays?</p>
|
|
</li>
|
|
<li><dl class="first docutils">
|
|
<dt>disable automatic use of grub-mkconfig?</dt>
|
|
<dd><ul class="first last simple">
|
|
<li>on upgrades?</li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</li>
|
|
<li><dl class="first docutils">
|
|
<dt>BIOS boot partition (GPT)</dt>
|
|
<dd><ul class="first last simple">
|
|
<li>parted /dev/sda set <partition_number> bios_grub on</li>
|
|
<li>can’t contain a file system</li>
|
|
<li>31KiB min, 1MiB recommended</li>
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.GRUB2.check">
|
|
<tt class="descname">check</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.GRUB2.check" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>When installing to the mbr of a disk grub2 needs enough space
|
|
before the first partition in order to embed its core.img</p>
|
|
<p>Until we have a way to ask grub2 what the size is we check to make
|
|
sure it starts >= 512K, otherwise return an error.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.GRUB2.defaults_file">
|
|
<tt class="descname">defaults_file</tt><em class="property"> = '/etc/default/grub'</em><a class="headerlink" href="#pyanaconda.bootloader.GRUB2.defaults_file" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.GRUB2.grub_device_name">
|
|
<tt class="descname">grub_device_name</tt><big>(</big><em>device</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.GRUB2.grub_device_name" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return a grub-friendly representation of device.</p>
|
|
<p>Disks and partitions use the (hdX,Y) notation, while lvm and
|
|
md devices just use their names.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.GRUB2.install">
|
|
<tt class="descname">install</tt><big>(</big><em>args=None</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.GRUB2.install" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.GRUB2.name">
|
|
<tt class="descname">name</tt><em class="property"> = 'GRUB2'</em><a class="headerlink" href="#pyanaconda.bootloader.GRUB2.name" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.GRUB2.packages">
|
|
<tt class="descname">packages</tt><em class="property"> = ['grub2']</em><a class="headerlink" href="#pyanaconda.bootloader.GRUB2.packages" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.GRUB2.stage2_device_types">
|
|
<tt class="descname">stage2_device_types</tt><em class="property"> = ['partition', 'mdarray', 'lvmlv']</em><a class="headerlink" href="#pyanaconda.bootloader.GRUB2.stage2_device_types" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.GRUB2.stage2_format_types">
|
|
<tt class="descname">stage2_format_types</tt><a class="headerlink" href="#pyanaconda.bootloader.GRUB2.stage2_format_types" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.GRUB2.stage2_max_end">
|
|
<tt class="descname">stage2_max_end</tt><em class="property"> = None</em><a class="headerlink" href="#pyanaconda.bootloader.GRUB2.stage2_max_end" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.GRUB2.stage2_raid_levels">
|
|
<tt class="descname">stage2_raid_levels</tt><em class="property"> = [<blivet.devicelibs.raid.RAID0 object at 0x7feabb86be10>, <blivet.devicelibs.raid.RAID1 object at 0x7feabb86bfd0>, <blivet.devicelibs.raid.RAID4 object at 0x7feabb8871d0>, <blivet.devicelibs.raid.RAID5 object at 0x7feabb887390>, <blivet.devicelibs.raid.RAID6 object at 0x7feabb887550>, <blivet.devicelibs.raid.RAID10 object at 0x7feabb887710>]</em><a class="headerlink" href="#pyanaconda.bootloader.GRUB2.stage2_raid_levels" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.GRUB2.stage2_raid_metadata">
|
|
<tt class="descname">stage2_raid_metadata</tt><em class="property"> = ['0', '0.90', '1.0', '1.2']</em><a class="headerlink" href="#pyanaconda.bootloader.GRUB2.stage2_raid_metadata" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.GRUB2.terminal_type">
|
|
<tt class="descname">terminal_type</tt><em class="property"> = 'console'</em><a class="headerlink" href="#pyanaconda.bootloader.GRUB2.terminal_type" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.GRUB2.write">
|
|
<tt class="descname">write</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.GRUB2.write" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Write the bootloader configuration and install the bootloader.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.GRUB2.write_config">
|
|
<tt class="descname">write_config</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.GRUB2.write_config" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.GRUB2.write_config_console">
|
|
<tt class="descname">write_config_console</tt><big>(</big><em>config</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.GRUB2.write_config_console" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.GRUB2.write_defaults">
|
|
<tt class="descname">write_defaults</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.GRUB2.write_defaults" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.GRUB2.write_device_map">
|
|
<tt class="descname">write_device_map</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.GRUB2.write_device_map" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Write out a device map containing all supported devices.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.GRUB2.write_password_config">
|
|
<tt class="descname">write_password_config</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.GRUB2.write_password_config" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.bootloader.IPSeriesGRUB2">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.bootloader.</tt><tt class="descname">IPSeriesGRUB2</tt><a class="headerlink" href="#pyanaconda.bootloader.IPSeriesGRUB2" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#pyanaconda.bootloader.GRUB2" title="pyanaconda.bootloader.GRUB2"><tt class="xref py py-class docutils literal"><span class="pre">pyanaconda.bootloader.GRUB2</span></tt></a></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.IPSeriesGRUB2.install">
|
|
<tt class="descname">install</tt><big>(</big><em>args=None</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.IPSeriesGRUB2.install" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.IPSeriesGRUB2.stage2_bootable">
|
|
<tt class="descname">stage2_bootable</tt><em class="property"> = False</em><a class="headerlink" href="#pyanaconda.bootloader.IPSeriesGRUB2.stage2_bootable" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.IPSeriesGRUB2.terminal_type">
|
|
<tt class="descname">terminal_type</tt><em class="property"> = 'ofconsole'</em><a class="headerlink" href="#pyanaconda.bootloader.IPSeriesGRUB2.terminal_type" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.IPSeriesGRUB2.updateNVRAMBootList">
|
|
<tt class="descname">updateNVRAMBootList</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.IPSeriesGRUB2.updateNVRAMBootList" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.IPSeriesGRUB2.write_defaults">
|
|
<tt class="descname">write_defaults</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.IPSeriesGRUB2.write_defaults" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.bootloader.IPSeriesYaboot">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.bootloader.</tt><tt class="descname">IPSeriesYaboot</tt><a class="headerlink" href="#pyanaconda.bootloader.IPSeriesYaboot" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#pyanaconda.bootloader.Yaboot" title="pyanaconda.bootloader.Yaboot"><tt class="xref py py-class docutils literal"><span class="pre">pyanaconda.bootloader.Yaboot</span></tt></a></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.IPSeriesYaboot.install">
|
|
<tt class="descname">install</tt><big>(</big><em>args=None</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.IPSeriesYaboot.install" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.IPSeriesYaboot.prog">
|
|
<tt class="descname">prog</tt><em class="property"> = 'mkofboot'</em><a class="headerlink" href="#pyanaconda.bootloader.IPSeriesYaboot.prog" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.IPSeriesYaboot.updatePowerPCBootList">
|
|
<tt class="descname">updatePowerPCBootList</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.IPSeriesYaboot.updatePowerPCBootList" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.IPSeriesYaboot.write_config_variant_header">
|
|
<tt class="descname">write_config_variant_header</tt><big>(</big><em>config</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.IPSeriesYaboot.write_config_variant_header" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.bootloader.LinuxBootLoaderImage">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.bootloader.</tt><tt class="descname">LinuxBootLoaderImage</tt><big>(</big><em>device=None</em>, <em>label=None</em>, <em>short=None</em>, <em>version=None</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.LinuxBootLoaderImage" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#pyanaconda.bootloader.BootLoaderImage" title="pyanaconda.bootloader.BootLoaderImage"><tt class="xref py py-class docutils literal"><span class="pre">pyanaconda.bootloader.BootLoaderImage</span></tt></a></p>
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.LinuxBootLoaderImage.initrd">
|
|
<tt class="descname">initrd</tt><a class="headerlink" href="#pyanaconda.bootloader.LinuxBootLoaderImage.initrd" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.LinuxBootLoaderImage.kernel">
|
|
<tt class="descname">kernel</tt><a class="headerlink" href="#pyanaconda.bootloader.LinuxBootLoaderImage.kernel" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.bootloader.MacEFIGRUB">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.bootloader.</tt><tt class="descname">MacEFIGRUB</tt><a class="headerlink" href="#pyanaconda.bootloader.MacEFIGRUB" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#pyanaconda.bootloader.EFIGRUB" title="pyanaconda.bootloader.EFIGRUB"><tt class="xref py py-class docutils literal"><span class="pre">pyanaconda.bootloader.EFIGRUB</span></tt></a></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.MacEFIGRUB.install">
|
|
<tt class="descname">install</tt><big>(</big><em>args=None</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.MacEFIGRUB.install" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.MacEFIGRUB.is_valid_stage1_device">
|
|
<tt class="descname">is_valid_stage1_device</tt><big>(</big><em>device</em>, <em>early=False</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.MacEFIGRUB.is_valid_stage1_device" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.MacEFIGRUB.mactel_config">
|
|
<tt class="descname">mactel_config</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.MacEFIGRUB.mactel_config" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.bootloader.MacYaboot">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.bootloader.</tt><tt class="descname">MacYaboot</tt><a class="headerlink" href="#pyanaconda.bootloader.MacYaboot" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#pyanaconda.bootloader.Yaboot" title="pyanaconda.bootloader.Yaboot"><tt class="xref py py-class docutils literal"><span class="pre">pyanaconda.bootloader.Yaboot</span></tt></a></p>
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.MacYaboot.can_dual_boot">
|
|
<tt class="descname">can_dual_boot</tt><em class="property"> = True</em><a class="headerlink" href="#pyanaconda.bootloader.MacYaboot.can_dual_boot" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.MacYaboot.prog">
|
|
<tt class="descname">prog</tt><em class="property"> = 'mkofboot'</em><a class="headerlink" href="#pyanaconda.bootloader.MacYaboot.prog" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.MacYaboot.write_config_variant_header">
|
|
<tt class="descname">write_config_variant_header</tt><big>(</big><em>config</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.MacYaboot.write_config_variant_header" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.bootloader.TbootLinuxBootLoaderImage">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.bootloader.</tt><tt class="descname">TbootLinuxBootLoaderImage</tt><big>(</big><em>device=None</em>, <em>label=None</em>, <em>short=None</em>, <em>version=None</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.TbootLinuxBootLoaderImage" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#pyanaconda.bootloader.LinuxBootLoaderImage" title="pyanaconda.bootloader.LinuxBootLoaderImage"><tt class="xref py py-class docutils literal"><span class="pre">pyanaconda.bootloader.LinuxBootLoaderImage</span></tt></a></p>
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.TbootLinuxBootLoaderImage.args">
|
|
<tt class="descname">args</tt><a class="headerlink" href="#pyanaconda.bootloader.TbootLinuxBootLoaderImage.args" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.TbootLinuxBootLoaderImage.mbargs">
|
|
<tt class="descname">mbargs</tt><a class="headerlink" href="#pyanaconda.bootloader.TbootLinuxBootLoaderImage.mbargs" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.TbootLinuxBootLoaderImage.multiboot">
|
|
<tt class="descname">multiboot</tt><a class="headerlink" href="#pyanaconda.bootloader.TbootLinuxBootLoaderImage.multiboot" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.bootloader.Yaboot">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.bootloader.</tt><tt class="descname">Yaboot</tt><a class="headerlink" href="#pyanaconda.bootloader.Yaboot" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#pyanaconda.bootloader.YabootBase" title="pyanaconda.bootloader.YabootBase"><tt class="xref py py-class docutils literal"><span class="pre">pyanaconda.bootloader.YabootBase</span></tt></a></p>
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.Yaboot.config_dir">
|
|
<tt class="descname">config_dir</tt><a class="headerlink" href="#pyanaconda.bootloader.Yaboot.config_dir" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.Yaboot.config_file">
|
|
<tt class="descname">config_file</tt><a class="headerlink" href="#pyanaconda.bootloader.Yaboot.config_file" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.Yaboot.image_label_attr">
|
|
<tt class="descname">image_label_attr</tt><em class="property"> = 'short_label'</em><a class="headerlink" href="#pyanaconda.bootloader.Yaboot.image_label_attr" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.Yaboot.install">
|
|
<tt class="descname">install</tt><big>(</big><em>args=None</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.Yaboot.install" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.Yaboot.name">
|
|
<tt class="descname">name</tt><em class="property"> = 'Yaboot'</em><a class="headerlink" href="#pyanaconda.bootloader.Yaboot.name" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.Yaboot.packages">
|
|
<tt class="descname">packages</tt><em class="property"> = ['yaboot']</em><a class="headerlink" href="#pyanaconda.bootloader.Yaboot.packages" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.Yaboot.prog">
|
|
<tt class="descname">prog</tt><em class="property"> = 'ybin'</em><a class="headerlink" href="#pyanaconda.bootloader.Yaboot.prog" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.Yaboot.stage2_device_raid_levels">
|
|
<tt class="descname">stage2_device_raid_levels</tt><em class="property"> = [<blivet.devicelibs.raid.RAID1 object at 0x7feabb86bfd0>]</em><a class="headerlink" href="#pyanaconda.bootloader.Yaboot.stage2_device_raid_levels" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.Yaboot.stage2_device_types">
|
|
<tt class="descname">stage2_device_types</tt><em class="property"> = ['partition', 'mdarray']</em><a class="headerlink" href="#pyanaconda.bootloader.Yaboot.stage2_device_types" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.Yaboot.write_config">
|
|
<tt class="descname">write_config</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.Yaboot.write_config" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.Yaboot.write_config_header">
|
|
<tt class="descname">write_config_header</tt><big>(</big><em>config</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.Yaboot.write_config_header" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.Yaboot.write_config_post">
|
|
<tt class="descname">write_config_post</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.Yaboot.write_config_post" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.Yaboot.write_config_variant_header">
|
|
<tt class="descname">write_config_variant_header</tt><big>(</big><em>config</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.Yaboot.write_config_variant_header" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.bootloader.YabootBase">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.bootloader.</tt><tt class="descname">YabootBase</tt><a class="headerlink" href="#pyanaconda.bootloader.YabootBase" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#pyanaconda.bootloader.BootLoader" title="pyanaconda.bootloader.BootLoader"><tt class="xref py py-class docutils literal"><span class="pre">pyanaconda.bootloader.BootLoader</span></tt></a></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.YabootBase.write_config_images">
|
|
<tt class="descname">write_config_images</tt><big>(</big><em>config</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.YabootBase.write_config_images" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.YabootBase.write_config_password">
|
|
<tt class="descname">write_config_password</tt><big>(</big><em>config</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.YabootBase.write_config_password" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.bootloader.ZIPL">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.bootloader.</tt><tt class="descname">ZIPL</tt><a class="headerlink" href="#pyanaconda.bootloader.ZIPL" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#pyanaconda.bootloader.BootLoader" title="pyanaconda.bootloader.BootLoader"><tt class="xref py py-class docutils literal"><span class="pre">pyanaconda.bootloader.BootLoader</span></tt></a></p>
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.ZIPL.boot_dir">
|
|
<tt class="descname">boot_dir</tt><a class="headerlink" href="#pyanaconda.bootloader.ZIPL.boot_dir" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.ZIPL.config_file">
|
|
<tt class="descname">config_file</tt><em class="property"> = '/etc/zipl.conf'</em><a class="headerlink" href="#pyanaconda.bootloader.ZIPL.config_file" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.ZIPL.image_label_attr">
|
|
<tt class="descname">image_label_attr</tt><em class="property"> = 'short_label'</em><a class="headerlink" href="#pyanaconda.bootloader.ZIPL.image_label_attr" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.ZIPL.install">
|
|
<tt class="descname">install</tt><big>(</big><em>args=None</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.ZIPL.install" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.ZIPL.name">
|
|
<tt class="descname">name</tt><em class="property"> = 'ZIPL'</em><a class="headerlink" href="#pyanaconda.bootloader.ZIPL.name" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.ZIPL.packages">
|
|
<tt class="descname">packages</tt><em class="property"> = ['s390utils-base']</em><a class="headerlink" href="#pyanaconda.bootloader.ZIPL.packages" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.ZIPL.preserve_args">
|
|
<tt class="descname">preserve_args</tt><em class="property"> = ['cio_ignore', 'rd.znet', 'rd_ZNET']</em><a class="headerlink" href="#pyanaconda.bootloader.ZIPL.preserve_args" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.ZIPL.stage2_device_types">
|
|
<tt class="descname">stage2_device_types</tt><em class="property"> = ['partition']</em><a class="headerlink" href="#pyanaconda.bootloader.ZIPL.stage2_device_types" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.bootloader.ZIPL.stage2_format_types">
|
|
<tt class="descname">stage2_format_types</tt><a class="headerlink" href="#pyanaconda.bootloader.ZIPL.stage2_format_types" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.ZIPL.write_config_header">
|
|
<tt class="descname">write_config_header</tt><big>(</big><em>config</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.ZIPL.write_config_header" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.bootloader.ZIPL.write_config_images">
|
|
<tt class="descname">write_config_images</tt><big>(</big><em>config</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.ZIPL.write_config_images" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.bootloader.get_boot_block">
|
|
<tt class="descclassname">pyanaconda.bootloader.</tt><tt class="descname">get_boot_block</tt><big>(</big><em>device</em>, <em>seek_blocks=0</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.get_boot_block" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.bootloader.get_bootloader">
|
|
<tt class="descclassname">pyanaconda.bootloader.</tt><tt class="descname">get_bootloader</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.get_bootloader" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.bootloader.has_windows_boot_block">
|
|
<tt class="descclassname">pyanaconda.bootloader.</tt><tt class="descname">has_windows_boot_block</tt><big>(</big><em>device</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.has_windows_boot_block" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.bootloader.is_windows_boot_block">
|
|
<tt class="descclassname">pyanaconda.bootloader.</tt><tt class="descname">is_windows_boot_block</tt><big>(</big><em>block</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.is_windows_boot_block" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.bootloader.parse_serial_opt">
|
|
<tt class="descclassname">pyanaconda.bootloader.</tt><tt class="descname">parse_serial_opt</tt><big>(</big><em>arg</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.parse_serial_opt" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Parse and split serial console options.</p>
|
|
<dl class="docutils">
|
|
<dt>Documentation/kernel-parameters.txt says:</dt>
|
|
<dd><dl class="first last docutils">
|
|
<dt>ttyS<n>[,options]</dt>
|
|
<dd>Use the specified serial port. The options are of
|
|
the form “bbbbpnf”, where “bbbb” is the baud rate,
|
|
“p” is parity (“n”, “o”, or “e”), “n” is number of
|
|
bits, and “f” is flow control (“r” for RTS or
|
|
omit it). Default is “9600n8”.</dd>
|
|
</dl>
|
|
</dd>
|
|
</dl>
|
|
<p>but note that everything after the baud rate is optional, so these are
|
|
all valid: 9600, 19200n, 38400n8, 9600e7r.
|
|
Also note that the kernel assumes 1 stop bit; this can’t be changed.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.bootloader.serial_opts">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.bootloader.</tt><tt class="descname">serial_opts</tt><a class="headerlink" href="#pyanaconda.bootloader.serial_opts" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.bootloader.writeBootLoader">
|
|
<tt class="descclassname">pyanaconda.bootloader.</tt><tt class="descname">writeBootLoader</tt><big>(</big><em>storage</em>, <em>payload</em>, <em>instClass</em>, <em>ksdata</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.writeBootLoader" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Write bootloader configuration to disk.</p>
|
|
<p>When we get here, the bootloader will already have a default linux
|
|
image. We only have to add images for the non-default kernels and
|
|
adjust the default to reflect whatever the default variant is.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.bootloader.writeBootLoaderFinal">
|
|
<tt class="descclassname">pyanaconda.bootloader.</tt><tt class="descname">writeBootLoaderFinal</tt><big>(</big><em>storage</em>, <em>payload</em>, <em>instClass</em>, <em>ksdata</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.writeBootLoaderFinal" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Do the final write of the bootloader.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.bootloader.writeSysconfigKernel">
|
|
<tt class="descclassname">pyanaconda.bootloader.</tt><tt class="descname">writeSysconfigKernel</tt><big>(</big><em>storage</em>, <em>version</em>, <em>instClass</em><big>)</big><a class="headerlink" href="#pyanaconda.bootloader.writeSysconfigKernel" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.constants">
|
|
<span id="pyanaconda-constants-module"></span><h2>pyanaconda.constants module<a class="headerlink" href="#module-pyanaconda.constants" title="Permalink to this headline">¶</a></h2>
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.constants_text">
|
|
<span id="pyanaconda-constants-text-module"></span><h2>pyanaconda.constants_text module<a class="headerlink" href="#module-pyanaconda.constants_text" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="class">
|
|
<dt id="pyanaconda.constants_text.Translator">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.constants_text.</tt><tt class="descname">Translator</tt><big>(</big><em>button</em>, <em>check</em><big>)</big><a class="headerlink" href="#pyanaconda.constants_text.Translator" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
<p>A simple class to facilitate on-the-fly translation for newt buttons</p>
|
|
</dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.desktop">
|
|
<span id="pyanaconda-desktop-module"></span><h2>pyanaconda.desktop module<a class="headerlink" href="#module-pyanaconda.desktop" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="class">
|
|
<dt id="pyanaconda.desktop.Desktop">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.desktop.</tt><tt class="descname">Desktop</tt><a class="headerlink" href="#pyanaconda.desktop.Desktop" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.desktop.Desktop.runlevel">
|
|
<tt class="descname">runlevel</tt><a class="headerlink" href="#pyanaconda.desktop.Desktop.runlevel" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.desktop.Desktop.write">
|
|
<tt class="descname">write</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.desktop.Desktop.write" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.errors">
|
|
<span id="pyanaconda-errors-module"></span><h2>pyanaconda.errors module<a class="headerlink" href="#module-pyanaconda.errors" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.errors.InvalidImageSizeError">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.errors.</tt><tt class="descname">InvalidImageSizeError</tt><big>(</big><em>message</em>, <em>filename</em><big>)</big><a class="headerlink" href="#pyanaconda.errors.InvalidImageSizeError" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.Exception</span></tt></p>
|
|
</dd></dl>
|
|
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.errors.MissingImageError">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.errors.</tt><tt class="descname">MissingImageError</tt><a class="headerlink" href="#pyanaconda.errors.MissingImageError" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.Exception</span></tt></p>
|
|
</dd></dl>
|
|
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.errors.MediaUnmountError">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.errors.</tt><tt class="descname">MediaUnmountError</tt><big>(</big><em>device</em><big>)</big><a class="headerlink" href="#pyanaconda.errors.MediaUnmountError" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.Exception</span></tt></p>
|
|
</dd></dl>
|
|
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.errors.MediaMountError">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.errors.</tt><tt class="descname">MediaMountError</tt><big>(</big><em>device</em><big>)</big><a class="headerlink" href="#pyanaconda.errors.MediaMountError" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.Exception</span></tt></p>
|
|
</dd></dl>
|
|
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.errors.ScriptError">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.errors.</tt><tt class="descname">ScriptError</tt><big>(</big><em>lineno</em>, <em>details</em><big>)</big><a class="headerlink" href="#pyanaconda.errors.ScriptError" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.Exception</span></tt></p>
|
|
</dd></dl>
|
|
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.errors.CmdlineError">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.errors.</tt><tt class="descname">CmdlineError</tt><a class="headerlink" href="#pyanaconda.errors.CmdlineError" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.Exception</span></tt></p>
|
|
</dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.exception">
|
|
<span id="pyanaconda-exception-module"></span><h2>pyanaconda.exception module<a class="headerlink" href="#module-pyanaconda.exception" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="class">
|
|
<dt id="pyanaconda.exception.AnacondaExceptionHandler">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.exception.</tt><tt class="descname">AnacondaExceptionHandler</tt><big>(</big><em>confObj</em>, <em>intfClass</em>, <em>exnClass</em>, <em>tty_num</em>, <em>gui_lock</em>, <em>interactive</em><big>)</big><a class="headerlink" href="#pyanaconda.exception.AnacondaExceptionHandler" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">meh.handler.ExceptionHandler</span></tt></p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">See:</th><td class="field-body">python-meh’s ExceptionHandler</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Parameters:</th><td class="field-body"><strong>tty_num</strong> – the number of tty the interface is running on</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.exception.AnacondaExceptionHandler.handleException">
|
|
<tt class="descname">handleException</tt><big>(</big><em>dump_info</em><big>)</big><a class="headerlink" href="#pyanaconda.exception.AnacondaExceptionHandler.handleException" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Our own handleException method doing some additional stuff before
|
|
calling the original python-meh’s one.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">See:</th><td class="field-body">python-meh’s ExceptionHandler.handleException</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.exception.AnacondaExceptionHandler.postWriteHook">
|
|
<tt class="descname">postWriteHook</tt><big>(</big><em>dump_info</em><big>)</big><a class="headerlink" href="#pyanaconda.exception.AnacondaExceptionHandler.postWriteHook" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.exception.AnacondaExceptionHandler.runDebug">
|
|
<tt class="descname">runDebug</tt><big>(</big><em>exc_info</em><big>)</big><a class="headerlink" href="#pyanaconda.exception.AnacondaExceptionHandler.runDebug" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.exception.initExceptionHandling">
|
|
<tt class="descclassname">pyanaconda.exception.</tt><tt class="descname">initExceptionHandling</tt><big>(</big><em>anaconda</em><big>)</big><a class="headerlink" href="#pyanaconda.exception.initExceptionHandling" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.exception.journalctl_callback">
|
|
<tt class="descclassname">pyanaconda.exception.</tt><tt class="descname">journalctl_callback</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.exception.journalctl_callback" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Callback to get logs from journalctl.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.exception.list_addons_callback">
|
|
<tt class="descclassname">pyanaconda.exception.</tt><tt class="descname">list_addons_callback</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.exception.list_addons_callback" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Callback to get info about the addons potentially affecting Anaconda’s
|
|
behaviour.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.exception.lsblk_callback">
|
|
<tt class="descclassname">pyanaconda.exception.</tt><tt class="descname">lsblk_callback</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.exception.lsblk_callback" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Callback to get info about block devices.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.exception.nmcli_dev_list_callback">
|
|
<tt class="descclassname">pyanaconda.exception.</tt><tt class="descname">nmcli_dev_list_callback</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.exception.nmcli_dev_list_callback" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Callback to get info about network devices.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.exception.test_exception_handling">
|
|
<tt class="descclassname">pyanaconda.exception.</tt><tt class="descname">test_exception_handling</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.exception.test_exception_handling" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function that can be used for testing exception handling in anaconda. It
|
|
tries to prepare a worst case scenario designed from bugs seen so far.</p>
|
|
</dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.flags">
|
|
<span id="pyanaconda-flags-module"></span><h2>pyanaconda.flags module<a class="headerlink" href="#module-pyanaconda.flags" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="class">
|
|
<dt id="pyanaconda.flags.BootArgs">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.flags.</tt><tt class="descname">BootArgs</tt><big>(</big><em>cmdline=None</em>, <em>files=None</em><big>)</big><a class="headerlink" href="#pyanaconda.flags.BootArgs" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/collections.html#collections.OrderedDict" title="(in Python v3.4)"><tt class="xref py py-class docutils literal"><span class="pre">collections.OrderedDict</span></tt></a></p>
|
|
<p>Hold boot arguments as an OrderedDict.</p>
|
|
<p>Create a BootArgs object.
|
|
Reads each of the “files”, then parses “cmdline” if it was provided.</p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.flags.BootArgs.getbool">
|
|
<tt class="descname">getbool</tt><big>(</big><em>arg</em>, <em>default=False</em><big>)</big><a class="headerlink" href="#pyanaconda.flags.BootArgs.getbool" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return the value of the given arg, as a boolean. The rules are:
|
|
- “arg”, “arg=val”: True
|
|
- “noarg”, “noarg=val”, “arg=[0|off|no]”: False</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.flags.BootArgs.read">
|
|
<tt class="descname">read</tt><big>(</big><em>filenames</em><big>)</big><a class="headerlink" href="#pyanaconda.flags.BootArgs.read" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Read and parse a filename (or a list of filenames).
|
|
Files that can’t be read are silently ignored.
|
|
Returns a list of successfully read files.
|
|
filenames can contain <a href="#id1"><span class="problematic" id="id2">*</span></a>, ?, and character ranges expressed with []</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.flags.BootArgs.readstr">
|
|
<tt class="descname">readstr</tt><big>(</big><em>cmdline</em><big>)</big><a class="headerlink" href="#pyanaconda.flags.BootArgs.readstr" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.flags.Flags">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.flags.</tt><tt class="descname">Flags</tt><big>(</big><em>read_cmdline=True</em><big>)</big><a class="headerlink" href="#pyanaconda.flags.Flags" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.flags.Flags.get">
|
|
<tt class="descname">get</tt><big>(</big><em>attr</em>, <em>val=None</em><big>)</big><a class="headerlink" href="#pyanaconda.flags.Flags.get" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.flags.Flags.read_cmdline">
|
|
<tt class="descname">read_cmdline</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.flags.Flags.read_cmdline" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.flags.Flags.set_cmdline_bool">
|
|
<tt class="descname">set_cmdline_bool</tt><big>(</big><em>flag</em><big>)</big><a class="headerlink" href="#pyanaconda.flags.Flags.set_cmdline_bool" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.flags.can_touch_runtime_system">
|
|
<tt class="descclassname">pyanaconda.flags.</tt><tt class="descname">can_touch_runtime_system</tt><big>(</big><em>msg</em>, <em>touch_live=False</em><big>)</big><a class="headerlink" href="#pyanaconda.flags.can_touch_runtime_system" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Guard that should be used before doing actions that modify runtime system.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
|
|
<li><strong>msg</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – message to be logged in case that runtime system cannot be touched</li>
|
|
<li><strong>touch_live</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.4)"><em>bool</em></a>) – whether to allow touching liveCD installation system</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">bool</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.flags.eintr_retry_call">
|
|
<tt class="descclassname">pyanaconda.flags.</tt><tt class="descname">eintr_retry_call</tt><big>(</big><em>func</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.flags.eintr_retry_call" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Retry an interruptible system call if interrupted.</p>
|
|
</dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.geoloc">
|
|
<span id="pyanaconda-geoloc-module"></span><h2>pyanaconda.geoloc module<a class="headerlink" href="#module-pyanaconda.geoloc" title="Permalink to this headline">¶</a></h2>
|
|
<p>A GeoIP and WiFi location module - location detection based on IP address</p>
|
|
<p>How to use the geolocation module</p>
|
|
<p>First call init_geolocation() - this creates the LocationInfo singleton and
|
|
you can also use it to set what geolocation provider should be used.
|
|
To actually look up current position, call refresh() - this will trigger
|
|
the actual online geolocation query, which runs in a thread.
|
|
After the look-up thread finishes, the results are stored in the singleton
|
|
and can be retrieved using the get_territory_code() and get_result() methods.
|
|
If you call these methods without calling refresh() first or if the look-up
|
|
is currently in progress, both return None.</p>
|
|
<p>Geolocation backends</p>
|
|
<p>This module currently supports three geolocation backends:
|
|
* Fedora GeoIP API
|
|
* Hostip GeoIP
|
|
* Google WiFi</p>
|
|
<p>Fedora GeoIP backend
|
|
This is the default backend. It queries the Fedora GeoIP API for location
|
|
data based on current public IP address. The reply is JSON formated and
|
|
contains the following fields:
|
|
postal_code, latitude, longitude, region, city, country_code, country_name,
|
|
time_zone, country_code3, area_code, metro_code, region_name and dma_code
|
|
Anaconda currently uses just time_zone and country_code.</p>
|
|
<p>Hostip backend
|
|
A GeoIP look-up backend that can be used to determine current country code
|
|
from current public IP address. The public IP address is determined
|
|
automatically when calling the API.
|
|
GeoIP results from Hostip contain the current public IP and an approximate
|
|
address. To get this detail location info, use the get_result() method
|
|
to get an instance of the LocationResult class, used to wrap the result.</p>
|
|
<p>Google WiFi backend
|
|
This backend is probably the most accurate one, at least as long as the
|
|
computer has a working WiFi hardware and there are some WiFi APs nearby.
|
|
It sends data about nearby APs (ssid, MAC address & signal strength)
|
|
acquired from Network Manager to a Google API to get approximate
|
|
geographic coordinates. If there are enough AP nearby (such as in a
|
|
normal city) it can be very accurate, even up to currently determining
|
|
which building is the computer currently in.
|
|
But this only returns current geographic coordinates, to get country code
|
|
the Nominatim reverse-geocoding API is called to convert the coordinates
|
|
to an address, which includes a country code.
|
|
While having many advantages, this backend also has some severe disadvantages:
|
|
* needs working WiFi hardware
|
|
* tells your public IP address & possibly quite precise geographic coordinates</p>
|
|
<blockquote>
|
|
<div>to two external entities (Google and Nominatim)</div></blockquote>
|
|
<p>This could have severe privacy issues and should be carefully considered before
|
|
enabling it to be used by default.
|
|
* the Google WiFi geolocation API seems to lack official documentation
|
|
As a result its long-term stability might not be guarantied.</p>
|
|
<p>Possible issues with GeoIP</p>
|
|
<p>“I’m in Switzerland connected to corporate VPN and anaconda tells me
|
|
I’m in Netherlands.”
|
|
The public IP address is not directly mapped to the physical location
|
|
of a computer. So while your world visible IP address is registered to
|
|
an IP block assigned to an ISP in Netherlands, it is just the external
|
|
address of the Internet gateway of your corporate network.
|
|
As VPNs and proxies can connect two computers anywhere on Earth,
|
|
this issue is unfortunately probably unsolvable.</p>
|
|
<p>Backends that could possibly be used in the future
|
|
* GPS geolocation
|
|
+ doesn’t leak your coordinates to a third party
|
|
(not entirely true for assisted GPS)
|
|
- unassisted cold GPS startup can take tens of minutes to acquire a GPS fix
|
|
+ assisted GPS startup (as used in most smartphones) can acquire a fix
|
|
in a couple seconds
|
|
* cell tower geolocation</p>
|
|
<dl class="class">
|
|
<dt id="pyanaconda.geoloc.Coordinates">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.geoloc.</tt><tt class="descname">Coordinates</tt><big>(</big><em>lat=None</em>, <em>lon=None</em><big>)</big><a class="headerlink" href="#pyanaconda.geoloc.Coordinates" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
<p>A set of geographic coordinates.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>lat</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.4)"><em>float</em></a>) – WGS84 latitude</li>
|
|
<li><strong>lon</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#float" title="(in Python v3.4)"><em>float</em></a>) – WGS84 longitude</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.geoloc.Coordinates.latitude">
|
|
<tt class="descname">latitude</tt><a class="headerlink" href="#pyanaconda.geoloc.Coordinates.latitude" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.geoloc.Coordinates.longitude">
|
|
<tt class="descname">longitude</tt><a class="headerlink" href="#pyanaconda.geoloc.Coordinates.longitude" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.geoloc.FedoraGeoIPProvider">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.geoloc.</tt><tt class="descname">FedoraGeoIPProvider</tt><a class="headerlink" href="#pyanaconda.geoloc.FedoraGeoIPProvider" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#pyanaconda.geoloc.GeolocationBackend" title="pyanaconda.geoloc.GeolocationBackend"><tt class="xref py py-class docutils literal"><span class="pre">pyanaconda.geoloc.GeolocationBackend</span></tt></a></p>
|
|
<p>The Fedora GeoIP service provider</p>
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.geoloc.FedoraGeoIPProvider.API_URL">
|
|
<tt class="descname">API_URL</tt><em class="property"> = 'https://geoip.fedoraproject.org/city'</em><a class="headerlink" href="#pyanaconda.geoloc.FedoraGeoIPProvider.API_URL" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.geoloc.FedoraGeoIPProvider.get_name">
|
|
<tt class="descname">get_name</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.geoloc.FedoraGeoIPProvider.get_name" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.geoloc.Geocoder">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.geoloc.</tt><tt class="descname">Geocoder</tt><big>(</big><em>geocoder='geocoder_nominatim'</em><big>)</big><a class="headerlink" href="#pyanaconda.geoloc.Geocoder" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
<p>Provides online geocoding services
|
|
(only reverse geocoding at the moment).</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>geocoder</strong> – a constant selecting what geocoder to use</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.geoloc.Geocoder.NOMINATIM_API_URL">
|
|
<tt class="descname">NOMINATIM_API_URL</tt><em class="property"> = 'http://open.mapquestapi.com/nominatim/v1/reverse.php?format=json'</em><a class="headerlink" href="#pyanaconda.geoloc.Geocoder.NOMINATIM_API_URL" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.geoloc.Geocoder.reverse_geocode_coords">
|
|
<tt class="descname">reverse_geocode_coords</tt><big>(</big><em>coordinates</em><big>)</big><a class="headerlink" href="#pyanaconda.geoloc.Geocoder.reverse_geocode_coords" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Turn geographic coordinates to address</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>coordinates</strong> (<em>Coordinates</em>) – Coordinates (geographic coordinates)</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">GeocodingResult if the lookup succeeds or None if it fails</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.geoloc.GeocodingResult">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.geoloc.</tt><tt class="descname">GeocodingResult</tt><big>(</big><em>coordinates=None</em>, <em>territory_code=None</em>, <em>address=None</em><big>)</big><a class="headerlink" href="#pyanaconda.geoloc.GeocodingResult" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
<p>A result from geocoding lookup</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>coordinates</strong> (<em>Coordinates</em>) – geographic coordinates</li>
|
|
<li><strong>territory_code</strong> (<a class="reference external" href="https://docs.python.org/3/library/string.html#module-string" title="(in Python v3.4)"><em>string</em></a>) – territory code of the result</li>
|
|
<li><strong>address</strong> (<a class="reference external" href="https://docs.python.org/3/library/string.html#module-string" title="(in Python v3.4)"><em>string</em></a>) – a (street) address string</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.geoloc.GeocodingResult.address">
|
|
<tt class="descname">address</tt><a class="headerlink" href="#pyanaconda.geoloc.GeocodingResult.address" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.geoloc.GeocodingResult.coordinates">
|
|
<tt class="descname">coordinates</tt><a class="headerlink" href="#pyanaconda.geoloc.GeocodingResult.coordinates" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.geoloc.GeocodingResult.territory_code">
|
|
<tt class="descname">territory_code</tt><a class="headerlink" href="#pyanaconda.geoloc.GeocodingResult.territory_code" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.geoloc.GeolocationBackend">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.geoloc.</tt><tt class="descname">GeolocationBackend</tt><a class="headerlink" href="#pyanaconda.geoloc.GeolocationBackend" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
<p>Base class for GeoIP backends.</p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.geoloc.GeolocationBackend.get_name">
|
|
<tt class="descname">get_name</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.geoloc.GeolocationBackend.get_name" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Get name of the backend</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">name of the backend</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">string</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.geoloc.GeolocationBackend.get_result">
|
|
<tt class="descname">get_result</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.geoloc.GeolocationBackend.get_result" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Get current location</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">geolocation lookup result</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">LocationResult</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.geoloc.GeolocationBackend.refresh">
|
|
<tt class="descname">refresh</tt><big>(</big><em>force=False</em><big>)</big><a class="headerlink" href="#pyanaconda.geoloc.GeolocationBackend.refresh" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Refresh the geolocation data</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>force</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.4)"><em>bool</em></a>) – do a refresh even if there is a result already available</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.geoloc.GeolocationError">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.geoloc.</tt><tt class="descname">GeolocationError</tt><a class="headerlink" href="#pyanaconda.geoloc.GeolocationError" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.Exception</span></tt></p>
|
|
<p>Exception class for geolocation related errors</p>
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.geoloc.GoogleWiFiLocationProvider">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.geoloc.</tt><tt class="descname">GoogleWiFiLocationProvider</tt><a class="headerlink" href="#pyanaconda.geoloc.GoogleWiFiLocationProvider" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#pyanaconda.geoloc.GeolocationBackend" title="pyanaconda.geoloc.GeolocationBackend"><tt class="xref py py-class docutils literal"><span class="pre">pyanaconda.geoloc.GeolocationBackend</span></tt></a></p>
|
|
<p>The Google WiFi location service provider</p>
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.geoloc.GoogleWiFiLocationProvider.API_URL">
|
|
<tt class="descname">API_URL</tt><em class="property"> = 'https://maps.googleapis.com/maps/api/browserlocation/json?browser=firefox&sensor=true'</em><a class="headerlink" href="#pyanaconda.geoloc.GoogleWiFiLocationProvider.API_URL" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.geoloc.GoogleWiFiLocationProvider.get_name">
|
|
<tt class="descname">get_name</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.geoloc.GoogleWiFiLocationProvider.get_name" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.geoloc.HostipGeoIPProvider">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.geoloc.</tt><tt class="descname">HostipGeoIPProvider</tt><a class="headerlink" href="#pyanaconda.geoloc.HostipGeoIPProvider" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#pyanaconda.geoloc.GeolocationBackend" title="pyanaconda.geoloc.GeolocationBackend"><tt class="xref py py-class docutils literal"><span class="pre">pyanaconda.geoloc.GeolocationBackend</span></tt></a></p>
|
|
<p>The Hostip GeoIP service provider</p>
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.geoloc.HostipGeoIPProvider.API_URL">
|
|
<tt class="descname">API_URL</tt><em class="property"> = 'http://api.hostip.info/get_json.php'</em><a class="headerlink" href="#pyanaconda.geoloc.HostipGeoIPProvider.API_URL" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.geoloc.HostipGeoIPProvider.get_name">
|
|
<tt class="descname">get_name</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.geoloc.HostipGeoIPProvider.get_name" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.geoloc.LocationInfo">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.geoloc.</tt><tt class="descname">LocationInfo</tt><big>(</big><em>provider_id='provider_fedora_geoip'</em>, <em>refresh_now=False</em><big>)</big><a class="headerlink" href="#pyanaconda.geoloc.LocationInfo" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
<p>Determines current location based on IP address or
|
|
nearby WiFi access points (depending on what backend is used)</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>provider_id</strong> – GeoIP provider id specified by module constant</li>
|
|
<li><strong>refresh_now</strong> – if a GeoIP information refresh should be done</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p>once the class is initialized
|
|
:type refresh_now: bool</p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.geoloc.LocationInfo.get_public_ip_address">
|
|
<tt class="descname">get_public_ip_address</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.geoloc.LocationInfo.get_public_ip_address" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>A convenience function for getting current public IP</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">current public IP or None if no results are available</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">string or None</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.geoloc.LocationInfo.get_result">
|
|
<tt class="descname">get_result</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.geoloc.LocationInfo.get_result" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Get result from the provider</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the result object or return None if no results are available</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">LocationResult or None</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.geoloc.LocationInfo.get_territory_code">
|
|
<tt class="descname">get_territory_code</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.geoloc.LocationInfo.get_territory_code" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>A convenience function for getting the current territory code</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">territory code or None if no results are available</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">string or None</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.geoloc.LocationInfo.get_timezone">
|
|
<tt class="descname">get_timezone</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.geoloc.LocationInfo.get_timezone" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>A convenience function for getting the current time zone</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">time zone or None if no results are available</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">string or None</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.geoloc.LocationInfo.refresh">
|
|
<tt class="descname">refresh</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.geoloc.LocationInfo.refresh" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Refresh location info</p>
|
|
</dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.geoloc.LocationResult">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.geoloc.</tt><tt class="descname">LocationResult</tt><big>(</big><em>territory_code=None</em>, <em>timezone=None</em>, <em>timezone_source='unknown'</em>, <em>public_ip_address=None</em>, <em>city=None</em><big>)</big><a class="headerlink" href="#pyanaconda.geoloc.LocationResult" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
<p>Encapsulates the result from GeoIP lookup.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>territory_code</strong> (<a class="reference external" href="https://docs.python.org/3/library/string.html#module-string" title="(in Python v3.4)"><em>string</em></a>) – the territory code from GeoIP lookup</li>
|
|
<li><strong>timezone</strong> (<a class="reference external" href="https://docs.python.org/3/library/string.html#module-string" title="(in Python v3.4)"><em>string</em></a>) – the time zone from GeoIP lookup</li>
|
|
<li><strong>timezone_source</strong> (<a class="reference external" href="https://docs.python.org/3/library/string.html#module-string" title="(in Python v3.4)"><em>string</em></a>) – specifies source of the time zone string</li>
|
|
<li><strong>public_ip_address</strong> (<a class="reference external" href="https://docs.python.org/3/library/string.html#module-string" title="(in Python v3.4)"><em>string</em></a>) – current public IP address</li>
|
|
<li><strong>city</strong> (<a class="reference external" href="https://docs.python.org/3/library/string.html#module-string" title="(in Python v3.4)"><em>string</em></a>) – current city</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.geoloc.LocationResult.city">
|
|
<tt class="descname">city</tt><a class="headerlink" href="#pyanaconda.geoloc.LocationResult.city" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.geoloc.LocationResult.public_ip_address">
|
|
<tt class="descname">public_ip_address</tt><a class="headerlink" href="#pyanaconda.geoloc.LocationResult.public_ip_address" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.geoloc.LocationResult.territory_code">
|
|
<tt class="descname">territory_code</tt><a class="headerlink" href="#pyanaconda.geoloc.LocationResult.territory_code" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.geoloc.LocationResult.timezone">
|
|
<tt class="descname">timezone</tt><a class="headerlink" href="#pyanaconda.geoloc.LocationResult.timezone" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.geoloc.WiFiAccessPoint">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.geoloc.</tt><tt class="descname">WiFiAccessPoint</tt><big>(</big><em>bssid</em>, <em>ssid=None</em>, <em>rssi=None</em><big>)</big><a class="headerlink" href="#pyanaconda.geoloc.WiFiAccessPoint" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
<p>Encapsulates information about WiFi access point</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>bssid</strong> – MAC address of the access point</li>
|
|
<li><strong>ssid</strong> – name of the access point</li>
|
|
<li><strong>rssi</strong> – signal strength</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.geoloc.WiFiAccessPoint.bssid">
|
|
<tt class="descname">bssid</tt><a class="headerlink" href="#pyanaconda.geoloc.WiFiAccessPoint.bssid" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.geoloc.WiFiAccessPoint.rssi">
|
|
<tt class="descname">rssi</tt><a class="headerlink" href="#pyanaconda.geoloc.WiFiAccessPoint.rssi" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.geoloc.WiFiAccessPoint.ssid">
|
|
<tt class="descname">ssid</tt><a class="headerlink" href="#pyanaconda.geoloc.WiFiAccessPoint.ssid" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.geoloc.WifiScanner">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.geoloc.</tt><tt class="descname">WifiScanner</tt><big>(</big><em>scan_now=True</em><big>)</big><a class="headerlink" href="#pyanaconda.geoloc.WifiScanner" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
<p>Uses the Network Manager DBUS API to provide information
|
|
about nearby WiFi access points</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>scan_now</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.4)"><em>bool</em></a>) – if an initial scan should be done</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.geoloc.WifiScanner.NETWORK_MANAGER_DEVICE_TYPE_WIFI">
|
|
<tt class="descname">NETWORK_MANAGER_DEVICE_TYPE_WIFI</tt><em class="property"> = 2</em><a class="headerlink" href="#pyanaconda.geoloc.WifiScanner.NETWORK_MANAGER_DEVICE_TYPE_WIFI" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.geoloc.WifiScanner.get_results">
|
|
<tt class="descname">get_results</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.geoloc.WifiScanner.get_results" title="Permalink to this definition">¶</a></dt>
|
|
<dd><table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">a list of WiFiAccessPoint objects or</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p>an empty list if no APs were found or the scan failed</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.geoloc.WifiScanner.scan">
|
|
<tt class="descname">scan</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.geoloc.WifiScanner.scan" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Scan for WiFi access points</p>
|
|
</dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.geoloc.get_provider_id_from_option">
|
|
<tt class="descclassname">pyanaconda.geoloc.</tt><tt class="descname">get_provider_id_from_option</tt><big>(</big><em>option_string</em><big>)</big><a class="headerlink" href="#pyanaconda.geoloc.get_provider_id_from_option" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Get a valid provider id from a string
|
|
This function is used to parse command line
|
|
arguments/boot options for the geolocation module.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>option_string</strong> (<a class="reference external" href="https://docs.python.org/3/library/string.html#module-string" title="(in Python v3.4)"><em>string</em></a>) – option specifying the provider</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">provider id</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.geoloc.get_result">
|
|
<tt class="descclassname">pyanaconda.geoloc.</tt><tt class="descname">get_result</tt><big>(</big><em>wait=False</em><big>)</big><a class="headerlink" href="#pyanaconda.geoloc.get_result" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns the current geolocation result wrapper
|
|
or None, if:
|
|
- no results were found
|
|
- the refresh is still in progress
|
|
- the geolocation module was not activated (init & refresh were not called)</p>
|
|
<blockquote>
|
|
<div><ul class="simple">
|
|
<li>this is for example the case during image and directory installs</li>
|
|
</ul>
|
|
</div></blockquote>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>wait</strong> – wait for lookup in progress to finish</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p>False - don’t wait
|
|
True - wait for default period
|
|
number - wait for up to number seconds
|
|
:type wait: bool or number
|
|
:return: LocationResult instance or None if location is unknown
|
|
:rtype: LocationResult or None</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.geoloc.get_territory_code">
|
|
<tt class="descclassname">pyanaconda.geoloc.</tt><tt class="descname">get_territory_code</tt><big>(</big><em>wait=False</em><big>)</big><a class="headerlink" href="#pyanaconda.geoloc.get_territory_code" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>This function returns the current country code
|
|
or None, if:
|
|
- no results were found
|
|
- the lookup is still in progress
|
|
- the geolocation module was not activated (init & refresh were not called)</p>
|
|
<blockquote>
|
|
<div><ul class="simple">
|
|
<li>this is for example the case during image and directory installs</li>
|
|
</ul>
|
|
</div></blockquote>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>wait</strong> – wait for lookup in progress to finish</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p>False - don’t wait
|
|
True - wait for default period
|
|
number - wait for up to number seconds
|
|
:type wait: bool or number
|
|
:return: current country code or None if not known
|
|
:rtype: string or None</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.geoloc.get_timezone">
|
|
<tt class="descclassname">pyanaconda.geoloc.</tt><tt class="descname">get_timezone</tt><big>(</big><em>wait=False</em><big>)</big><a class="headerlink" href="#pyanaconda.geoloc.get_timezone" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>This function returns the current time zone
|
|
or None, if:
|
|
- no timezone was found
|
|
- the lookup is still in progress
|
|
- the geolocation module was not activated (init & refresh were not called)</p>
|
|
<blockquote>
|
|
<div><ul class="simple">
|
|
<li>this is for example the case during image and directory installs</li>
|
|
</ul>
|
|
</div></blockquote>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>wait</strong> – wait for lookup in progress to finish</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p>False - don’t wait
|
|
True - wait for default period
|
|
number - wait for up to number seconds
|
|
:type wait: bool or number
|
|
:return: current timezone or None if not known
|
|
:rtype: string or None</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.geoloc.init_geolocation">
|
|
<tt class="descclassname">pyanaconda.geoloc.</tt><tt class="descname">init_geolocation</tt><big>(</big><em>provider_id='provider_fedora_geoip'</em><big>)</big><a class="headerlink" href="#pyanaconda.geoloc.init_geolocation" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Prepare the geolocation module for handling geolocation queries.
|
|
This method sets-up the GeoLocation instance with the given
|
|
geolocation_provider (or using the default one if no provider
|
|
is given. Please note that calling this method doesn’t actually
|
|
execute any queries by itself, you need to call refresh()
|
|
to do that.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>provider_id</strong> – specifies what geolocation backend to use</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.geoloc.refresh">
|
|
<tt class="descclassname">pyanaconda.geoloc.</tt><tt class="descname">refresh</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.geoloc.refresh" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Refresh information about current location using the currently specified
|
|
geolocation provider.</p>
|
|
</dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.i18n">
|
|
<span id="pyanaconda-i18n-module"></span><h2>pyanaconda.i18n module<a class="headerlink" href="#module-pyanaconda.i18n" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="function">
|
|
<dt id="pyanaconda.i18n.N_">
|
|
<tt class="descclassname">pyanaconda.i18n.</tt><tt class="descname">N_</tt><big>(</big><em>x</em><big>)</big><a class="headerlink" href="#pyanaconda.i18n.N_" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.i18n.P_">
|
|
<tt class="descclassname">pyanaconda.i18n.</tt><tt class="descname">P_</tt><big>(</big><em>x</em>, <em>y</em>, <em>z</em><big>)</big><a class="headerlink" href="#pyanaconda.i18n.P_" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.i18n.C_">
|
|
<tt class="descclassname">pyanaconda.i18n.</tt><tt class="descname">C_</tt><big>(</big><em>msgctxt</em>, <em>msgid</em><big>)</big><a class="headerlink" href="#pyanaconda.i18n.C_" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.i18n.CN_">
|
|
<tt class="descclassname">pyanaconda.i18n.</tt><tt class="descname">CN_</tt><big>(</big><em>c</em>, <em>x</em><big>)</big><a class="headerlink" href="#pyanaconda.i18n.CN_" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.i18n.CP_">
|
|
<tt class="descclassname">pyanaconda.i18n.</tt><tt class="descname">CP_</tt><big>(</big><em>msgctxt</em>, <em>msgid</em>, <em>msgid_plural</em>, <em>n</em><big>)</big><a class="headerlink" href="#pyanaconda.i18n.CP_" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.ihelp">
|
|
<span id="pyanaconda-ihelp-module"></span><h2>pyanaconda.ihelp module<a class="headerlink" href="#module-pyanaconda.ihelp" title="Permalink to this headline">¶</a></h2>
|
|
<p>Anaconda built-in help module</p>
|
|
<dl class="function">
|
|
<dt id="pyanaconda.ihelp.get_help_path">
|
|
<tt class="descclassname">pyanaconda.ihelp.</tt><tt class="descname">get_help_path</tt><big>(</big><em>help_file</em>, <em>instclass</em><big>)</big><a class="headerlink" href="#pyanaconda.ihelp.get_help_path" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return the full path for the given help file name,
|
|
if the help file path does not exist a fallback path is returned.
|
|
There are actually two possible fallback paths that might be returned:
|
|
* first we try to return path to the main page of the installation guide</p>
|
|
<blockquote>
|
|
<div>(if it exists)</div></blockquote>
|
|
<ul class="simple">
|
|
<li>if we can’t find the main page of the installation page, path to a
|
|
“no help found” placeholder bundled with Anaconda is returned</li>
|
|
</ul>
|
|
<p>Regarding help l10n, we try to respect the current locale as defined by the
|
|
“LANG” environmental variable, but fallback to English if localized content
|
|
is not available.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
|
|
<li><strong>help_file</strong> (<em>str or NoneType</em>) – help file name</li>
|
|
<li><strong>instclass</strong> – current install class instance</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Return str:</th><td class="field-body"><p class="first last">full path to the help file requested or to a placeholder</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.ihelp.kill_yelp">
|
|
<tt class="descclassname">pyanaconda.ihelp.</tt><tt class="descname">kill_yelp</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.ihelp.kill_yelp" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Try to kill any existing yelp processes</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.ihelp.start_yelp">
|
|
<tt class="descclassname">pyanaconda.ihelp.</tt><tt class="descname">start_yelp</tt><big>(</big><em>help_path</em><big>)</big><a class="headerlink" href="#pyanaconda.ihelp.start_yelp" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Start a new yelp process and make sure to kill any existing ones</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>help_path</strong> (<em>str or NoneType</em>) – path to the help file yelp should load</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.image">
|
|
<span id="pyanaconda-image-module"></span><h2>pyanaconda.image module<a class="headerlink" href="#module-pyanaconda.image" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="function">
|
|
<dt id="pyanaconda.image.findFirstIsoImage">
|
|
<tt class="descclassname">pyanaconda.image.</tt><tt class="descname">findFirstIsoImage</tt><big>(</big><em>path</em><big>)</big><a class="headerlink" href="#pyanaconda.image.findFirstIsoImage" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Find the first iso image in path
|
|
This also supports specifying a specific .iso image</p>
|
|
<p>Returns the basename of the image</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.image.getMediaId">
|
|
<tt class="descclassname">pyanaconda.image.</tt><tt class="descname">getMediaId</tt><big>(</big><em>path</em><big>)</big><a class="headerlink" href="#pyanaconda.image.getMediaId" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.image.mountImage">
|
|
<tt class="descclassname">pyanaconda.image.</tt><tt class="descname">mountImage</tt><big>(</big><em>isodir</em>, <em>tree</em><big>)</big><a class="headerlink" href="#pyanaconda.image.mountImage" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.image.mountImageDirectory">
|
|
<tt class="descclassname">pyanaconda.image.</tt><tt class="descname">mountImageDirectory</tt><big>(</big><em>method</em>, <em>storage</em><big>)</big><a class="headerlink" href="#pyanaconda.image.mountImageDirectory" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.image.opticalInstallMedia">
|
|
<tt class="descclassname">pyanaconda.image.</tt><tt class="descname">opticalInstallMedia</tt><big>(</big><em>devicetree</em><big>)</big><a class="headerlink" href="#pyanaconda.image.opticalInstallMedia" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.image.potentialHdisoSources">
|
|
<tt class="descclassname">pyanaconda.image.</tt><tt class="descname">potentialHdisoSources</tt><big>(</big><em>devicetree</em><big>)</big><a class="headerlink" href="#pyanaconda.image.potentialHdisoSources" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.image.umountImage">
|
|
<tt class="descclassname">pyanaconda.image.</tt><tt class="descname">umountImage</tt><big>(</big><em>tree</em><big>)</big><a class="headerlink" href="#pyanaconda.image.umountImage" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.image.verifyMedia">
|
|
<tt class="descclassname">pyanaconda.image.</tt><tt class="descname">verifyMedia</tt><big>(</big><em>tree</em>, <em>timestamp=None</em><big>)</big><a class="headerlink" href="#pyanaconda.image.verifyMedia" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.install">
|
|
<span id="pyanaconda-install-module"></span><h2>pyanaconda.install module<a class="headerlink" href="#module-pyanaconda.install" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="function">
|
|
<dt id="pyanaconda.install.doConfiguration">
|
|
<tt class="descclassname">pyanaconda.install.</tt><tt class="descname">doConfiguration</tt><big>(</big><em>storage</em>, <em>payload</em>, <em>ksdata</em>, <em>instClass</em><big>)</big><a class="headerlink" href="#pyanaconda.install.doConfiguration" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.install.doInstall">
|
|
<tt class="descclassname">pyanaconda.install.</tt><tt class="descname">doInstall</tt><big>(</big><em>storage</em>, <em>payload</em>, <em>ksdata</em>, <em>instClass</em><big>)</big><a class="headerlink" href="#pyanaconda.install.doInstall" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Perform an installation. This method takes the ksdata as prepared by
|
|
the UI (the first hub, in graphical mode) and applies it to the disk.
|
|
The two main tasks for this are putting filesystems onto disks and
|
|
installing packages onto those filesystems.</p>
|
|
</dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.installclass">
|
|
<span id="pyanaconda-installclass-module"></span><h2>pyanaconda.installclass module<a class="headerlink" href="#module-pyanaconda.installclass" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="class">
|
|
<dt id="pyanaconda.installclass.BaseInstallClass">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.installclass.</tt><tt class="descname">BaseInstallClass</tt><a class="headerlink" href="#pyanaconda.installclass.BaseInstallClass" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.installclass.BaseInstallClass.bootloaderExtraArgs">
|
|
<tt class="descname">bootloaderExtraArgs</tt><em class="property"> = []</em><a class="headerlink" href="#pyanaconda.installclass.BaseInstallClass.bootloaderExtraArgs" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.installclass.BaseInstallClass.bootloaderTimeoutDefault">
|
|
<tt class="descname">bootloaderTimeoutDefault</tt><em class="property"> = None</em><a class="headerlink" href="#pyanaconda.installclass.BaseInstallClass.bootloaderTimeoutDefault" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.installclass.BaseInstallClass.configure">
|
|
<tt class="descname">configure</tt><big>(</big><em>anaconda</em><big>)</big><a class="headerlink" href="#pyanaconda.installclass.BaseInstallClass.configure" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.installclass.BaseInstallClass.defaultFS">
|
|
<tt class="descname">defaultFS</tt><em class="property"> = None</em><a class="headerlink" href="#pyanaconda.installclass.BaseInstallClass.defaultFS" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.installclass.BaseInstallClass.defaultPackageEnvironment">
|
|
<tt class="descname">defaultPackageEnvironment</tt><em class="property"> = None</em><a class="headerlink" href="#pyanaconda.installclass.BaseInstallClass.defaultPackageEnvironment" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.installclass.BaseInstallClass.getBackend">
|
|
<tt class="descname">getBackend</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.installclass.BaseInstallClass.getBackend" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.installclass.BaseInstallClass.help_folder">
|
|
<tt class="descname">help_folder</tt><em class="property"> = '/usr/share/anaconda/help'</em><a class="headerlink" href="#pyanaconda.installclass.BaseInstallClass.help_folder" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.installclass.BaseInstallClass.help_main_page">
|
|
<tt class="descname">help_main_page</tt><em class="property"> = 'Installation_Guide.xml'</em><a class="headerlink" href="#pyanaconda.installclass.BaseInstallClass.help_main_page" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.installclass.BaseInstallClass.help_placeholder">
|
|
<tt class="descname">help_placeholder</tt><em class="property"> = None</em><a class="headerlink" href="#pyanaconda.installclass.BaseInstallClass.help_placeholder" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.installclass.BaseInstallClass.help_placeholder_with_links">
|
|
<tt class="descname">help_placeholder_with_links</tt><em class="property"> = None</em><a class="headerlink" href="#pyanaconda.installclass.BaseInstallClass.help_placeholder_with_links" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.installclass.BaseInstallClass.hidden">
|
|
<tt class="descname">hidden</tt><em class="property"> = False</em><a class="headerlink" href="#pyanaconda.installclass.BaseInstallClass.hidden" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.installclass.BaseInstallClass.ignoredPackages">
|
|
<tt class="descname">ignoredPackages</tt><em class="property"> = []</em><a class="headerlink" href="#pyanaconda.installclass.BaseInstallClass.ignoredPackages" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.installclass.BaseInstallClass.installUpdates">
|
|
<tt class="descname">installUpdates</tt><em class="property"> = True</em><a class="headerlink" href="#pyanaconda.installclass.BaseInstallClass.installUpdates" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.installclass.BaseInstallClass.l10n_domain">
|
|
<tt class="descname">l10n_domain</tt><a class="headerlink" href="#pyanaconda.installclass.BaseInstallClass.l10n_domain" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.installclass.BaseInstallClass.name">
|
|
<tt class="descname">name</tt><em class="property"> = 'base'</em><a class="headerlink" href="#pyanaconda.installclass.BaseInstallClass.name" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.installclass.BaseInstallClass.setDefaultPartitioning">
|
|
<tt class="descname">setDefaultPartitioning</tt><big>(</big><em>storage</em><big>)</big><a class="headerlink" href="#pyanaconda.installclass.BaseInstallClass.setDefaultPartitioning" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.installclass.BaseInstallClass.setNetworkOnbootDefault">
|
|
<tt class="descname">setNetworkOnbootDefault</tt><big>(</big><em>ksdata</em><big>)</big><a class="headerlink" href="#pyanaconda.installclass.BaseInstallClass.setNetworkOnbootDefault" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.installclass.BaseInstallClass.setPackageSelection">
|
|
<tt class="descname">setPackageSelection</tt><big>(</big><em>anaconda</em><big>)</big><a class="headerlink" href="#pyanaconda.installclass.BaseInstallClass.setPackageSelection" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.installclass.BaseInstallClass.stylesheet">
|
|
<tt class="descname">stylesheet</tt><em class="property"> = None</em><a class="headerlink" href="#pyanaconda.installclass.BaseInstallClass.stylesheet" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.installclass.DefaultInstall">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.installclass.</tt><tt class="descname">DefaultInstall</tt><a class="headerlink" href="#pyanaconda.installclass.DefaultInstall" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">fedora.FedoraBaseInstallClass</span></tt></p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.installclass.availableClasses">
|
|
<tt class="descclassname">pyanaconda.installclass.</tt><tt class="descname">availableClasses</tt><big>(</big><em>showHidden=False</em><big>)</big><a class="headerlink" href="#pyanaconda.installclass.availableClasses" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.installclass.getBaseInstallClass">
|
|
<tt class="descclassname">pyanaconda.installclass.</tt><tt class="descname">getBaseInstallClass</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.installclass.getBaseInstallClass" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.installinterfacebase">
|
|
<span id="pyanaconda-installinterfacebase-module"></span><h2>pyanaconda.installinterfacebase module<a class="headerlink" href="#module-pyanaconda.installinterfacebase" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="class">
|
|
<dt id="pyanaconda.installinterfacebase.InstallInterfaceBase">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.installinterfacebase.</tt><tt class="descname">InstallInterfaceBase</tt><a class="headerlink" href="#pyanaconda.installinterfacebase.InstallInterfaceBase" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.installinterfacebase.InstallInterfaceBase.detailedMessageWindow">
|
|
<tt class="descname">detailedMessageWindow</tt><big>(</big><em>title</em>, <em>text</em>, <em>longText=None</em>, <em>ty='ok'</em>, <em>default=None</em>, <em>custom_icon=None</em>, <em>custom_buttons=None</em>, <em>expanded=False</em><big>)</big><a class="headerlink" href="#pyanaconda.installinterfacebase.InstallInterfaceBase.detailedMessageWindow" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.installinterfacebase.InstallInterfaceBase.messageWindow">
|
|
<tt class="descname">messageWindow</tt><big>(</big><em>title</em>, <em>text</em>, <em>ty='ok'</em>, <em>default=None</em>, <em>custom_buttons=None</em>, <em>custom_icon=None</em><big>)</big><a class="headerlink" href="#pyanaconda.installinterfacebase.InstallInterfaceBase.messageWindow" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.iutil">
|
|
<span id="pyanaconda-iutil-module"></span><h2>pyanaconda.iutil module<a class="headerlink" href="#module-pyanaconda.iutil" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="class">
|
|
<dt id="pyanaconda.iutil.DataHolder">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">DataHolder</tt><big>(</big><em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.DataHolder" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.dict</span></tt></p>
|
|
<p>A dict that lets you also access keys using dot notation.</p>
|
|
<p>kwargs are set as keys for the dict.</p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.iutil.DataHolder.copy">
|
|
<tt class="descname">copy</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.iutil.DataHolder.copy" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.iutil.ExitError">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">ExitError</tt><a class="headerlink" href="#pyanaconda.iutil.ExitError" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.RuntimeError</span></tt></p>
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.iutil.ProxyString">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">ProxyString</tt><big>(</big><em>url=None</em>, <em>protocol='http://'</em>, <em>host=None</em>, <em>port='3128'</em>, <em>username=None</em>, <em>password=None</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.ProxyString" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
<p>Handle a proxy url</p>
|
|
<p>Initialize with either url
|
|
([protocol://][username[:password]@]host[:port]) or pass host and
|
|
optionally:</p>
|
|
<p>protocol http, https, ftp
|
|
host hostname without protocol
|
|
port port number (defaults to 3128)
|
|
username username
|
|
password password</p>
|
|
<p>The str() of the object is the full proxy url</p>
|
|
<p>ProxyString.url is the full url including username:password@
|
|
ProxyString.noauth_url is the url without username:password@</p>
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.iutil.ProxyString.dict">
|
|
<tt class="descname">dict</tt><a class="headerlink" href="#pyanaconda.iutil.ProxyString.dict" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>return a dict of all the elements of the proxy string
|
|
url, noauth_url, protocol, host, port, username, password</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.iutil.ProxyString.parse_components">
|
|
<tt class="descname">parse_components</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.iutil.ProxyString.parse_components" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Parse the components of a proxy url into url and noauth_url</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.iutil.ProxyString.parse_url">
|
|
<tt class="descname">parse_url</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.iutil.ProxyString.parse_url" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Parse the proxy url into its component pieces</p>
|
|
</dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.iutil.ProxyStringError">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">ProxyStringError</tt><a class="headerlink" href="#pyanaconda.iutil.ProxyStringError" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.Exception</span></tt></p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.add_po_path">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">add_po_path</tt><big>(</big><em>directory</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.add_po_path" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Looks to see what translations are under a given path and tells
|
|
the gettext module to use that path as the base dir</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.augmentEnv">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">augmentEnv</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.iutil.augmentEnv" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.chown_dir_tree">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">chown_dir_tree</tt><big>(</big><em>root</em>, <em>uid</em>, <em>gid</em>, <em>from_uid_only=None</em>, <em>from_gid_only=None</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.chown_dir_tree" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Change owner (uid and gid) of the files and directories under the given
|
|
directory tree (recursively).</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>root</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – root of the directory tree that should be chown’ed</li>
|
|
<li><strong>uid</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.4)"><em>int</em></a>) – UID that should be set as the owner</li>
|
|
<li><strong>gid</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.4)"><em>int</em></a>) – GID that should be set as the owner</li>
|
|
<li><strong>from_uid_only</strong> (<em>int or None</em>) – if given, the owner is changed only for the files and
|
|
directories owned by that UID</li>
|
|
<li><strong>from_gid_only</strong> (<em>int or None</em>) – if given, the owner is changed only for the files and
|
|
directories owned by that GID</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.cmp_obj_attrs">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">cmp_obj_attrs</tt><big>(</big><em>obj1</em>, <em>obj2</em>, <em>attr_list</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.cmp_obj_attrs" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Compare attributes of 2 objects for changes</p>
|
|
<p>Missing attrs are considered a mismatch</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
|
|
<li><strong>obj1</strong> (<em>Any object</em>) – First object to compare</li>
|
|
<li><strong>obj2</strong> (<em>Any object</em>) – Second object to compare</li>
|
|
<li><strong>attr_list</strong> (<em>list or tuple of strings</em>) – List of attributes to compare</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">True if the attrs all match</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">bool</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.dir_tree_map">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">dir_tree_map</tt><big>(</big><em>root</em>, <em>func</em>, <em>files=True</em>, <em>dirs=True</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.dir_tree_map" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Apply the given function to all files and directories in the directory tree
|
|
under the given root directory.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>root</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – root of the directory tree the function should be mapped to</li>
|
|
<li><strong>func</strong> (<em>path -> None</em>) – a function taking the directory/file path</li>
|
|
<li><strong>files</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.4)"><em>bool</em></a>) – whether to apply the function to the files in the dir. tree</li>
|
|
<li><strong>dirs</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.4)"><em>bool</em></a>) – whether to apply the function to the directories in the dir. tree</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p>TODO: allow using globs and thus more trees?</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.dracut_eject">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">dracut_eject</tt><big>(</big><em>device</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.dracut_eject" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Use dracut shutdown hook to eject media after the system is shutdown.
|
|
This is needed because we are running from the squashfs.img on the media
|
|
so ejecting too early will crash the installer.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.eintr_ignore">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">eintr_ignore</tt><big>(</big><em>func</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.eintr_ignore" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Call a function and ignore EINTR.</p>
|
|
<p>This is useful for calls to close() and dup2(), which can return EINTR
|
|
but which should <em>not</em> be retried, since by the time they return the
|
|
file descriptor is already closed.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.eintr_retry_call">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">eintr_retry_call</tt><big>(</big><em>func</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.eintr_retry_call" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Retry an interruptible system call if interrupted.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.ensure_str">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">ensure_str</tt><big>(</big><em>str_or_bytes</em>, <em>keep_none=True</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.ensure_str" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns a str instance for given string or None if requested to keep it.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
|
|
<li><strong>str_or_bytes</strong> (<em>str or bytes</em>) – string to be kept or converted to str type</li>
|
|
<li><strong>keep_none</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.4)"><em>bool</em></a>) – whether to keep None as it is or raise ValueError if
|
|
None is passed</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name" colspan="2">Raises <a class="reference external" href="https://docs.python.org/3/library/exceptions.html#ValueError" title="(in Python v3.4)">ValueError</a>:</th></tr>
|
|
<tr class="field-even field"><td> </td><td class="field-body"><p class="first last">if applied on an object not being of type bytes nor str
|
|
(nor NoneType if <a href="#id3"><span class="problematic" id="id4">:param:`keep_none`</span></a> is False)</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.execConsole">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">execConsole</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.iutil.execConsole" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.execInSysroot">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">execInSysroot</tt><big>(</big><em>command</em>, <em>argv</em>, <em>stdin=None</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.execInSysroot" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Run an external program in the target root.
|
|
:param command: The command to run
|
|
:param argv: The argument list
|
|
:param stdin: The file object to read stdin from.
|
|
:return: The return code of the command</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.execReadlines">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">execReadlines</tt><big>(</big><em>command</em>, <em>argv</em>, <em>stdin=None</em>, <em>root='/'</em>, <em>env_prune=None</em>, <em>filter_stderr=False</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.execReadlines" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Execute an external command and return the line output of the command
|
|
in real-time.</p>
|
|
<p>This method assumes that there is a reasonably low delay between the
|
|
end of output and the process exiting. If the child process closes
|
|
stdout and then keeps on truckin’ there will be problems.</p>
|
|
<dl class="docutils">
|
|
<dt>NOTE/WARNING: UnicodeDecodeError will be raised if the output of the</dt>
|
|
<dd>external command can’t be decoded as UTF-8.</dd>
|
|
</dl>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>command</strong> – The command to run</li>
|
|
<li><strong>argv</strong> – The argument list</li>
|
|
<li><strong>stdin</strong> – The file object to read stdin from.</li>
|
|
<li><strong>stdout</strong> – Optional file object to redirect stdout and stderr to.</li>
|
|
<li><strong>root</strong> – The directory to chroot to before running command.</li>
|
|
<li><strong>env_prune</strong> – environment variable to remove before execution</li>
|
|
<li><strong>filter_stderr</strong> – Whether stderr should be excluded from the returned output</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p>Output from the file is not logged to program.log
|
|
This returns an iterator with the lines from the command until it has finished</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.execWithCapture">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">execWithCapture</tt><big>(</big><em>command</em>, <em>argv</em>, <em>stdin=None</em>, <em>root='/'</em>, <em>log_output=True</em>, <em>filter_stderr=False</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.execWithCapture" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Run an external program and capture standard out and err.
|
|
:param command: The command to run
|
|
:param argv: The argument list
|
|
:param stdin: The file object to read stdin from.
|
|
:param root: The directory to chroot to before running command.
|
|
:param log_output: Whether to log the output of command
|
|
:param filter_stderr: Whether stderr should be excluded from the returned output
|
|
:return: The output of the command</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.execWithCaptureBinary">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">execWithCaptureBinary</tt><big>(</big><em>command</em>, <em>argv</em>, <em>stdin=None</em>, <em>root='/'</em>, <em>log_output=False</em>, <em>filter_stderr=False</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.execWithCaptureBinary" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Run an external program and capture standard out and err as binary data.
|
|
The binary data output is not logged by default but logging can be enabled.
|
|
:param command: The command to run
|
|
:param argv: The argument list
|
|
:param stdin: The file object to read stdin from.
|
|
:param root: The directory to chroot to before running command.
|
|
:param log_output: Whether to log the binary output of the command
|
|
:param filter_stderr: Whether stderr should be excluded from the returned output
|
|
:return: The output of the command</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.execWithRedirect">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">execWithRedirect</tt><big>(</big><em>command</em>, <em>argv</em>, <em>stdin=None</em>, <em>stdout=None</em>, <em>root='/'</em>, <em>env_prune=None</em>, <em>log_output=True</em>, <em>binary_output=False</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.execWithRedirect" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Run an external program and redirect the output to a file.
|
|
:param command: The command to run
|
|
:param argv: The argument list
|
|
:param stdin: The file object to read stdin from.
|
|
:param stdout: Optional file object to redirect stdout and stderr to.
|
|
:param root: The directory to chroot to before running command.
|
|
:param env_prune: environment variable to remove before execution
|
|
:param log_output: whether to log the output of command
|
|
:param binary_output: whether to treat the output of command as binary data
|
|
:return: The return code of the command</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.getDirSize">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">getDirSize</tt><big>(</big><em>directory</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.getDirSize" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Get the size of a directory and all its subdirectories.
|
|
:param dir: The name of the directory to find the size of.
|
|
:return: The size of the directory in kilobytes.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.getSysroot">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">getSysroot</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.iutil.getSysroot" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns the path to the target OS installation.</p>
|
|
<p>For ordinary package-based installations, this is the same as the
|
|
target root.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.getTargetPhysicalRoot">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">getTargetPhysicalRoot</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.iutil.getTargetPhysicalRoot" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns the path to the “physical” storage root, traditionally /mnt/sysimage.</p>
|
|
<p>This may be distinct from the sysroot, which could be a
|
|
chroot-type subdirectory of the physical root. This is used for
|
|
example by all OSTree-based installations.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.get_active_console">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">get_active_console</tt><big>(</big><em>dev='console'</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.get_active_console" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Find the active console device.</p>
|
|
<p>Some tty devices (/dev/console, /dev/tty0) aren’t actual devices;
|
|
they just redirect input and output to the real console device(s).</p>
|
|
<p>These ‘fake’ ttys have an ‘active’ sysfs attribute, which lists the real
|
|
console device(s). (If there’s more than one, the <em>last</em> one in the list
|
|
is the primary console.)</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.get_mount_paths">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">get_mount_paths</tt><big>(</big><em>devnode</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.get_mount_paths" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>given a device node, return a list of all active mountpoints.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.get_platform_groupid">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">get_platform_groupid</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.iutil.get_platform_groupid" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return a platform group id string</p>
|
|
<p>This runs systemd-detect-virt and if the result is not ‘none’ it
|
|
prefixes the lower case result with “platform-” for use as a group id.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">Empty string or a group id for the detected platform</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">str</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.getdeepattr">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">getdeepattr</tt><big>(</big><em>obj</em>, <em>name</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.getdeepattr" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>This behaves as the standard getattr, but supports
|
|
composite (containing dots) attribute names.</p>
|
|
<p>As an example:</p>
|
|
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="kn">import</span> <span class="nn">os</span>
|
|
<span class="gp">>>> </span><span class="kn">from</span> <span class="nn">os.path</span> <span class="kn">import</span> <span class="n">split</span>
|
|
<span class="gp">>>> </span><span class="n">getdeepattr</span><span class="p">(</span><span class="n">os</span><span class="p">,</span> <span class="s">"path.split"</span><span class="p">)</span> <span class="o">==</span> <span class="n">split</span>
|
|
<span class="go">True</span>
|
|
</pre></div>
|
|
</div>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.have_word_match">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">have_word_match</tt><big>(</big><em>str1</em>, <em>str2</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.have_word_match" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Tells if all words from str1 exist in str2 or not.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.ipmi_report">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">ipmi_report</tt><big>(</big><em>event</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.ipmi_report" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.isConsoleOnVirtualTerminal">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">isConsoleOnVirtualTerminal</tt><big>(</big><em>dev='console'</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.isConsoleOnVirtualTerminal" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.is_unsupported_hw">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">is_unsupported_hw</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.iutil.is_unsupported_hw" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Check to see if the hardware is supported or not.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">True if this is unsupported hardware, False otherwise</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">bool</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.lowerASCII">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">lowerASCII</tt><big>(</big><em>s</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.lowerASCII" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Convert a string to lowercase using only ASCII character definitions.</p>
|
|
<p>The returned string will contain only ASCII characters. This function is
|
|
locale-independent.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.mkdirChain">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">mkdirChain</tt><big>(</big><em>directory</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.mkdirChain" title="Permalink to this definition">¶</a></dt>
|
|
<dd><table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>dir</strong> – The directory path to create</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.open">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">open</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.open" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Open a file, and retry on EINTR.</p>
|
|
<p>The arguments are the same as those to python’s builtin open.</p>
|
|
<p>This is equivalent to eintr_retry_call(open, ...). Some other
|
|
high-level languages handle this for you, like C’s fopen.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.parent_dir">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">parent_dir</tt><big>(</big><em>directory</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.parent_dir" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return the parent’s path</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.parseNfsUrl">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">parseNfsUrl</tt><big>(</big><em>nfsurl</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.parseNfsUrl" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.persistent_root_image">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">persistent_root_image</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.iutil.persistent_root_image" title="Permalink to this definition">¶</a></dt>
|
|
<dd><table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">whether we are running from a persistent (not in RAM) root.img</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.reIPL">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">reIPL</tt><big>(</big><em>ipldev</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.reIPL" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.requests_session">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">requests_session</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.iutil.requests_session" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return a requests.Session object with file and ftp support.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.resetRpmDb">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">resetRpmDb</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.iutil.resetRpmDb" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.restart_service">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">restart_service</tt><big>(</big><em>service</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.restart_service" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.service_running">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">service_running</tt><big>(</big><em>service</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.service_running" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.setSysroot">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">setSysroot</tt><big>(</big><em>path</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.setSysroot" title="Permalink to this definition">¶</a></dt>
|
|
<dd><dl class="docutils">
|
|
<dt>Change the OS root path.</dt>
|
|
<dd><table class="first last docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">param path:</th><td class="field-body">The new OS root path</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<p>This should only be used by Payload subclasses which install operating
|
|
systems to non-default roots.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.setTargetPhysicalRoot">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">setTargetPhysicalRoot</tt><big>(</big><em>path</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.setTargetPhysicalRoot" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Change the physical root path</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>path</strong> (<a class="reference external" href="https://docs.python.org/3/library/string.html#module-string" title="(in Python v3.4)"><em>string</em></a>) – Path to use instead of /mnt/sysimage/</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.setdeepattr">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">setdeepattr</tt><big>(</big><em>obj</em>, <em>name</em>, <em>value</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.setdeepattr" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>This behaves as the standard setattr, but supports
|
|
composite (containing dots) attribute names.</p>
|
|
<p>As an example:</p>
|
|
<div class="highlight-python"><div class="highlight"><pre><span class="gp">>>> </span><span class="k">class</span> <span class="nc">O</span><span class="p">:</span>
|
|
<span class="gp">>>> </span> <span class="k">pass</span>
|
|
<span class="gp">>>> </span><span class="n">a</span> <span class="o">=</span> <span class="n">O</span><span class="p">()</span>
|
|
<span class="gp">>>> </span><span class="n">a</span><span class="o">.</span><span class="n">b</span> <span class="o">=</span> <span class="n">O</span><span class="p">()</span>
|
|
<span class="gp">>>> </span><span class="n">a</span><span class="o">.</span><span class="n">b</span><span class="o">.</span><span class="n">c</span> <span class="o">=</span> <span class="n">O</span><span class="p">()</span>
|
|
<span class="gp">>>> </span><span class="n">setdeepattr</span><span class="p">(</span><span class="n">a</span><span class="p">,</span> <span class="s">"b.c.d"</span><span class="p">,</span> <span class="bp">True</span><span class="p">)</span>
|
|
<span class="gp">>>> </span><span class="n">a</span><span class="o">.</span><span class="n">b</span><span class="o">.</span><span class="n">c</span><span class="o">.</span><span class="n">d</span>
|
|
<span class="go">True</span>
|
|
</pre></div>
|
|
</div>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.setenv">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">setenv</tt><big>(</big><em>name</em>, <em>value</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.setenv" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Set an environment variable to be used by child processes.</p>
|
|
<p>This method does not modify os.environ for the running process, which
|
|
is not thread-safe. If setenv has already been called for a particular
|
|
variable name, the old value is overwritten.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<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.4)"><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.4)"><em>str</em></a>) – The value of the environment variable</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.setup_translations">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">setup_translations</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.iutil.setup_translations" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.startProgram">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">startProgram</tt><big>(</big><em>argv</em>, <em>root='/'</em>, <em>stdin=None</em>, <em>stdout=-1</em>, <em>stderr=-2</em>, <em>env_prune=None</em>, <em>env_add=None</em>, <em>reset_handlers=True</em>, <em>reset_lang=True</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.startProgram" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Start an external program and return the Popen object.</p>
|
|
<p>The root and reset_handlers arguments are handled by passing a
|
|
preexec_fn argument to subprocess.Popen, but an additional preexec_fn
|
|
can still be specified and will be run. The user preexec_fn will be run
|
|
last.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
|
|
<li><strong>argv</strong> – The command to run and argument</li>
|
|
<li><strong>root</strong> – The directory to chroot to before running command.</li>
|
|
<li><strong>stdin</strong> – The file object to read stdin from.</li>
|
|
<li><strong>stdout</strong> – The file object to write stdout to.</li>
|
|
<li><strong>stderr</strong> – The file object to write stderr to.</li>
|
|
<li><strong>env_prune</strong> – environment variables to remove before execution</li>
|
|
<li><strong>env_add</strong> – environment variables to add before execution</li>
|
|
<li><strong>reset_handlers</strong> – whether to reset to SIG_DFL any signal handlers set to SIG_IGN</li>
|
|
<li><strong>reset_lang</strong> – whether to set the locale of the child process to C</li>
|
|
<li><strong>kwargs</strong> – Additional parameters to pass to subprocess.Popen</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">A Popen object for the running command.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.startX">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">startX</tt><big>(</big><em>argv</em>, <em>output_redirect=None</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.startX" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Start X and return once X is ready to accept connections.</p>
|
|
<p>X11, if SIGUSR1 is set to SIG_IGN, will send SIGUSR1 to the parent
|
|
process once it is ready to accept client connections. This method
|
|
sets that up and waits for the signal or bombs out if nothing happens
|
|
for a minute. The process will also be added to the list of watched
|
|
processes.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>argv</strong> – The command line to run, as a list</li>
|
|
<li><strong>output_redirect</strong> – file or file descriptor to redirect stdout and stderr to</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.start_service">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">start_service</tt><big>(</big><em>service</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.start_service" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.stop_service">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">stop_service</tt><big>(</big><em>service</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.stop_service" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.strip_accents">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">strip_accents</tt><big>(</big><em>s</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.strip_accents" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>This function takes arbitrary unicode string
|
|
and returns it with all the diacritics removed.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>s</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – arbitrary string</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">s with diacritics removed</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">str</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.unwatchAllProcesses">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">unwatchAllProcesses</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.iutil.unwatchAllProcesses" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Clear the watched process list.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.unwatchProcess">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">unwatchProcess</tt><big>(</big><em>proc</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.unwatchProcess" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Unwatch a process watched by watchProcess.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>proc</strong> – The Popen object for the process.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.upcase_first_letter">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">upcase_first_letter</tt><big>(</big><em>text</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.upcase_first_letter" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Helper function that upcases the first letter of the string. Python’s
|
|
standard string.capitalize() not only upcases the first letter but also
|
|
lowercases all the others. string.title() capitalizes all words in the
|
|
string.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">the given text with the first letter upcased</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">str</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.upperASCII">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">upperASCII</tt><big>(</big><em>s</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.upperASCII" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Convert a string to uppercase using only ASCII character definitions.</p>
|
|
<p>The returned string will contain only ASCII characters. This function is
|
|
locale-independent.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.vtActivate">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">vtActivate</tt><big>(</big><em>num</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.vtActivate" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Try to switch to tty number $num.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">whether the switch was successful or not</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">bool</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.watchProcess">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">watchProcess</tt><big>(</big><em>proc</em>, <em>name</em><big>)</big><a class="headerlink" href="#pyanaconda.iutil.watchProcess" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Watch for a process exit, and raise a ExitError when it does.</p>
|
|
<p>This method installs a SIGCHLD signal handler and thus interferes
|
|
the child_watch_add methods in GLib. Use watchProcessGLib to convert
|
|
to GLib mode if using a GLib main loop.</p>
|
|
<p>Since the SIGCHLD handler calls wait() on the watched process, this call
|
|
cannot be combined with Popen.wait() or Popen.communicate, and also
|
|
doing so wouldn’t make a whole lot of sense.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>proc</strong> – The Popen object for the process</li>
|
|
<li><strong>name</strong> – The name of the process</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.watchProcessGLib">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">watchProcessGLib</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.iutil.watchProcessGLib" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Convert process watching to GLib mode.</p>
|
|
<p>This allows anaconda modes that use GLib main loops to use
|
|
GLib.child_watch_add and continue to watch processes started before the
|
|
main loop.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.iutil.xprogressive_delay">
|
|
<tt class="descclassname">pyanaconda.iutil.</tt><tt class="descname">xprogressive_delay</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.iutil.xprogressive_delay" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>A delay generator, the delay starts short and gets longer
|
|
as the internal counter increases.
|
|
For example for 10 retries, the delay will increases from
|
|
0.5 to 256 seconds.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>retry_number</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.4)"><em>int</em></a>) – retry counter</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns float:</th><td class="field-body">time to wait in seconds</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.kexec">
|
|
<span id="pyanaconda-kexec-module"></span><h2>pyanaconda.kexec module<a class="headerlink" href="#module-pyanaconda.kexec" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.kexec.GrubbyInfoError">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.kexec.</tt><tt class="descname">GrubbyInfoError</tt><a class="headerlink" href="#pyanaconda.kexec.GrubbyInfoError" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.Exception</span></tt></p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.kexec.run_grubby">
|
|
<tt class="descclassname">pyanaconda.kexec.</tt><tt class="descname">run_grubby</tt><big>(</big><em>args=None</em><big>)</big><a class="headerlink" href="#pyanaconda.kexec.run_grubby" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Run grubby and retrieve the kernel, initrd and boot arguments</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>args</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#list" title="(in Python v3.4)"><em>list</em></a>) – Arguments to pass to grubby.</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">kernel path, initrd path, root device, kernel cmdline args.</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">namedtuple</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body">some error on failure</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<dl class="docutils">
|
|
<dt>The returned namedtuple contains the following attributes:</dt>
|
|
<dd>kernel, initrd, root, args</dd>
|
|
</dl>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.kexec.setup_kexec">
|
|
<tt class="descclassname">pyanaconda.kexec.</tt><tt class="descname">setup_kexec</tt><big>(</big><em>extra_args=None</em><big>)</big><a class="headerlink" href="#pyanaconda.kexec.setup_kexec" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Setup kexec to use the new kernel and default bootloader entry</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>extra_args</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#list" title="(in Python v3.4)"><em>list</em></a>) – Extra arguments to pass to kexec</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p>This uses grubby to determine the bootloader arguments from the default entry,
|
|
and then sets up kexec so that reboot will use the new kernel and initrd instead
|
|
of doing a full reboot.</p>
|
|
<div class="admonition note">
|
|
<p class="first admonition-title">Note</p>
|
|
<p class="last">Once kexec is called there is nothing else to do, the reboot code already handles
|
|
having kexec setup.</p>
|
|
</div>
|
|
</dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.keyboard">
|
|
<span id="pyanaconda-keyboard-module"></span><h2>pyanaconda.keyboard module<a class="headerlink" href="#module-pyanaconda.keyboard" title="Permalink to this headline">¶</a></h2>
|
|
<p>This module provides functions for dealing with keyboard layouts/keymaps in
|
|
Anaconda and the LocaledWrapper class with methods for setting, getting and
|
|
mutually converting X layouts and VConsole keymaps.</p>
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.keyboard.InvalidLayoutVariantSpec">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.keyboard.</tt><tt class="descname">InvalidLayoutVariantSpec</tt><a class="headerlink" href="#pyanaconda.keyboard.InvalidLayoutVariantSpec" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.Exception</span></tt></p>
|
|
<p>Exception class for errors related to parsing layout and variant specification strings.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.keyboard.KeyboardConfigError">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.keyboard.</tt><tt class="descname">KeyboardConfigError</tt><a class="headerlink" href="#pyanaconda.keyboard.KeyboardConfigError" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.Exception</span></tt></p>
|
|
<p>Exception class for keyboard configuration related problems</p>
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.keyboard.LocaledWrapper">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.keyboard.</tt><tt class="descname">LocaledWrapper</tt><a class="headerlink" href="#pyanaconda.keyboard.LocaledWrapper" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
<p>Class wrapping systemd-localed daemon functionality. By using safe_dbus
|
|
module it tries to prevent failures related to threads and main loops.</p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.keyboard.LocaledWrapper.convert_keymap">
|
|
<tt class="descname">convert_keymap</tt><big>(</big><em>keymap</em><big>)</big><a class="headerlink" href="#pyanaconda.keyboard.LocaledWrapper.convert_keymap" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Method that returns X11 layouts and variants that (systemd-localed
|
|
thinks) match given keymap best.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>keymap</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – VConsole keymap</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">X11 layouts and variants that (systemd-localed thinks) match
|
|
given keymap best</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">str</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.keyboard.LocaledWrapper.convert_layout">
|
|
<tt class="descname">convert_layout</tt><big>(</big><em>layout_variant</em><big>)</big><a class="headerlink" href="#pyanaconda.keyboard.LocaledWrapper.convert_layout" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Method that returns VConsole keymap that (systemd-localed thinks)
|
|
matches given layout and variant best.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>layout_variant</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – ‘layout (variant)’ or ‘layout’ specification</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">a keymap matching layout and variant best</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">string</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.keyboard.LocaledWrapper.keymap">
|
|
<tt class="descname">keymap</tt><a class="headerlink" href="#pyanaconda.keyboard.LocaledWrapper.keymap" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.keyboard.LocaledWrapper.layouts_variants">
|
|
<tt class="descname">layouts_variants</tt><a class="headerlink" href="#pyanaconda.keyboard.LocaledWrapper.layouts_variants" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.keyboard.LocaledWrapper.options">
|
|
<tt class="descname">options</tt><a class="headerlink" href="#pyanaconda.keyboard.LocaledWrapper.options" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.keyboard.LocaledWrapper.set_and_convert_keymap">
|
|
<tt class="descname">set_and_convert_keymap</tt><big>(</big><em>keymap</em><big>)</big><a class="headerlink" href="#pyanaconda.keyboard.LocaledWrapper.set_and_convert_keymap" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Method that sets VConsole keymap and returns X11 layouts and
|
|
variants that (systemd-localed thinks) match given keymap best.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">string containing comma-separated “layout (variant)” or
|
|
“layout” layout specifications</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">string</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.keyboard.LocaledWrapper.set_and_convert_layout">
|
|
<tt class="descname">set_and_convert_layout</tt><big>(</big><em>layout_variant</em><big>)</big><a class="headerlink" href="#pyanaconda.keyboard.LocaledWrapper.set_and_convert_layout" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Method that sets X11 layout and variant (for later X sessions)
|
|
and returns VConsole keymap that (systemd-localed thinks) matches
|
|
given layout and variant best.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">a keymap matching layout and variant best</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">string</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.keyboard.LocaledWrapper.set_keymap">
|
|
<tt class="descname">set_keymap</tt><big>(</big><em>keymap</em>, <em>convert=False</em><big>)</big><a class="headerlink" href="#pyanaconda.keyboard.LocaledWrapper.set_keymap" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Method that sets VConsole keymap via systemd-localed’s DBus API.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>keymap</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – VConsole keymap that should be set</li>
|
|
<li><strong>convert</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.4)"><em>bool</em></a>) – whether the keymap should be converted to a X11 layout
|
|
(see set_and_convert_keymap)</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.keyboard.LocaledWrapper.set_layouts">
|
|
<tt class="descname">set_layouts</tt><big>(</big><em>layouts_variants</em>, <em>options=None</em>, <em>convert=False</em><big>)</big><a class="headerlink" href="#pyanaconda.keyboard.LocaledWrapper.set_layouts" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Method that sets X11 layouts and variants (for later X sessions) via
|
|
systemd-localed’s DBus API.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>layout_variant</strong> (<em>list of strings</em>) – list of ‘layout (variant)’ or ‘layout’
|
|
specifications of layouts and variants</li>
|
|
<li><strong>options</strong> (<em>list of strings</em>) – list of X11 options that should be set</li>
|
|
<li><strong>convert</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.4)"><em>bool</em></a>) – whether the keymap should be converted to a X11 layout
|
|
(see set_and_convert_keymap)</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.keyboard.LocaledWrapperError">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.keyboard.</tt><tt class="descname">LocaledWrapperError</tt><a class="headerlink" href="#pyanaconda.keyboard.LocaledWrapperError" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#pyanaconda.keyboard.KeyboardConfigError" title="pyanaconda.keyboard.KeyboardConfigError"><tt class="xref py py-class docutils literal"><span class="pre">pyanaconda.keyboard.KeyboardConfigError</span></tt></a></p>
|
|
<p>Exception class for reporting Localed-related problems</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.keyboard.activate_keyboard">
|
|
<tt class="descclassname">pyanaconda.keyboard.</tt><tt class="descname">activate_keyboard</tt><big>(</big><em>keyboard</em><big>)</big><a class="headerlink" href="#pyanaconda.keyboard.activate_keyboard" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Try to setup VConsole keymap and X11 layouts as specified in kickstart.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>keyboard</strong> (<em>ksdata.keyboard object</em>) – ksdata.keyboard object</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.keyboard.join_layout_variant">
|
|
<tt class="descclassname">pyanaconda.keyboard.</tt><tt class="descname">join_layout_variant</tt><big>(</big><em>layout</em>, <em>variant=''</em><big>)</big><a class="headerlink" href="#pyanaconda.keyboard.join_layout_variant" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Join layout and variant to form the commonly used ‘layout (variant)’
|
|
or ‘layout’ (if variant is missing) format.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">‘layout (variant)’ or ‘layout’ string</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">string</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.keyboard.normalize_layout_variant">
|
|
<tt class="descclassname">pyanaconda.keyboard.</tt><tt class="descname">normalize_layout_variant</tt><big>(</big><em>layout_str</em><big>)</big><a class="headerlink" href="#pyanaconda.keyboard.normalize_layout_variant" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Normalize keyboard layout and variant specification given as a single
|
|
string. E.g. for a ‘layout(variant) string missing the space between the
|
|
left parenthesis return ‘layout (variant)’ which is a proper layout and
|
|
variant specification we use.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>layout_str</strong> (<a class="reference external" href="https://docs.python.org/3/library/string.html#module-string" title="(in Python v3.4)"><em>string</em></a>) – a string specifying keyboard layout and its variant</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.keyboard.parse_layout_variant">
|
|
<tt class="descclassname">pyanaconda.keyboard.</tt><tt class="descname">parse_layout_variant</tt><big>(</big><em>layout_variant_str</em><big>)</big><a class="headerlink" href="#pyanaconda.keyboard.parse_layout_variant" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Parse layout and variant from the string that may look like ‘layout’ or
|
|
‘layout (variant)’.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>layout_variant_str</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – keyboard layout and variant string specification</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">the (layout, variant) pair, where variant can be “”</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">tuple</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name" colspan="2">Raises InvalidLayoutVariantSpec:</th></tr>
|
|
<tr class="field-even field"><td> </td><td class="field-body">if the given string isn’t a valid layout
|
|
and variant specification string</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.keyboard.populate_missing_items">
|
|
<tt class="descclassname">pyanaconda.keyboard.</tt><tt class="descname">populate_missing_items</tt><big>(</big><em>keyboard</em><big>)</big><a class="headerlink" href="#pyanaconda.keyboard.populate_missing_items" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function that populates keyboard.vc_keymap and keyboard.x_layouts if they
|
|
are missing. By invoking LocaledWrapper’s methods this function READS AND
|
|
WRITES CONFIGURATION FILES (but tries to keep their content unchanged).</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.keyboard.write_keyboard_config">
|
|
<tt class="descclassname">pyanaconda.keyboard.</tt><tt class="descname">write_keyboard_config</tt><big>(</big><em>keyboard</em>, <em>root</em>, <em>convert=True</em><big>)</big><a class="headerlink" href="#pyanaconda.keyboard.write_keyboard_config" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function that writes files with layouts configuration to
|
|
$root/etc/X11/xorg.conf.d/01-anaconda-layouts.conf and
|
|
$root/etc/vconsole.conf.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>keyboard</strong> – ksdata.keyboard object</li>
|
|
<li><strong>root</strong> – path to the root of the installed system</li>
|
|
<li><strong>convert</strong> – whether to convert specified values to get the missing
|
|
ones</li>
|
|
<li><strong>weight</strong> – weight (prefix) of the xorg.conf file written out</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.kickstart">
|
|
<span id="pyanaconda-kickstart-module"></span><h2>pyanaconda.kickstart module<a class="headerlink" href="#module-pyanaconda.kickstart" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.AnacondaInternalScript">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">AnacondaInternalScript</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.AnacondaInternalScript" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#pyanaconda.kickstart.AnacondaKSScript" title="pyanaconda.kickstart.AnacondaKSScript"><tt class="xref py py-class docutils literal"><span class="pre">pyanaconda.kickstart.AnacondaKSScript</span></tt></a></p>
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.AnacondaKSHandler">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">AnacondaKSHandler</tt><big>(</big><em>addon_paths=None</em>, <em>commandUpdates=None</em>, <em>dataUpdates=None</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.AnacondaKSHandler" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">f23.F23Handler</span></tt></p>
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.kickstart.AnacondaKSHandler.AddonClassType">
|
|
<tt class="descname">AddonClassType</tt><a class="headerlink" href="#pyanaconda.kickstart.AnacondaKSHandler.AddonClassType" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>alias of <tt class="xref py py-class docutils literal"><span class="pre">AddonData</span></tt></p>
|
|
</dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.AnacondaKSParser">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">AnacondaKSParser</tt><big>(</big><em>handler</em>, <em>followIncludes=True</em>, <em>errorsAreFatal=True</em>, <em>missingIncludeIsFatal=True</em>, <em>scriptClass=<class 'pyanaconda.kickstart.AnacondaKSScript'></em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.AnacondaKSParser" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.parser.KickstartParser</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.AnacondaKSParser.handleCommand">
|
|
<tt class="descname">handleCommand</tt><big>(</big><em>lineno</em>, <em>args</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.AnacondaKSParser.handleCommand" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.AnacondaKSParser.setupSections">
|
|
<tt class="descname">setupSections</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.AnacondaKSParser.setupSections" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.AnacondaKSScript">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">AnacondaKSScript</tt><big>(</big><em>script</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.AnacondaKSScript" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.parser.Script</span></tt></p>
|
|
<p>Execute a kickstart script</p>
|
|
<p>This will write the script to a file named /tmp/ks-script- before
|
|
execution.
|
|
Output is logged by the program logger, the path specified by –log
|
|
or to /tmp/ks-script-<a href="#id5"><span class="problematic" id="id6">*</span></a>.log</p>
|
|
<p>Create a new Script instance. Instance attributes:</p>
|
|
<dl class="docutils">
|
|
<dt>errorOnFail – If execution of the script fails, should anaconda</dt>
|
|
<dd>stop, display an error, and then reboot without
|
|
running any other scripts?</dd>
|
|
<dt>inChroot – Does the script execute in anaconda’s chroot</dt>
|
|
<dd>environment or not?</dd>
|
|
<dt>interp – The program that should be used to interpret this</dt>
|
|
<dd>script.</dd>
|
|
</dl>
|
|
<p>lineno – The line number this script starts on.
|
|
logfile – Where all messages from the script should be logged.
|
|
script – A string containing all the lines of the script.
|
|
type – The type of the script, which can be KS_SCRIPT_* from</p>
|
|
<blockquote>
|
|
<div>pykickstart.constants.</div></blockquote>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.AnacondaKSScript.run">
|
|
<tt class="descname">run</tt><big>(</big><em>chroot</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.AnacondaKSScript.run" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Run the kickstart script
|
|
@param chroot directory path to chroot into before execution</p>
|
|
</dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.AnacondaPreParser">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">AnacondaPreParser</tt><big>(</big><em>handler</em>, <em>followIncludes=True</em>, <em>errorsAreFatal=True</em>, <em>missingIncludeIsFatal=True</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.AnacondaPreParser" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.parser.KickstartParser</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.AnacondaPreParser.handleCommand">
|
|
<tt class="descname">handleCommand</tt><big>(</big><em>lineno</em>, <em>args</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.AnacondaPreParser.handleCommand" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.AnacondaPreParser.setupSections">
|
|
<tt class="descname">setupSections</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.AnacondaPreParser.setupSections" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.AnacondaSection">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">AnacondaSection</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.AnacondaSection" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.sections.Section</span></tt></p>
|
|
<p>A section for anaconda specific commands.</p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.AnacondaSection.finalize">
|
|
<tt class="descname">finalize</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.AnacondaSection.finalize" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Let %anaconda know no additional data will come.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.AnacondaSection.handleHeader">
|
|
<tt class="descname">handleHeader</tt><big>(</big><em>lineno</em>, <em>args</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.AnacondaSection.handleHeader" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Process the arguments to the %anaconda header.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.AnacondaSection.handleLine">
|
|
<tt class="descname">handleLine</tt><big>(</big><em>line</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.AnacondaSection.handleLine" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.kickstart.AnacondaSection.sectionOpen">
|
|
<tt class="descname">sectionOpen</tt><em class="property"> = '%anaconda'</em><a class="headerlink" href="#pyanaconda.kickstart.AnacondaSection.sectionOpen" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.AnacondaSectionHandler">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">AnacondaSectionHandler</tt><a class="headerlink" href="#pyanaconda.kickstart.AnacondaSectionHandler" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.base.BaseHandler</span></tt></p>
|
|
<p>A handler for only the anaconda ection’s commands.</p>
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.kickstart.AnacondaSectionHandler.commandMap">
|
|
<tt class="descname">commandMap</tt><em class="property"> = {'pwpolicy': <class 'pyanaconda.pwpolicy.F22_PwPolicy'>}</em><a class="headerlink" href="#pyanaconda.kickstart.AnacondaSectionHandler.commandMap" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.kickstart.AnacondaSectionHandler.dataMap">
|
|
<tt class="descname">dataMap</tt><em class="property"> = {'PwPolicyData': <class 'pyanaconda.pwpolicy.F22_PwPolicyData'>}</em><a class="headerlink" href="#pyanaconda.kickstart.AnacondaSectionHandler.dataMap" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.Authconfig">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">Authconfig</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Authconfig" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.authconfig.FC3_Authconfig</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.Authconfig.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>*args</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Authconfig.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.Authconfig.setup">
|
|
<tt class="descname">setup</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Authconfig.setup" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.AutoPart">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">AutoPart</tt><big>(</big><em>writePriority=100</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.AutoPart" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.autopart.F21_AutoPart</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.AutoPart.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>storage</em>, <em>ksdata</em>, <em>instClass</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.AutoPart.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.AutoPart.parse">
|
|
<tt class="descname">parse</tt><big>(</big><em>args</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.AutoPart.parse" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.BTRFS">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">BTRFS</tt><big>(</big><em>writePriority=132</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.BTRFS" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.btrfs.F23_BTRFS</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.BTRFS.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>storage</em>, <em>ksdata</em>, <em>instClass</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.BTRFS.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.BTRFSData">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">BTRFSData</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.BTRFSData" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.btrfs.F23_BTRFSData</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.BTRFSData.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>storage</em>, <em>ksdata</em>, <em>instClass</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.BTRFSData.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.Bootloader">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">Bootloader</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Bootloader" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.bootloader.F21_Bootloader</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.Bootloader.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>storage</em>, <em>ksdata</em>, <em>instClass</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Bootloader.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.Bootloader.parse">
|
|
<tt class="descname">parse</tt><big>(</big><em>args</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Bootloader.parse" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.ClearPart">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">ClearPart</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.ClearPart" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.clearpart.F21_ClearPart</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.ClearPart.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>storage</em>, <em>ksdata</em>, <em>instClass</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.ClearPart.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.ClearPart.parse">
|
|
<tt class="descname">parse</tt><big>(</big><em>args</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.ClearPart.parse" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.DmRaid">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">DmRaid</tt><big>(</big><em>writePriority=60</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.DmRaid" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.dmraid.FC6_DmRaid</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.DmRaid.parse">
|
|
<tt class="descname">parse</tt><big>(</big><em>args</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.DmRaid.parse" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.Fcoe">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">Fcoe</tt><big>(</big><em>writePriority=71</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Fcoe" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.fcoe.F13_Fcoe</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.Fcoe.parse">
|
|
<tt class="descname">parse</tt><big>(</big><em>args</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Fcoe.parse" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.Firewall">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">Firewall</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Firewall" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.firewall.F20_Firewall</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.Firewall.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>storage</em>, <em>ksdata</em>, <em>instClass</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Firewall.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.Firewall.setup">
|
|
<tt class="descname">setup</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Firewall.setup" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.Firstboot">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">Firstboot</tt><big>(</big><em>writePriority=0</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Firstboot" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.firstboot.FC3_Firstboot</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.Firstboot.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>*args</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Firstboot.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.Firstboot.setup">
|
|
<tt class="descname">setup</tt><big>(</big><em>*args</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Firstboot.setup" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.Group">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">Group</tt><big>(</big><em>writePriority=0</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Group" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.group.F12_Group</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.Group.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>storage</em>, <em>ksdata</em>, <em>instClass</em>, <em>users</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Group.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.IgnoreDisk">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">IgnoreDisk</tt><big>(</big><em>writePriority=0</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.IgnoreDisk" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.ignoredisk.RHEL6_IgnoreDisk</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.IgnoreDisk.parse">
|
|
<tt class="descname">parse</tt><big>(</big><em>args</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.IgnoreDisk.parse" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.Iscsi">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">Iscsi</tt><big>(</big><em>writePriority=71</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Iscsi" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.iscsi.F17_Iscsi</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.Iscsi.parse">
|
|
<tt class="descname">parse</tt><big>(</big><em>args</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Iscsi.parse" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.IscsiName">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">IscsiName</tt><big>(</big><em>writePriority=70</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.IscsiName" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.iscsiname.FC6_IscsiName</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.IscsiName.parse">
|
|
<tt class="descname">parse</tt><big>(</big><em>args</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.IscsiName.parse" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.Keyboard">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">Keyboard</tt><big>(</big><em>writePriority=0</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Keyboard" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.keyboard.F18_Keyboard</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.Keyboard.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>*args</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Keyboard.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.Lang">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">Lang</tt><big>(</big><em>writePriority=0</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Lang" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.lang.F19_Lang</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.Lang.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Lang.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.LogVol">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">LogVol</tt><big>(</big><em>writePriority=133</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.LogVol" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.logvol.F23_LogVol</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.LogVol.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>storage</em>, <em>ksdata</em>, <em>instClass</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.LogVol.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.LogVolData">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">LogVolData</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.LogVolData" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.logvol.F23_LogVolData</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.LogVolData.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>storage</em>, <em>ksdata</em>, <em>instClass</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.LogVolData.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.Logging">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">Logging</tt><big>(</big><em>writePriority=0</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Logging" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.logging.FC6_Logging</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.Logging.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>*args</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Logging.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.MultiPath">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">MultiPath</tt><big>(</big><em>writePriority=50</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.MultiPath" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.multipath.FC6_MultiPath</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.MultiPath.parse">
|
|
<tt class="descname">parse</tt><big>(</big><em>args</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.MultiPath.parse" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.Network">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">Network</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Network" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.network.F22_Network</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.Network.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>storage</em>, <em>ksdata</em>, <em>instClass</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Network.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.Network.setup">
|
|
<tt class="descname">setup</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Network.setup" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.Partition">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">Partition</tt><big>(</big><em>writePriority=130</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Partition" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.partition.F23_Partition</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.Partition.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>storage</em>, <em>ksdata</em>, <em>instClass</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Partition.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.PartitionData">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">PartitionData</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.PartitionData" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.partition.F23_PartData</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.PartitionData.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>storage</em>, <em>ksdata</em>, <em>instClass</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.PartitionData.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.Raid">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">Raid</tt><big>(</big><em>writePriority=131</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Raid" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.raid.F23_Raid</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.Raid.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>storage</em>, <em>ksdata</em>, <em>instClass</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Raid.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.RaidData">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">RaidData</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.RaidData" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.raid.F23_RaidData</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.RaidData.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>storage</em>, <em>ksdata</em>, <em>instClass</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.RaidData.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.Realm">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">Realm</tt><big>(</big><em>*args</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Realm" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.realm.F19_Realm</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.Realm.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>*args</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Realm.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.Realm.setup">
|
|
<tt class="descname">setup</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Realm.setup" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.RepoData">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">RepoData</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.RepoData" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.repo.F21_RepoData</span></tt></p>
|
|
<p>Add enabled kwarg</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>enabled</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.4)"><em>bool</em></a>) – The repo has been enabled</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.ReqPart">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">ReqPart</tt><big>(</big><em>writePriority=100</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.ReqPart" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.reqpart.F23_ReqPart</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.ReqPart.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>storage</em>, <em>ksdata</em>, <em>instClass</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.ReqPart.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.RootPw">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">RootPw</tt><big>(</big><em>writePriority=0</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.RootPw" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.rootpw.F18_RootPw</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.RootPw.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>storage</em>, <em>ksdata</em>, <em>instClass</em>, <em>users</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.RootPw.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.SELinux">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">SELinux</tt><big>(</big><em>writePriority=0</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.SELinux" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.selinux.FC3_SELinux</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.SELinux.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>*args</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.SELinux.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.Services">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">Services</tt><big>(</big><em>writePriority=0</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Services" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.services.FC6_Services</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.Services.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>storage</em>, <em>ksdata</em>, <em>instClass</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Services.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.SkipX">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">SkipX</tt><big>(</big><em>writePriority=0</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.SkipX" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.skipx.FC3_SkipX</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.SkipX.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>*args</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.SkipX.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.SshKey">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">SshKey</tt><big>(</big><em>writePriority=0</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.SshKey" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.sshkey.F22_SshKey</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.SshKey.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>storage</em>, <em>ksdata</em>, <em>instClass</em>, <em>users</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.SshKey.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.Timezone">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">Timezone</tt><big>(</big><em>*args</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Timezone" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.timezone.F23_Timezone</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.Timezone.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>*args</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Timezone.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.Timezone.setup">
|
|
<tt class="descname">setup</tt><big>(</big><em>ksdata</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Timezone.setup" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.Upgrade">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">Upgrade</tt><a class="headerlink" href="#pyanaconda.kickstart.Upgrade" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.upgrade.F20_Upgrade</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.Upgrade.parse">
|
|
<tt class="descname">parse</tt><big>(</big><em>*args</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.Upgrade.parse" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.User">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">User</tt><big>(</big><em>writePriority=0</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.User" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.user.F19_User</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.User.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>storage</em>, <em>ksdata</em>, <em>instClass</em>, <em>users</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.User.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.VolGroup">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">VolGroup</tt><big>(</big><em>writePriority=132</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.VolGroup" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.volgroup.F21_VolGroup</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.VolGroup.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>storage</em>, <em>ksdata</em>, <em>instClass</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.VolGroup.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.VolGroupData">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">VolGroupData</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.VolGroupData" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.volgroup.F21_VolGroupData</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.VolGroupData.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>storage</em>, <em>ksdata</em>, <em>instClass</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.VolGroupData.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.XConfig">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">XConfig</tt><big>(</big><em>writePriority=0</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.XConfig" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.xconfig.F14_XConfig</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.XConfig.execute">
|
|
<tt class="descname">execute</tt><big>(</big><em>*args</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.XConfig.execute" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.kickstart.ZFCP">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">ZFCP</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.ZFCP" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.commands.zfcp.F14_ZFCP</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.kickstart.ZFCP.parse">
|
|
<tt class="descname">parse</tt><big>(</big><em>args</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.ZFCP.parse" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.kickstart.appendPostScripts">
|
|
<tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">appendPostScripts</tt><big>(</big><em>ksdata</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.appendPostScripts" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.kickstart.deviceMatches">
|
|
<tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">deviceMatches</tt><big>(</big><em>spec</em>, <em>devicetree=None</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.deviceMatches" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return names of block devices matching the provided specification.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
|
|
<li><strong>spec</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – a device identifier (name, UUID=<uuid>, &c)</li>
|
|
<li><strong>devicetree</strong> (<tt class="xref py py-class docutils literal"><span class="pre">blivet.DeviceTree</span></tt>) – device tree to look up devices in (optional)</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">names of matching devices</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">list of str</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p>parse methods will not have access to a devicetree, while execute
|
|
methods will. The devicetree is superior in that it can resolve md
|
|
array names and in that it reflects scheduled device removals, but for
|
|
normal local disks udev.resolve_devspec should suffice.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.kickstart.doKickstartStorage">
|
|
<tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">doKickstartStorage</tt><big>(</big><em>storage</em>, <em>ksdata</em>, <em>instClass</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.doKickstartStorage" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Setup storage state from the kickstart data</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.kickstart.getAvailableDiskSpace">
|
|
<tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">getAvailableDiskSpace</tt><big>(</big><em>storage</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.getAvailableDiskSpace" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Get overall disk space available on disks we may use.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>storage</strong> – blivet.Blivet instance</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">overall disk space available</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><tt class="xref py py-class docutils literal"><span class="pre">blivet.size.Size</span></tt></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.kickstart.getEscrowCertificate">
|
|
<tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">getEscrowCertificate</tt><big>(</big><em>escrowCerts</em>, <em>url</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.getEscrowCertificate" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.kickstart.lookupAlias">
|
|
<tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">lookupAlias</tt><big>(</big><em>devicetree</em>, <em>alias</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.lookupAlias" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.kickstart.parseKickstart">
|
|
<tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">parseKickstart</tt><big>(</big><em>f</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.parseKickstart" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.kickstart.preScriptPass">
|
|
<tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">preScriptPass</tt><big>(</big><em>f</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.preScriptPass" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.kickstart.refreshAutoSwapSize">
|
|
<tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">refreshAutoSwapSize</tt><big>(</big><em>storage</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.refreshAutoSwapSize" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Refresh size of the auto partitioning request for swap device according to
|
|
the current state of the storage configuration.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>storage</strong> – blivet.Blivet instance</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.kickstart.removeExistingFormat">
|
|
<tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">removeExistingFormat</tt><big>(</big><em>device</em>, <em>storage</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.removeExistingFormat" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.kickstart.resetCustomStorageData">
|
|
<tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">resetCustomStorageData</tt><big>(</big><em>ksdata</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.resetCustomStorageData" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.kickstart.runPostScripts">
|
|
<tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">runPostScripts</tt><big>(</big><em>scripts</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.runPostScripts" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.kickstart.runPreInstallScripts">
|
|
<tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">runPreInstallScripts</tt><big>(</big><em>scripts</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.runPreInstallScripts" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.kickstart.runPreScripts">
|
|
<tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">runPreScripts</tt><big>(</big><em>scripts</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.runPreScripts" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.kickstart.runTracebackScripts">
|
|
<tt class="descclassname">pyanaconda.kickstart.</tt><tt class="descname">runTracebackScripts</tt><big>(</big><em>scripts</em><big>)</big><a class="headerlink" href="#pyanaconda.kickstart.runTracebackScripts" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.localization">
|
|
<span id="pyanaconda-localization-module"></span><h2>pyanaconda.localization module<a class="headerlink" href="#module-pyanaconda.localization" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.localization.InvalidLocaleSpec">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.localization.</tt><tt class="descname">InvalidLocaleSpec</tt><a class="headerlink" href="#pyanaconda.localization.InvalidLocaleSpec" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#pyanaconda.localization.LocalizationConfigError" title="pyanaconda.localization.LocalizationConfigError"><tt class="xref py py-class docutils literal"><span class="pre">pyanaconda.localization.LocalizationConfigError</span></tt></a></p>
|
|
<p>Exception class for the errors related to invalid locale specs</p>
|
|
</dd></dl>
|
|
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.localization.LocalizationConfigError">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.localization.</tt><tt class="descname">LocalizationConfigError</tt><a class="headerlink" href="#pyanaconda.localization.LocalizationConfigError" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.Exception</span></tt></p>
|
|
<p>Exception class for localization configuration related problems</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.localization.find_best_locale_match">
|
|
<tt class="descclassname">pyanaconda.localization.</tt><tt class="descname">find_best_locale_match</tt><big>(</big><em>locale</em>, <em>langcodes</em><big>)</big><a class="headerlink" href="#pyanaconda.localization.find_best_locale_match" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Find the best match for the locale in a list of langcodes. This is useful
|
|
when e.g. pt_BR is a locale and there are possibilities to choose an item
|
|
(e.g. rnote) for a list containing both pt and pt_BR or even also pt_PT.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
|
|
<li><strong>locale</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – a valid locale (e.g. en_US.UTF-8 or <a class="reference external" href="mailto:sr_RS.UTF-8%40latin">sr_RS<span>.</span>UTF-8<span>@</span>latin</a>, etc.)</li>
|
|
<li><strong>langcodes</strong> (<em>list(str) or generator(str)</em>) – a list or generator of langcodes (e.g. en, en_US, <a class="reference external" href="mailto:en_US%40latin">en_US<span>@</span>latin</a>, etc.)</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">the best matching langcode from the list of None if none matches</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">str or None</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.localization.get_available_translations">
|
|
<tt class="descclassname">pyanaconda.localization.</tt><tt class="descname">get_available_translations</tt><big>(</big><em>localedir=None</em><big>)</big><a class="headerlink" href="#pyanaconda.localization.get_available_translations" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Method that generates (i.e. returns a generator) available translations for
|
|
the installer in the given localedir.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">generator yielding available translations (languages)</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">generator yielding strings</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.localization.get_english_name">
|
|
<tt class="descclassname">pyanaconda.localization.</tt><tt class="descname">get_english_name</tt><big>(</big><em>locale</em><big>)</big><a class="headerlink" href="#pyanaconda.localization.get_english_name" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function returning english name for the given locale.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>locale</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – locale to return english name for</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">english name for the locale or empty string if unknown</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">st</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name" colspan="2">Raises InvalidLocaleSpec:</th></tr>
|
|
<tr class="field-even field"><td> </td><td class="field-body">if an invalid locale is given (see LANGCODE_RE)</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.localization.get_language_locales">
|
|
<tt class="descclassname">pyanaconda.localization.</tt><tt class="descname">get_language_locales</tt><big>(</big><em>lang</em><big>)</big><a class="headerlink" href="#pyanaconda.localization.get_language_locales" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function returning all locales available for the given language.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>lang</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – language to get available locales for</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">a list of available locales</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">list of strings</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name" colspan="2">Raises InvalidLocaleSpec:</th></tr>
|
|
<tr class="field-even field"><td> </td><td class="field-body">if an invalid locale is given (see LANGCODE_RE)</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.localization.get_locale_keyboards">
|
|
<tt class="descclassname">pyanaconda.localization.</tt><tt class="descname">get_locale_keyboards</tt><big>(</big><em>locale</em><big>)</big><a class="headerlink" href="#pyanaconda.localization.get_locale_keyboards" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function returning preferred keyboard layouts for the given locale.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>locale</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – locale string (see LANGCODE_RE)</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">list of preferred keyboard layouts</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">list of strings</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name" colspan="2">Raises InvalidLocaleSpec:</th></tr>
|
|
<tr class="field-even field"><td> </td><td class="field-body">if an invalid locale is given (see LANGCODE_RE)</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.localization.get_locale_territory">
|
|
<tt class="descclassname">pyanaconda.localization.</tt><tt class="descname">get_locale_territory</tt><big>(</big><em>locale</em><big>)</big><a class="headerlink" href="#pyanaconda.localization.get_locale_territory" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function returning locale’s territory.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>locale</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – locale string (see LANGCODE_RE)</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">territory or None</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">str or None</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name" colspan="2">Raises InvalidLocaleSpec:</th></tr>
|
|
<tr class="field-even field"><td> </td><td class="field-body">if an invalid locale is given (see LANGCODE_RE)</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.localization.get_locale_timezones">
|
|
<tt class="descclassname">pyanaconda.localization.</tt><tt class="descname">get_locale_timezones</tt><big>(</big><em>locale</em><big>)</big><a class="headerlink" href="#pyanaconda.localization.get_locale_timezones" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function returning preferred timezones for the given locale.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>locale</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – locale string (see LANGCODE_RE)</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">list of preferred timezones</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">list of strings</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name" colspan="2">Raises InvalidLocaleSpec:</th></tr>
|
|
<tr class="field-even field"><td> </td><td class="field-body">if an invalid locale is given (see LANGCODE_RE)</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.localization.get_native_name">
|
|
<tt class="descclassname">pyanaconda.localization.</tt><tt class="descname">get_native_name</tt><big>(</big><em>locale</em><big>)</big><a class="headerlink" href="#pyanaconda.localization.get_native_name" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function returning native name for the given locale.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>locale</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – locale to return native name for</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">english name for the locale or empty string if unknown</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">st</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name" colspan="2">Raises InvalidLocaleSpec:</th></tr>
|
|
<tr class="field-even field"><td> </td><td class="field-body">if an invalid locale is given (see LANGCODE_RE)</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.localization.get_territory_locales">
|
|
<tt class="descclassname">pyanaconda.localization.</tt><tt class="descname">get_territory_locales</tt><big>(</big><em>territory</em><big>)</big><a class="headerlink" href="#pyanaconda.localization.get_territory_locales" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function returning list of locales for the given territory. The list is
|
|
sorted from the most probable locale to the least probable one (based on
|
|
langtable’s ranking.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>territory</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – territory to return locales for</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">list of locales</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">list of strings</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.localization.get_xlated_timezone">
|
|
<tt class="descclassname">pyanaconda.localization.</tt><tt class="descname">get_xlated_timezone</tt><big>(</big><em>tz_spec_part</em><big>)</big><a class="headerlink" href="#pyanaconda.localization.get_xlated_timezone" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function returning translated name of a region, city or complete timezone
|
|
name according to the current value of the $LANG variable.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>tz_spec_part</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – a region, city or complete timezone name</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">translated name of the given region, city or timezone</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">str</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.localization.is_supported_locale">
|
|
<tt class="descclassname">pyanaconda.localization.</tt><tt class="descname">is_supported_locale</tt><big>(</big><em>locale</em><big>)</big><a class="headerlink" href="#pyanaconda.localization.is_supported_locale" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function that tells if the given locale is supported by the Anaconda or
|
|
not. We consider locales supported by the langtable as supported by the
|
|
Anaconda.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>locale</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – locale to test</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">whether the given locale is supported or not</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">bool</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name" colspan="2">Raises InvalidLocaleSpec:</th></tr>
|
|
<tr class="field-even field"><td> </td><td class="field-body">if an invalid locale is given (see LANGCODE_RE)</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.localization.langcode_matches_locale">
|
|
<tt class="descclassname">pyanaconda.localization.</tt><tt class="descname">langcode_matches_locale</tt><big>(</big><em>langcode</em>, <em>locale</em><big>)</big><a class="headerlink" href="#pyanaconda.localization.langcode_matches_locale" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Function that tells if the given langcode matches the given locale. I.e. if
|
|
all parts of appearing in the langcode (language, territory, script and
|
|
encoding) are the same as the matching parts of the locale.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
|
|
<li><strong>langcode</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – a langcode (e.g. en, en_US, <a class="reference external" href="mailto:en_US%40latin">en_US<span>@</span>latin</a>, etc.)</li>
|
|
<li><strong>locale</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – a valid locale (e.g. en_US.UTF-8 or <a class="reference external" href="mailto:sr_RS.UTF-8%40latin">sr_RS<span>.</span>UTF-8<span>@</span>latin</a>, etc.)</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">whether the given langcode matches the given locale or not</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">bool</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.localization.load_firmware_language">
|
|
<tt class="descclassname">pyanaconda.localization.</tt><tt class="descname">load_firmware_language</tt><big>(</big><em>lang</em><big>)</big><a class="headerlink" href="#pyanaconda.localization.load_firmware_language" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Procedure that loads firmware language information (if any). It stores the
|
|
information in the given ksdata.lang object and sets the $LANG environment
|
|
variable.</p>
|
|
<p>This method must be run before any other threads are started.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>lang</strong> – ksdata.lang object</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">None</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.localization.parse_langcode">
|
|
<tt class="descclassname">pyanaconda.localization.</tt><tt class="descname">parse_langcode</tt><big>(</big><em>langcode</em><big>)</big><a class="headerlink" href="#pyanaconda.localization.parse_langcode" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>For a given langcode (e.g. <a class="reference external" href="mailto:'SR_RS.UTF-8%40latin">'SR_RS<span>.</span>UTF-8<span>@</span>latin</a>‘) returns a dictionary
|
|
with the following keys and example values:</p>
|
|
<p>‘language’ : ‘SR’
|
|
‘territory’ : ‘RS’
|
|
‘encoding’ : ‘UTF-8’
|
|
‘script’ : ‘latin’</p>
|
|
<p>or None if the given string doesn’t match the LANGCODE_RE.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.localization.resolve_date_format">
|
|
<tt class="descclassname">pyanaconda.localization.</tt><tt class="descname">resolve_date_format</tt><big>(</big><em>year</em>, <em>month</em>, <em>day</em>, <em>fail_safe=True</em><big>)</big><a class="headerlink" href="#pyanaconda.localization.resolve_date_format" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Puts the year, month and day objects in the right order according to the
|
|
currently set locale and provides format specification for each of the
|
|
fields.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
|
|
<li><strong>year</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#any" title="(in Python v3.4)"><em>any</em></a>) – any object or value representing year</li>
|
|
<li><strong>month</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#any" title="(in Python v3.4)"><em>any</em></a>) – any object or value representing month</li>
|
|
<li><strong>day</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#any" title="(in Python v3.4)"><em>any</em></a>) – any object or value representing day</li>
|
|
<li><strong>fail_safe</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.4)"><em>bool</em></a>) – whether to fall back to default in case of invalid
|
|
format or raise exception instead</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">a pair where the first field contains a tuple with the year, month
|
|
and day objects/values put in the right order and where the second
|
|
field contains a tuple with three <tt class="xref py py-class docutils literal"><span class="pre">_DateFieldSpec</span></tt> objects
|
|
specifying formats respectively to the first (year, month, day)
|
|
field, e.g. ((year, month, day), (y_fmt, m_fmt, d_fmt))</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first">tuple</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name" colspan="2">Raises <a class="reference external" href="https://docs.python.org/3/library/exceptions.html#ValueError" title="(in Python v3.4)">ValueError</a>:</th></tr>
|
|
<tr class="field-even field"><td> </td><td class="field-body"><p class="first last">in case currently set locale has unsupported date
|
|
format and fail_safe is set to False</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.localization.setup_locale">
|
|
<tt class="descclassname">pyanaconda.localization.</tt><tt class="descname">setup_locale</tt><big>(</big><em>locale</em>, <em>lang=None</em><big>)</big><a class="headerlink" href="#pyanaconda.localization.setup_locale" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Procedure setting the system to use the given locale and store it in to the
|
|
ksdata.lang object (if given). DOES NOT PERFORM ANY CHECKS OF THE GIVEN
|
|
LOCALE.</p>
|
|
<p>$LANG must be set by the caller in order to set the language used by gettext.
|
|
Doing this in a thread-safe way is up to the caller.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
|
|
<li><strong>locale</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – locale to setup</li>
|
|
<li><strong>lang</strong> – ksdata.lang object or None</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">None</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">None</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.localization.write_language_configuration">
|
|
<tt class="descclassname">pyanaconda.localization.</tt><tt class="descname">write_language_configuration</tt><big>(</big><em>lang</em>, <em>root</em><big>)</big><a class="headerlink" href="#pyanaconda.localization.write_language_configuration" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Write language configuration to the $root/etc/locale.conf file.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>lang</strong> – ksdata.lang object</li>
|
|
<li><strong>root</strong> – path to the root of the installed system</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.network">
|
|
<span id="pyanaconda-network-module"></span><h2>pyanaconda.network module<a class="headerlink" href="#module-pyanaconda.network" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="class">
|
|
<dt id="pyanaconda.network.IfcfgFile">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.network.</tt><tt class="descname">IfcfgFile</tt><big>(</big><em>filename</em><big>)</big><a class="headerlink" href="#pyanaconda.network.IfcfgFile" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#pyanaconda.simpleconfig.SimpleConfigFile" title="pyanaconda.simpleconfig.SimpleConfigFile"><tt class="xref py py-class docutils literal"><span class="pre">pyanaconda.simpleconfig.SimpleConfigFile</span></tt></a></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.network.IfcfgFile.read">
|
|
<tt class="descname">read</tt><big>(</big><em>filename=None</em><big>)</big><a class="headerlink" href="#pyanaconda.network.IfcfgFile.read" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.network.IfcfgFile.set">
|
|
<tt class="descname">set</tt><big>(</big><em>*args</em><big>)</big><a class="headerlink" href="#pyanaconda.network.IfcfgFile.set" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.network.IfcfgFile.unset">
|
|
<tt class="descname">unset</tt><big>(</big><em>*args</em><big>)</big><a class="headerlink" href="#pyanaconda.network.IfcfgFile.unset" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.network.IfcfgFile.write">
|
|
<tt class="descname">write</tt><big>(</big><em>filename=None</em>, <em>use_tmp=False</em><big>)</big><a class="headerlink" href="#pyanaconda.network.IfcfgFile.write" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.add_connection_for_ksdata">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">add_connection_for_ksdata</tt><big>(</big><em>networkdata</em>, <em>devname</em><big>)</big><a class="headerlink" href="#pyanaconda.network.add_connection_for_ksdata" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.apply_kickstart">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">apply_kickstart</tt><big>(</big><em>ksdata</em><big>)</big><a class="headerlink" href="#pyanaconda.network.apply_kickstart" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.autostartFCoEDevices">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">autostartFCoEDevices</tt><big>(</big><em>rootpath</em>, <em>storage</em>, <em>ksdata</em><big>)</big><a class="headerlink" href="#pyanaconda.network.autostartFCoEDevices" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.bond_options_ksdata_to_dbus">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">bond_options_ksdata_to_dbus</tt><big>(</big><em>opts_str</em><big>)</big><a class="headerlink" href="#pyanaconda.network.bond_options_ksdata_to_dbus" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.check_ip_address">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">check_ip_address</tt><big>(</big><em>address</em>, <em>version=None</em><big>)</big><a class="headerlink" href="#pyanaconda.network.check_ip_address" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.copyDhclientConfFiles">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">copyDhclientConfFiles</tt><big>(</big><em>destPath</em><big>)</big><a class="headerlink" href="#pyanaconda.network.copyDhclientConfFiles" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.copyFileToPath">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">copyFileToPath</tt><big>(</big><em>fileName</em>, <em>destPath=''</em>, <em>overwrite=False</em><big>)</big><a class="headerlink" href="#pyanaconda.network.copyFileToPath" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.copyIfcfgFiles">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">copyIfcfgFiles</tt><big>(</big><em>destPath</em><big>)</big><a class="headerlink" href="#pyanaconda.network.copyIfcfgFiles" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.default_ks_vlan_interface_name">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">default_ks_vlan_interface_name</tt><big>(</big><em>parent</em>, <em>vlanid</em><big>)</big><a class="headerlink" href="#pyanaconda.network.default_ks_vlan_interface_name" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.default_route_device">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">default_route_device</tt><big>(</big><em>family='inet'</em><big>)</big><a class="headerlink" href="#pyanaconda.network.default_route_device" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.disableIPV6">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">disableIPV6</tt><big>(</big><em>rootpath</em><big>)</big><a class="headerlink" href="#pyanaconda.network.disableIPV6" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.disableNMForStorageDevices">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">disableNMForStorageDevices</tt><big>(</big><em>rootpath</em>, <em>storage</em><big>)</big><a class="headerlink" href="#pyanaconda.network.disableNMForStorageDevices" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.dracutBootArguments">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">dracutBootArguments</tt><big>(</big><em>devname</em>, <em>ifcfg</em>, <em>storage_ipaddr</em>, <em>hostname=None</em><big>)</big><a class="headerlink" href="#pyanaconda.network.dracutBootArguments" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.dracutSetupArgs">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">dracutSetupArgs</tt><big>(</big><em>networkStorageDevice</em><big>)</big><a class="headerlink" href="#pyanaconda.network.dracutSetupArgs" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.dumpMissingDefaultIfcfgs">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">dumpMissingDefaultIfcfgs</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.network.dumpMissingDefaultIfcfgs" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Dump missing default ifcfg file for wired devices.
|
|
For default auto connections created by NM upon start - which happens
|
|
in case of missing ifcfg file - rename the connection using device name
|
|
and dump its ifcfg file. (For server, default auto connections will
|
|
be turned off in NetworkManager.conf.)
|
|
The connection id (and consequently ifcfg file) is set to device name.
|
|
Returns list of devices for which ifcfg file was dumped.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.find_ifcfg_file">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">find_ifcfg_file</tt><big>(</big><em>values</em>, <em>root_path=''</em><big>)</big><a class="headerlink" href="#pyanaconda.network.find_ifcfg_file" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.find_ifcfg_file_of_device">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">find_ifcfg_file_of_device</tt><big>(</big><em>devname</em>, <em>root_path=''</em><big>)</big><a class="headerlink" href="#pyanaconda.network.find_ifcfg_file_of_device" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.getFirstRealIP">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">getFirstRealIP</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.network.getFirstRealIP" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.getHostname">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">getHostname</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.network.getHostname" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.getIPs">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">getIPs</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.network.getIPs" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.get_device_name">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">get_device_name</tt><big>(</big><em>network_data</em><big>)</big><a class="headerlink" href="#pyanaconda.network.get_device_name" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Find the first network device which matches the kickstart specification.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>network_data</strong> – A pykickstart NetworkData object</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">a string naming a physical device, or “” meaning none matched</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">str</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.get_slaves_from_ifcfgs">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">get_slaves_from_ifcfgs</tt><big>(</big><em>master_option</em>, <em>master_specs</em><big>)</big><a class="headerlink" href="#pyanaconda.network.get_slaves_from_ifcfgs" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>List of slaves of master specified by master_specs in master_option.</p>
|
|
<p>master_option is ifcfg option containing spec of master
|
|
master_specs is a list containing device name of master (dracut)
|
|
and/or master’s connection uuid</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.get_team_slaves">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">get_team_slaves</tt><big>(</big><em>master_specs</em><big>)</big><a class="headerlink" href="#pyanaconda.network.get_team_slaves" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>List of slaves of master specified by master_specs (name, opts).</p>
|
|
<p>master_specs is a list containing device name of master (dracut)
|
|
and/or master’s connection uuid</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.has_some_wired_autoconnect_device">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">has_some_wired_autoconnect_device</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.network.has_some_wired_autoconnect_device" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Is there a wired network device with autoconnect?</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.hostname_ksdata">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">hostname_ksdata</tt><big>(</big><em>hostname</em><big>)</big><a class="headerlink" href="#pyanaconda.network.hostname_ksdata" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.ifaceForHostIP">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">ifaceForHostIP</tt><big>(</big><em>host</em><big>)</big><a class="headerlink" href="#pyanaconda.network.ifaceForHostIP" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.ifcfg_to_ksdata">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">ifcfg_to_ksdata</tt><big>(</big><em>ifcfg</em>, <em>devname</em><big>)</big><a class="headerlink" href="#pyanaconda.network.ifcfg_to_ksdata" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.is_using_team_device">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">is_using_team_device</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.network.is_using_team_device" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.ks_spec_to_device_name">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">ks_spec_to_device_name</tt><big>(</big><em>ksspec=''</em><big>)</big><a class="headerlink" href="#pyanaconda.network.ks_spec_to_device_name" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Find the first network device which matches the kickstart specification.
|
|
Will not match derived types such as bonds and vlans.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>ksspec</strong> – kickstart-specified device name</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">a string naming a physical device, or “” meaning none matched</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">str</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.ksdata_from_ifcfg">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">ksdata_from_ifcfg</tt><big>(</big><em>devname</em>, <em>uuid=None</em><big>)</big><a class="headerlink" href="#pyanaconda.network.ksdata_from_ifcfg" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.logIfcfgFile">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">logIfcfgFile</tt><big>(</big><em>path</em>, <em>message=''</em><big>)</big><a class="headerlink" href="#pyanaconda.network.logIfcfgFile" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.logIfcfgFiles">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">logIfcfgFiles</tt><big>(</big><em>message=''</em><big>)</big><a class="headerlink" href="#pyanaconda.network.logIfcfgFiles" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.netmask2prefix">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">netmask2prefix</tt><big>(</big><em>netmask</em><big>)</big><a class="headerlink" href="#pyanaconda.network.netmask2prefix" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.networkInitialize">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">networkInitialize</tt><big>(</big><em>ksdata</em><big>)</big><a class="headerlink" href="#pyanaconda.network.networkInitialize" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.prefix2netmask">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">prefix2netmask</tt><big>(</big><em>prefix</em><big>)</big><a class="headerlink" href="#pyanaconda.network.prefix2netmask" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Convert prefix (CIDR bits) to netmask</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.sanityCheckHostname">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">sanityCheckHostname</tt><big>(</big><em>hostname</em><big>)</big><a class="headerlink" href="#pyanaconda.network.sanityCheckHostname" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Check if the given string is (syntactically) a valid hostname.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>hostname</strong> – a string to check</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">a pair containing boolean value (valid or invalid) and
|
|
an error message (if applicable)</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">(bool, str)</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.setOnboot">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">setOnboot</tt><big>(</big><em>ksdata</em><big>)</big><a class="headerlink" href="#pyanaconda.network.setOnboot" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.set_hostname">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">set_hostname</tt><big>(</big><em>hn</em><big>)</big><a class="headerlink" href="#pyanaconda.network.set_hostname" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.setup_ifcfg_log">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">setup_ifcfg_log</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.network.setup_ifcfg_log" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.status_message">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">status_message</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.network.status_message" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>A short string describing which devices are connected.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.update_hostname_data">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">update_hostname_data</tt><big>(</big><em>ksdata</em>, <em>hostname</em><big>)</big><a class="headerlink" href="#pyanaconda.network.update_hostname_data" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.update_onboot_value">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">update_onboot_value</tt><big>(</big><em>devname</em>, <em>value</em>, <em>ksdata</em><big>)</big><a class="headerlink" href="#pyanaconda.network.update_onboot_value" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Update onboot value in ifcfg files and ksdata</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.update_settings_with_ksdata">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">update_settings_with_ksdata</tt><big>(</big><em>devname</em>, <em>networkdata</em><big>)</big><a class="headerlink" href="#pyanaconda.network.update_settings_with_ksdata" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.usedByFCoE">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">usedByFCoE</tt><big>(</big><em>iface</em>, <em>storage</em><big>)</big><a class="headerlink" href="#pyanaconda.network.usedByFCoE" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.usedByRootOnISCSI">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">usedByRootOnISCSI</tt><big>(</big><em>iface</em>, <em>storage</em><big>)</big><a class="headerlink" href="#pyanaconda.network.usedByRootOnISCSI" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.wait_for_connecting_NM_thread">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">wait_for_connecting_NM_thread</tt><big>(</big><em>ksdata</em><big>)</big><a class="headerlink" href="#pyanaconda.network.wait_for_connecting_NM_thread" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>This function is called from a thread which is run at startup
|
|
to wait for Network Manager to connect.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.wait_for_connectivity">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">wait_for_connectivity</tt><big>(</big><em>timeout=45</em><big>)</big><a class="headerlink" href="#pyanaconda.network.wait_for_connectivity" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Wait for network connectivty to become available</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>timeout</strong> – how long to wait in seconds</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.wait_for_network_devices">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">wait_for_network_devices</tt><big>(</big><em>devices</em>, <em>timeout=45</em><big>)</big><a class="headerlink" href="#pyanaconda.network.wait_for_network_devices" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.write_hostname">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">write_hostname</tt><big>(</big><em>rootpath</em>, <em>ksdata</em>, <em>overwrite=False</em><big>)</big><a class="headerlink" href="#pyanaconda.network.write_hostname" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.write_network_config">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">write_network_config</tt><big>(</big><em>storage</em>, <em>ksdata</em>, <em>instClass</em>, <em>rootpath</em><big>)</big><a class="headerlink" href="#pyanaconda.network.write_network_config" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.network.write_sysconfig_network">
|
|
<tt class="descclassname">pyanaconda.network.</tt><tt class="descname">write_sysconfig_network</tt><big>(</big><em>rootpath</em>, <em>overwrite=False</em><big>)</big><a class="headerlink" href="#pyanaconda.network.write_sysconfig_network" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.nm">
|
|
<span id="pyanaconda-nm-module"></span><h2>pyanaconda.nm module<a class="headerlink" href="#module-pyanaconda.nm" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.nm.AddConnectionError">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">AddConnectionError</tt><a class="headerlink" href="#pyanaconda.nm.AddConnectionError" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.Exception</span></tt></p>
|
|
<p>Connection is not available for the device</p>
|
|
</dd></dl>
|
|
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.nm.BondOptionsError">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">BondOptionsError</tt><a class="headerlink" href="#pyanaconda.nm.BondOptionsError" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#pyanaconda.nm.AddConnectionError" title="pyanaconda.nm.AddConnectionError"><tt class="xref py py-class docutils literal"><span class="pre">pyanaconda.nm.AddConnectionError</span></tt></a></p>
|
|
</dd></dl>
|
|
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.nm.DeviceNotActiveError">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">DeviceNotActiveError</tt><a class="headerlink" href="#pyanaconda.nm.DeviceNotActiveError" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.Exception</span></tt></p>
|
|
<p>Device of specified name is not active</p>
|
|
</dd></dl>
|
|
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.nm.PropertyNotFoundError">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">PropertyNotFoundError</tt><a class="headerlink" href="#pyanaconda.nm.PropertyNotFoundError" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.ValueError</span></tt></p>
|
|
<p>Property of NM object was not found</p>
|
|
</dd></dl>
|
|
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.nm.SettingsNotFoundError">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">SettingsNotFoundError</tt><a class="headerlink" href="#pyanaconda.nm.SettingsNotFoundError" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.ValueError</span></tt></p>
|
|
<p>Settings NMRemoteConnection object was not found</p>
|
|
</dd></dl>
|
|
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.nm.UnknownConnectionError">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">UnknownConnectionError</tt><a class="headerlink" href="#pyanaconda.nm.UnknownConnectionError" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.Exception</span></tt></p>
|
|
<p>Connection is not available for the device</p>
|
|
</dd></dl>
|
|
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.nm.UnknownDeviceError">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">UnknownDeviceError</tt><a class="headerlink" href="#pyanaconda.nm.UnknownDeviceError" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.ValueError</span></tt></p>
|
|
<p>Device of specified name was not found by NM</p>
|
|
</dd></dl>
|
|
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.nm.UnknownMethodGetError">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">UnknownMethodGetError</tt><a class="headerlink" href="#pyanaconda.nm.UnknownMethodGetError" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.Exception</span></tt></p>
|
|
<p>Object does not have Get, most probably being invalid</p>
|
|
</dd></dl>
|
|
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.nm.UnmanagedDeviceError">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">UnmanagedDeviceError</tt><a class="headerlink" href="#pyanaconda.nm.UnmanagedDeviceError" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.Exception</span></tt></p>
|
|
<p>Device of specified name is not managed by NM or unavailable</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_activate_device_connection">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_activate_device_connection</tt><big>(</big><em>dev_name</em>, <em>con_uuid</em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_activate_device_connection" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Activate device with specified connection.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
|
|
<li><strong>dev_name</strong> (<em>str or None</em>) – name of device or None for virtual devices</li>
|
|
<li><strong>con_uuid</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – uuid of connection to be activated on device</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>UnknownDeviceError</strong> – if device is not found</li>
|
|
<li><strong>UnmanagedDeviceError</strong> – if device is not managed by NM
|
|
or unavailable</li>
|
|
<li><strong>SettingsNotFoundError</strong> – if conneciton with given uuid was not found</li>
|
|
<li><strong>UnknownConnectionError</strong> – if connection is not available for the device</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_activated_devices">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_activated_devices</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_activated_devices" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return names of activated network devices.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">names of activated network devices</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">list of strings</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_add_connection">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_add_connection</tt><big>(</big><em>values</em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_add_connection" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Add new connection specified by values.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>values</strong> (<em>[[key1, key2, value, type_str], ...]
|
|
key1: str
|
|
key2: str
|
|
value: object
|
|
type_str: str</em>) – list of settings with new values and its types
|
|
[[key1, key2, value, type_str], ...]
|
|
key1: first-level key of setting (eg “connection”)
|
|
key2: second-level key of setting (eg “uuid”)
|
|
value: new value
|
|
type_str: dbus type of new value (eg “ay”)</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_ap_setting_value">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_ap_setting_value</tt><big>(</big><em>ssid</em>, <em>key1</em>, <em>key2</em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_ap_setting_value" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return value of ap’s setting specified by key1 and key2.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
|
|
<li><strong>ssid</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – name of ap (ssid)</li>
|
|
<li><strong>key1</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – first-level key of setting (eg “connection”)</li>
|
|
<li><strong>key2</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – second-level key of setting (eg “uuid”)</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">value of setting or None if the setting was not found
|
|
which means it does not exist or default value is used
|
|
by NM</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first">unpacked GDBus variant or None</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name" colspan="2">Raises SettingsNotFoundError:</th></tr>
|
|
<tr class="field-even field"><td> </td><td class="field-body"><p class="first last">if settings were not found
|
|
(eg for “wlan0”)</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_dbus_ay_to_ipv6">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_dbus_ay_to_ipv6</tt><big>(</big><em>bytelist</em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_dbus_ay_to_ipv6" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Convert ipv6 address from list of bytes (dbus ‘ay’) to string.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>address</strong> (<em>list of bytes - dbus ‘ay’</em>) – IPv6 address as list of bytes returned by dbus (‘ay’)</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">IPv6 address</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">str</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_dbus_int_to_ipv4">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_dbus_int_to_ipv4</tt><big>(</big><em>address</em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_dbus_int_to_ipv4" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Convert ipv4 address from dus int ‘u’ (switched endianess) to string.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>address</strong> (<em>integer - dbus ‘u’</em>) – IPv4 address as integer returned by dbus (‘u’)</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">IPv6 address</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">str</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_delete_connection">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_delete_connection</tt><big>(</big><em>uuid</em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_delete_connection" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Delete connection specified by uuid.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>uuid</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – uuid of connection to be deleted</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">True if connection was deleted, False if it was not found</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">bool</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_device_active_con_uuid">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_device_active_con_uuid</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_device_active_con_uuid" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return uuid of device’s active connection</p>
|
|
<p>Exceptions:
|
|
UnknownDeviceError if device is not found</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_device_active_ssid">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_device_active_ssid</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_device_active_ssid" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return ssid of device’s active access point.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – name of device</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p>:return ssid of active access point, None if device has no active AP
|
|
:rtype: str
|
|
:raise UnknownDeviceError: if device is not found</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_device_carrier">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_device_carrier</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_device_carrier" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return whether physical carrier of device is found.
|
|
(‘Carrier’ property)</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – name of device</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">True if physical carrier is found, False otherwise</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first">bool</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>UnknownDeviceError</strong> – if device is not found</li>
|
|
<li><strong>PropertyNotFoundError</strong> – if ‘Carrier’ property is not found</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_device_hwaddress">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_device_hwaddress</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_device_hwaddress" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return active hardware address of device (‘HwAddress’ property)</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – name of device</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">active hardware address of device (‘HwAddress’ property)</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first">str</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>UnknownDeviceError</strong> – if device is not found</li>
|
|
<li><strong>PropertyNotFoundError</strong> – if ‘HwAddress’ property is not found</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_device_ip_addresses">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_device_ip_addresses</tt><big>(</big><em>name</em>, <em>version=4</em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_device_ip_addresses" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return IP addresses of device in ACTIVATED state.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
|
|
<li><strong>name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – name of device</li>
|
|
<li><strong>version</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.4)"><em>int</em></a>) – version of IP protocol (value 4 or 6)</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">IP addresses of device, empty list if device is not
|
|
in ACTIVATED state</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first">list of strings</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>UnknownDeviceError</strong> – if device is not found</li>
|
|
<li><strong>PropertyNotFoundError</strong> – if IP configuration is not found</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_device_ip_config">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_device_ip_config</tt><big>(</big><em>name</em>, <em>version=4</em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_device_ip_config" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return IP configurations of device in ACTIVATED state.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
|
|
<li><strong>name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – name of device</li>
|
|
<li><strong>version</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.4)"><em>int</em></a>) – version of IP protocol (value 4 or 6)</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">IP configuration of device, empty list if device is not
|
|
in ACTIVATED state</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first"><dl class="docutils">
|
|
<dt>[[[address1, prefix1, gateway1], [address2, prefix2, gateway2], ...],</dt>
|
|
<dd><p class="first last">[nameserver1, nameserver2]]</p>
|
|
</dd>
|
|
</dl>
|
|
<p>addressX, gatewayX: string
|
|
prefixX: int</p>
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>UnknownDeviceError</strong> – if device is not found</li>
|
|
<li><strong>PropertyNotFoundError</strong> – if ip configuration is not found</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_device_is_slave">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_device_is_slave</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_device_is_slave" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Is the device a slave?</p>
|
|
<p>Exceptions:
|
|
UnknownDeviceError if device is not found</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_device_perm_hwaddress">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_device_perm_hwaddress</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_device_perm_hwaddress" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return active hardware address of device (‘PermHwAddress’ property)</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – name of device</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">active hardware address of device (‘PermHwAddress’ property)</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first">str</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>UnknownDeviceError</strong> – if device is not found</li>
|
|
<li><strong>PropertyNotFoundError</strong> – if ‘PermHwAddress’ property is not found</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_device_property">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_device_property</tt><big>(</big><em>name</em>, <em>prop</em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_device_property" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return value of device NM property</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
|
|
<li><strong>name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – name of device</li>
|
|
<li><strong>prop</strong> – property</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">value of device’s property</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first">unpacked GDBus value</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>UnknownDeviceError</strong> – if device is not found</li>
|
|
<li><strong>PropertyNotFoundError</strong> – if property is not found</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_device_setting_value">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_device_setting_value</tt><big>(</big><em>name</em>, <em>key1</em>, <em>key2</em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_device_setting_value" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return value of device’s setting specified by key1 and key2.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
|
|
<li><strong>name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – name of device</li>
|
|
<li><strong>key1</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – first-level key of setting (eg “connection”)</li>
|
|
<li><strong>key2</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – second-level key of setting (eg “uuid”)</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">value of setting or None if the setting was not found
|
|
which means it does not exist or default value is used
|
|
by NM</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first">unpacked GDBus variant or None</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>UnknownDeviceError</strong> – if device is not found</li>
|
|
<li><strong>SettingsNotFoundError</strong> – if settings were not found
|
|
(eg for “wlan0”)</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_device_slaves">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_device_slaves</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_device_slaves" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return slaves of device.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – name of device</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">names of slaves of device or None if device has no ‘Slaves’ property</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">list of strings or None</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name" colspan="2">Raises UnknownDeviceError:</th></tr>
|
|
<tr class="field-even field"><td> </td><td class="field-body">if device is not found</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_device_type">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_device_type</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_device_type" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return device’s type (‘DeviceType’ property).</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – name of device</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">device type</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first">integer</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>UnknownDeviceError</strong> – if device is not found</li>
|
|
<li><strong>PropertyNotFoundError</strong> – if ‘DeviceType’ property is not found</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_device_type_is_bond">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_device_type_is_bond</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_device_type_is_bond" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Is the type of device bond?</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – name of device</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">True if type of device is BOND, False otherwise</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first">bool</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>UnknownDeviceError</strong> – if device is not found</li>
|
|
<li><strong>PropertyNotFoundError</strong> – if property is not found</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_device_type_is_bridge">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_device_type_is_bridge</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_device_type_is_bridge" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Is the type of device bridge?</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – name of device</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">True if type of device is BRIDGE, False otherwise</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first">bool</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>UnknownDeviceError</strong> – if device is not found</li>
|
|
<li><strong>PropertyNotFoundError</strong> – if property is not found</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_device_type_is_ethernet">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_device_type_is_ethernet</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_device_type_is_ethernet" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Is the type of device ethernet?</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – name of device</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">True if type of device is ETHERNET, False otherwise</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first">bool</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>UnknownDeviceError</strong> – if device is not found</li>
|
|
<li><strong>PropertyNotFoundError</strong> – if property is not found</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_device_type_is_infiniband">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_device_type_is_infiniband</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_device_type_is_infiniband" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Is the type of device infiniband?</p>
|
|
<p>Exceptions:
|
|
UnknownDeviceError if device is not found
|
|
PropertyNotFoundError if type is not found</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_device_type_is_team">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_device_type_is_team</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_device_type_is_team" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Is the type of device team?</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – name of device</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">True if type of device is TEAM, False otherwise</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first">bool</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>UnknownDeviceError</strong> – if device is not found</li>
|
|
<li><strong>PropertyNotFoundError</strong> – if property is not found</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_device_type_is_vlan">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_device_type_is_vlan</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_device_type_is_vlan" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Is the type of device vlan?</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – name of device</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">True if type of device is VLAN, False otherwise</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first">bool</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>UnknownDeviceError</strong> – if device is not found</li>
|
|
<li><strong>PropertyNotFoundError</strong> – if property is not found</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_device_type_is_wifi">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_device_type_is_wifi</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_device_type_is_wifi" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Is the type of device wifi?</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – name of device</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">True if type of device is WIFI, False otherwise</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first">bool</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>UnknownDeviceError</strong> – if device is not found</li>
|
|
<li><strong>PropertyNotFoundError</strong> – if property is not found</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_device_valid_hwaddress">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_device_valid_hwaddress</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_device_valid_hwaddress" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return valid hardware address of device depending on type of the device
|
|
(‘PermHwAddress’ property or ‘HwAddress’ property for infiniband)</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – name of device</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">active hardware address of device
|
|
(‘HwAddress’ or ‘PermHwAddress’ property)</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first">str</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>UnknownDeviceError</strong> – if device is not found</li>
|
|
<li><strong>PropertyNotFoundError</strong> – if property is not found</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_devices">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_devices</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_devices" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return names of network devices supported in installer.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">names of network devices supported in installer</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">list of strings</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_disconnect_device">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_disconnect_device</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_disconnect_device" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Disconnect the device.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name" colspan="2">Raises UnknownDeviceError:</th></tr>
|
|
<tr class="field-odd field"><td> </td><td class="field-body">if device is not found</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_get_all_settings">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_get_all_settings</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_get_all_settings" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return all settings for logging.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_get_settings">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_get_settings</tt><big>(</big><em>value</em>, <em>key1</em>, <em>key2</em>, <em>format_value=<function <lambda> at 0x7feab3f96a60></em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_get_settings" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return settings having given value of key1, key2 setting</p>
|
|
<p>Returns list of settings(dicts) , None if settings were not found.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_hwaddr_to_device_name">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_hwaddr_to_device_name</tt><big>(</big><em>hwaddr</em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_hwaddr_to_device_name" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return device name of interface with given hardware address.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>hwaddr</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – hardware address</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">device name of interface having hwaddr</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">str</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_ipv4_to_dbus_int">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_ipv4_to_dbus_int</tt><big>(</big><em>address</em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_ipv4_to_dbus_int" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Convert ipv4 address from string to int for dbus (switched endianess).</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>address</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – IPv4 address</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">IPv4 address as an integer ‘u’ for NM dbus setting</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">integer</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_ipv6_to_dbus_ay">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_ipv6_to_dbus_ay</tt><big>(</big><em>address</em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_ipv6_to_dbus_ay" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Convert ipv6 address from string to list of bytes ‘ay’ for dbus</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>address</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – IPv6 address</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">address in format ‘ay’ for NM dbus setting</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">list of bytes</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_is_connected">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_is_connected</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_is_connected" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Is NetworkManager connected?</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">True if NM is connected, False otherwise.</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">bool</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_is_connecting">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_is_connecting</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_is_connecting" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Is NetworkManager connecting?</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">True if NM is in CONNECTING state, False otherwise.</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">bool</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_ntp_servers_from_dhcp">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_ntp_servers_from_dhcp</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_ntp_servers_from_dhcp" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return NTP servers obtained by DHCP.</p>
|
|
<p>return: NTP servers obtained by DHCP
|
|
rtype: list of str</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_state">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_state</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_state" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return state of NetworkManager</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">state of NetworkManager</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">integer</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.nm_update_settings_of_device">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">nm_update_settings_of_device</tt><big>(</big><em>name</em>, <em>new_values</em><big>)</big><a class="headerlink" href="#pyanaconda.nm.nm_update_settings_of_device" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Update setting of device.</p>
|
|
<p>The type of value is determined from existing settings of device.
|
|
If setting for key1, key2 does not exist, default_type_str is used or
|
|
if None, the type is inferred from the value supplied (string and bool only).</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
|
|
<li><strong>name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – name of device</li>
|
|
<li><strong>new_values</strong> (<em>[[key1, key2, value, default_type_str], ...]
|
|
key1: str
|
|
key2: str
|
|
value:
|
|
default_type_str: str</em>) – <p>list of settings with new values and its types
|
|
[[key1, key2, value, default_type_str]]
|
|
key1: first-level key of setting (eg “connection”)
|
|
key2: second-level key of setting (eg “uuid”)
|
|
value: new value
|
|
default_type_str: dbus type of new value to be used</p>
|
|
<blockquote>
|
|
<div>if the setting does not already exist;
|
|
if None, the type is inferred from
|
|
value (string and bool only)</div></blockquote>
|
|
</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>UnknownDeviceError</strong> – if device is not found</li>
|
|
<li><strong>SettingsNotFoundError</strong> – if settings were not found
|
|
(eg for “wlan0”)</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.nm.test">
|
|
<tt class="descclassname">pyanaconda.nm.</tt><tt class="descname">test</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.nm.test" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.ntp">
|
|
<span id="pyanaconda-ntp-module"></span><h2>pyanaconda.ntp module<a class="headerlink" href="#module-pyanaconda.ntp" title="Permalink to this headline">¶</a></h2>
|
|
<p>Module facilitating the work with NTP servers and NTP daemon’s configuration</p>
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.ntp.NTPconfigError">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.ntp.</tt><tt class="descname">NTPconfigError</tt><a class="headerlink" href="#pyanaconda.ntp.NTPconfigError" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.Exception</span></tt></p>
|
|
<p>Exception class for NTP related problems</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.ntp.get_servers_from_config">
|
|
<tt class="descclassname">pyanaconda.ntp.</tt><tt class="descname">get_servers_from_config</tt><big>(</big><em>conf_file_path='/etc/chrony.conf'</em>, <em>srv_regexp=re.compile('^\\s*(server|pool)\\s*([-a-zA-Z.0-9]+)\\s*[a-zA-Z]+\\s*$')</em><big>)</big><a class="headerlink" href="#pyanaconda.ntp.get_servers_from_config" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Goes through the chronyd’s configuration file looking for lines starting
|
|
with ‘server’.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">servers found in the chronyd’s configuration</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">list</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.ntp.internal_to_pools_and_servers">
|
|
<tt class="descclassname">pyanaconda.ntp.</tt><tt class="descname">internal_to_pools_and_servers</tt><big>(</big><em>pools_servers</em><big>)</big><a class="headerlink" href="#pyanaconda.ntp.internal_to_pools_and_servers" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.ntp.ntp_server_working">
|
|
<tt class="descclassname">pyanaconda.ntp.</tt><tt class="descname">ntp_server_working</tt><big>(</big><em>server</em><big>)</big><a class="headerlink" href="#pyanaconda.ntp.ntp_server_working" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Tries to do an NTP request to the $server (timeout may take some time).</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>server</strong> (<a class="reference external" href="https://docs.python.org/3/library/string.html#module-string" title="(in Python v3.4)"><em>string</em></a>) – hostname or IP address of an NTP server</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">True if the given server is reachable and working, False otherwise</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">bool</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.ntp.one_time_sync">
|
|
<tt class="descclassname">pyanaconda.ntp.</tt><tt class="descname">one_time_sync</tt><big>(</big><em>server</em>, <em>callback=None</em><big>)</big><a class="headerlink" href="#pyanaconda.ntp.one_time_sync" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Synchronize the system time with a given NTP server. Note that this
|
|
function is blocking and will not return until the time gets synced or
|
|
querying server fails (may take some time before timeouting).</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
|
|
<li><strong>server</strong> – NTP server</li>
|
|
<li><strong>callback</strong> (<em>a function taking one boolean argument (success)</em>) – callback function to run after sync or failure</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">True if the sync was successful, False otherwise</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.ntp.one_time_sync_async">
|
|
<tt class="descclassname">pyanaconda.ntp.</tt><tt class="descname">one_time_sync_async</tt><big>(</big><em>server</em>, <em>callback=None</em><big>)</big><a class="headerlink" href="#pyanaconda.ntp.one_time_sync_async" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Asynchronously synchronize the system time with a given NTP server. This
|
|
function is non-blocking it starts a new thread for synchronization and
|
|
returns. Use callback argument to specify the function called when the
|
|
new thread finishes if needed.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>server</strong> – NTP server</li>
|
|
<li><strong>callback</strong> (<em>a function taking one boolean argument (success)</em>) – callback function to run after sync or failure</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.ntp.pools_servers_to_internal">
|
|
<tt class="descclassname">pyanaconda.ntp.</tt><tt class="descname">pools_servers_to_internal</tt><big>(</big><em>pools</em>, <em>servers</em><big>)</big><a class="headerlink" href="#pyanaconda.ntp.pools_servers_to_internal" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.ntp.save_servers_to_config">
|
|
<tt class="descclassname">pyanaconda.ntp.</tt><tt class="descname">save_servers_to_config</tt><big>(</big><em>pools</em>, <em>servers</em>, <em>conf_file_path='/etc/chrony.conf'</em>, <em>srv_regexp=re.compile('^\\s*(server|pool)\\s*([-a-zA-Z.0-9]+)\\s*[a-zA-Z]+\\s*$')</em>, <em>out_file_path=None</em><big>)</big><a class="headerlink" href="#pyanaconda.ntp.save_servers_to_config" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Replaces the pools and servers defined in the chronyd’s configuration file
|
|
with the given ones. If the out_file is not None, then it is used for the
|
|
resulting config.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>out_file_path</strong> – path to the file used for the resulting config</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.orderedset">
|
|
<span id="pyanaconda-orderedset-module"></span><h2>pyanaconda.orderedset module<a class="headerlink" href="#module-pyanaconda.orderedset" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="class">
|
|
<dt id="pyanaconda.orderedset.OrderedSet">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.orderedset.</tt><tt class="descname">OrderedSet</tt><big>(</big><em>iterable=None</em><big>)</big><a class="headerlink" href="#pyanaconda.orderedset.OrderedSet" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/collections.abc.html#collections.abc.MutableSet" title="(in Python v3.4)"><tt class="xref py py-class docutils literal"><span class="pre">collections.abc.MutableSet</span></tt></a></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.orderedset.OrderedSet.add">
|
|
<tt class="descname">add</tt><big>(</big><em>key</em><big>)</big><a class="headerlink" href="#pyanaconda.orderedset.OrderedSet.add" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.orderedset.OrderedSet.discard">
|
|
<tt class="descname">discard</tt><big>(</big><em>key</em><big>)</big><a class="headerlink" href="#pyanaconda.orderedset.OrderedSet.discard" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.orderedset.OrderedSet.pop">
|
|
<tt class="descname">pop</tt><big>(</big><em>last=True</em><big>)</big><a class="headerlink" href="#pyanaconda.orderedset.OrderedSet.pop" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.product">
|
|
<span id="pyanaconda-product-module"></span><h2>pyanaconda.product module<a class="headerlink" href="#module-pyanaconda.product" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="function">
|
|
<dt id="pyanaconda.product.distributionText">
|
|
<tt class="descclassname">pyanaconda.product.</tt><tt class="descname">distributionText</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.product.distributionText" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.product.translated_new_install_name">
|
|
<tt class="descclassname">pyanaconda.product.</tt><tt class="descname">translated_new_install_name</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.product.translated_new_install_name" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.progress">
|
|
<span id="pyanaconda-progress-module"></span><h2>pyanaconda.progress module<a class="headerlink" href="#module-pyanaconda.progress" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="function">
|
|
<dt id="pyanaconda.progress.progress_complete">
|
|
<tt class="descclassname">pyanaconda.progress.</tt><tt class="descname">progress_complete</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.progress.progress_complete" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.progress.progress_init">
|
|
<tt class="descclassname">pyanaconda.progress.</tt><tt class="descname">progress_init</tt><big>(</big><em>steps</em><big>)</big><a class="headerlink" href="#pyanaconda.progress.progress_init" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.progress.progress_message">
|
|
<tt class="descclassname">pyanaconda.progress.</tt><tt class="descname">progress_message</tt><big>(</big><em>message</em><big>)</big><a class="headerlink" href="#pyanaconda.progress.progress_message" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.progress.progress_report">
|
|
<tt class="descclassname">pyanaconda.progress.</tt><tt class="descname">progress_report</tt><big>(</big><em>message</em><big>)</big><a class="headerlink" href="#pyanaconda.progress.progress_report" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.progress.progress_step">
|
|
<tt class="descclassname">pyanaconda.progress.</tt><tt class="descname">progress_step</tt><big>(</big><em>message</em><big>)</big><a class="headerlink" href="#pyanaconda.progress.progress_step" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.pwpolicy">
|
|
<span id="pyanaconda-pwpolicy-module"></span><h2>pyanaconda.pwpolicy module<a class="headerlink" href="#module-pyanaconda.pwpolicy" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="class">
|
|
<dt id="pyanaconda.pwpolicy.F22_PwPolicy">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.pwpolicy.</tt><tt class="descname">F22_PwPolicy</tt><big>(</big><em>writePriority=0</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.pwpolicy.F22_PwPolicy" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.base.KickstartCommand</span></tt></p>
|
|
<p>Kickstart command implementing password policy.</p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.pwpolicy.F22_PwPolicy.dataList">
|
|
<tt class="descname">dataList</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.pwpolicy.F22_PwPolicy.dataList" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.pwpolicy.F22_PwPolicy.get_policy">
|
|
<tt class="descname">get_policy</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#pyanaconda.pwpolicy.F22_PwPolicy.get_policy" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Get the policy by name</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – Name of the policy to return.</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.pwpolicy.F22_PwPolicy.parse">
|
|
<tt class="descname">parse</tt><big>(</big><em>args</em><big>)</big><a class="headerlink" href="#pyanaconda.pwpolicy.F22_PwPolicy.parse" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.pwpolicy.F22_PwPolicy.removedAttrs">
|
|
<tt class="descname">removedAttrs</tt><em class="property"> = []</em><a class="headerlink" href="#pyanaconda.pwpolicy.F22_PwPolicy.removedAttrs" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.pwpolicy.F22_PwPolicy.removedKeywords">
|
|
<tt class="descname">removedKeywords</tt><em class="property"> = []</em><a class="headerlink" href="#pyanaconda.pwpolicy.F22_PwPolicy.removedKeywords" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.pwpolicy.F22_PwPolicyData">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.pwpolicy.</tt><tt class="descname">F22_PwPolicyData</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.pwpolicy.F22_PwPolicyData" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">pykickstart.base.BaseData</span></tt></p>
|
|
<p>Kickstart Data object to hold information about pwpolicy.</p>
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.pwpolicy.F22_PwPolicyData.removedAttrs">
|
|
<tt class="descname">removedAttrs</tt><em class="property"> = []</em><a class="headerlink" href="#pyanaconda.pwpolicy.F22_PwPolicyData.removedAttrs" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.pwpolicy.F22_PwPolicyData.removedKeywords">
|
|
<tt class="descname">removedKeywords</tt><em class="property"> = []</em><a class="headerlink" href="#pyanaconda.pwpolicy.F22_PwPolicyData.removedKeywords" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.queuefactory">
|
|
<span id="pyanaconda-queuefactory-module"></span><h2>pyanaconda.queuefactory module<a class="headerlink" href="#module-pyanaconda.queuefactory" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="class">
|
|
<dt id="pyanaconda.queuefactory.QueueFactory">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.queuefactory.</tt><tt class="descname">QueueFactory</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#pyanaconda.queuefactory.QueueFactory" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
<p>Constructs a new object wrapping a Queue.Queue, complete with constants
|
|
and sending functions for each type of message that can be put into the
|
|
queue.</p>
|
|
<p>Creating a new object using this class is done like so:</p>
|
|
<blockquote>
|
|
<div>q = QueueFactory(“progress”)</div></blockquote>
|
|
<p>And then adding messages to it is done like so:</p>
|
|
<blockquote>
|
|
<div>q.addMessage(“init”, 0)
|
|
q.addMessage(“step”, 1)</div></blockquote>
|
|
<p>The first call will create a new constant named PROGRESS_CODE_INIT and a
|
|
method named send_init that takes zero arguments. The second call will
|
|
create a new constant named PROGRESS_CODE_STEP and a method named send_step
|
|
that takes one argument.</p>
|
|
<p>Reusing names within the same class is not allowed.</p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.queuefactory.QueueFactory.addMessage">
|
|
<tt class="descname">addMessage</tt><big>(</big><em>name</em>, <em>argc</em><big>)</big><a class="headerlink" href="#pyanaconda.queuefactory.QueueFactory.addMessage" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.regexes">
|
|
<span id="pyanaconda-regexes-module"></span><h2>pyanaconda.regexes module<a class="headerlink" href="#module-pyanaconda.regexes" title="Permalink to this headline">¶</a></h2>
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.rescue">
|
|
<span id="pyanaconda-rescue-module"></span><h2>pyanaconda.rescue module<a class="headerlink" href="#module-pyanaconda.rescue" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="class">
|
|
<dt id="pyanaconda.rescue.RescueInterface">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.rescue.</tt><tt class="descname">RescueInterface</tt><a class="headerlink" href="#pyanaconda.rescue.RescueInterface" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#pyanaconda.installinterfacebase.InstallInterfaceBase" title="pyanaconda.installinterfacebase.InstallInterfaceBase"><tt class="xref py py-class docutils literal"><span class="pre">pyanaconda.installinterfacebase.InstallInterfaceBase</span></tt></a></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.rescue.RescueInterface.detailedMessageWindow">
|
|
<tt class="descname">detailedMessageWindow</tt><big>(</big><em>title</em>, <em>text</em>, <em>longText=None</em>, <em>ty='ok'</em>, <em>default=None</em>, <em>custom_icon=None</em>, <em>custom_buttons=None</em>, <em>expanded=False</em><big>)</big><a class="headerlink" href="#pyanaconda.rescue.RescueInterface.detailedMessageWindow" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.rescue.RescueInterface.meh_interface">
|
|
<tt class="descname">meh_interface</tt><a class="headerlink" href="#pyanaconda.rescue.RescueInterface.meh_interface" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.rescue.RescueInterface.messageWindow">
|
|
<tt class="descname">messageWindow</tt><big>(</big><em>title</em>, <em>text</em>, <em>ty='ok'</em>, <em>default=None</em>, <em>custom_icon=None</em>, <em>custom_buttons=None</em><big>)</big><a class="headerlink" href="#pyanaconda.rescue.RescueInterface.messageWindow" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.rescue.RescueInterface.passphraseEntryWindow">
|
|
<tt class="descname">passphraseEntryWindow</tt><big>(</big><em>device</em><big>)</big><a class="headerlink" href="#pyanaconda.rescue.RescueInterface.passphraseEntryWindow" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.rescue.RescueInterface.progressWindow">
|
|
<tt class="descname">progressWindow</tt><big>(</big><em>title</em>, <em>text</em>, <em>total</em>, <em>updpct=0.05</em>, <em>pulse=False</em><big>)</big><a class="headerlink" href="#pyanaconda.rescue.RescueInterface.progressWindow" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.rescue.RescueInterface.resume">
|
|
<tt class="descname">resume</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.rescue.RescueInterface.resume" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.rescue.RescueInterface.shutdown">
|
|
<tt class="descname">shutdown</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.rescue.RescueInterface.shutdown" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.rescue.RescueInterface.suspend">
|
|
<tt class="descname">suspend</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.rescue.RescueInterface.suspend" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.rescue.RescueInterface.tty_num">
|
|
<tt class="descname">tty_num</tt><a class="headerlink" href="#pyanaconda.rescue.RescueInterface.tty_num" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.rescue.RescueInterface.waitWindow">
|
|
<tt class="descname">waitWindow</tt><big>(</big><em>title</em>, <em>text</em><big>)</big><a class="headerlink" href="#pyanaconda.rescue.RescueInterface.waitWindow" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.rescue.doRescue">
|
|
<tt class="descclassname">pyanaconda.rescue.</tt><tt class="descname">doRescue</tt><big>(</big><em>intf</em>, <em>rescue_mount</em>, <em>ksdata</em><big>)</big><a class="headerlink" href="#pyanaconda.rescue.doRescue" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.rescue.makeFStab">
|
|
<tt class="descclassname">pyanaconda.rescue.</tt><tt class="descname">makeFStab</tt><big>(</big><em>instPath=''</em><big>)</big><a class="headerlink" href="#pyanaconda.rescue.makeFStab" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.rescue.makeResolvConf">
|
|
<tt class="descclassname">pyanaconda.rescue.</tt><tt class="descname">makeResolvConf</tt><big>(</big><em>instPath</em><big>)</big><a class="headerlink" href="#pyanaconda.rescue.makeResolvConf" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.rescue.runShell">
|
|
<tt class="descclassname">pyanaconda.rescue.</tt><tt class="descname">runShell</tt><big>(</big><em>screen=None</em>, <em>msg=''</em><big>)</big><a class="headerlink" href="#pyanaconda.rescue.runShell" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.safe_dbus">
|
|
<span id="pyanaconda-safe-dbus-module"></span><h2>pyanaconda.safe_dbus module<a class="headerlink" href="#module-pyanaconda.safe_dbus" title="Permalink to this headline">¶</a></h2>
|
|
<p>Module providing thread-safe and mainloop-safe DBus operations.</p>
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.safe_dbus.DBusCallError">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.safe_dbus.</tt><tt class="descname">DBusCallError</tt><a class="headerlink" href="#pyanaconda.safe_dbus.DBusCallError" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#pyanaconda.safe_dbus.SafeDBusError" title="pyanaconda.safe_dbus.SafeDBusError"><tt class="xref py py-class docutils literal"><span class="pre">pyanaconda.safe_dbus.SafeDBusError</span></tt></a></p>
|
|
<p>Class for the errors related to calling methods over DBus.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.safe_dbus.DBusPropertyError">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.safe_dbus.</tt><tt class="descname">DBusPropertyError</tt><a class="headerlink" href="#pyanaconda.safe_dbus.DBusPropertyError" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#pyanaconda.safe_dbus.DBusCallError" title="pyanaconda.safe_dbus.DBusCallError"><tt class="xref py py-class docutils literal"><span class="pre">pyanaconda.safe_dbus.DBusCallError</span></tt></a></p>
|
|
<p>Class for the errors related to getting property values over DBus.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.safe_dbus.SafeDBusError">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.safe_dbus.</tt><tt class="descname">SafeDBusError</tt><a class="headerlink" href="#pyanaconda.safe_dbus.SafeDBusError" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.Exception</span></tt></p>
|
|
<p>Class for exceptions defined in this module.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.safe_dbus.call_sync">
|
|
<tt class="descclassname">pyanaconda.safe_dbus.</tt><tt class="descname">call_sync</tt><big>(</big><em>service</em>, <em>obj_path</em>, <em>iface</em>, <em>method</em>, <em>args</em>, <em>connection=None</em><big>)</big><a class="headerlink" href="#pyanaconda.safe_dbus.call_sync" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Safely call a given method on a given object of a given service over DBus
|
|
passing given arguments. If a connection is given, it is used, otherwise a
|
|
new connection is established. Safely means that it is a synchronous,
|
|
thread-safe call not using any main loop.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
|
|
<li><strong>service</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – DBus service to use</li>
|
|
<li><strong>obj_path</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – object path of the object to call method on</li>
|
|
<li><strong>iface</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – interface to use</li>
|
|
<li><strong>method</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – name of the method to call</li>
|
|
<li><strong>args</strong> (<em>GVariant</em>) – arguments to pass to the method</li>
|
|
<li><strong>connection</strong> (<em>Gio.DBusConnection</em>) – connection to use (if None, a new connection is
|
|
established)</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">unpacked value returned by the method</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first">tuple with elements that depend on the method</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name" colspan="2">Raises DBusCallError:</th></tr>
|
|
<tr class="field-even field"><td> </td><td class="field-body"><p class="first last">if some DBus related error appears</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.safe_dbus.get_new_session_connection">
|
|
<tt class="descclassname">pyanaconda.safe_dbus.</tt><tt class="descname">get_new_session_connection</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.safe_dbus.get_new_session_connection" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Get a connection handle for the per-user-login-session message bus.</p>
|
|
<p>!!! RUN THIS EARLY !!! like, before any other threads start. Connections to
|
|
the session bus must be made with the effective UID of the login user,
|
|
which in live installs is not the UID of anaconda. This means we need to
|
|
call seteuid in this method, and doing that after threads have started will
|
|
probably do something weird.</p>
|
|
<p>Live installs use consolehelper to run as root, which sets the original
|
|
UID in $USERHELPER_UID.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">the session connection handle</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first">Gio.DBusConnection</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Raises:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>DBusCallError</strong> – if some DBus related error appears</li>
|
|
<li><a class="reference external" href="https://docs.python.org/3/library/exceptions.html#OSError" title="(in Python v3.4)"><strong>OSError</strong></a> – if unable to set the effective UID</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.safe_dbus.get_new_system_connection">
|
|
<tt class="descclassname">pyanaconda.safe_dbus.</tt><tt class="descname">get_new_system_connection</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.safe_dbus.get_new_system_connection" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return a new connection to the system bus.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.safe_dbus.get_property_sync">
|
|
<tt class="descclassname">pyanaconda.safe_dbus.</tt><tt class="descname">get_property_sync</tt><big>(</big><em>service</em>, <em>obj_path</em>, <em>iface</em>, <em>prop_name</em>, <em>connection=None</em><big>)</big><a class="headerlink" href="#pyanaconda.safe_dbus.get_property_sync" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Get value of a given property of a given object provided by a given service.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
|
|
<li><strong>service</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – DBus service to use</li>
|
|
<li><strong>obj_path</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – object path</li>
|
|
<li><strong>iface</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – interface to use</li>
|
|
<li><strong>prop_name</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – name of the property</li>
|
|
<li><strong>connection</strong> (<em>Gio.DBusConnection</em>) – connection to use (if None, a new connection is
|
|
established)</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">unpacked value of the property</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first">tuple with elements that depend on the type of the property</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Raises:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>DBusCallError</strong> – when the internal dbus_call_safe_sync invocation
|
|
raises an exception</li>
|
|
<li><strong>DBusPropertyError</strong> – when the given object doesn’t have the given
|
|
property</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.screensaver">
|
|
<span id="pyanaconda-screensaver-module"></span><h2>pyanaconda.screensaver module<a class="headerlink" href="#module-pyanaconda.screensaver" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="function">
|
|
<dt id="pyanaconda.screensaver.inhibit_screensaver">
|
|
<tt class="descclassname">pyanaconda.screensaver.</tt><tt class="descname">inhibit_screensaver</tt><big>(</big><em>connection</em><big>)</big><a class="headerlink" href="#pyanaconda.screensaver.inhibit_screensaver" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Inhibit the screensaver idle timer.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>connection</strong> (<em>Gio.DBusConnection</em>) – A handle for the session message bus</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">The inhibit ID or None</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">int or None</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.screensaver.uninhibit_screensaver">
|
|
<tt class="descclassname">pyanaconda.screensaver.</tt><tt class="descname">uninhibit_screensaver</tt><big>(</big><em>connection</em>, <em>inhibit_id</em><big>)</big><a class="headerlink" href="#pyanaconda.screensaver.uninhibit_screensaver" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Re-enable the screensaver idle timer.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>connection</strong> (<em>Gio.DBusConnection</em>) – A handle for the session message bus</li>
|
|
<li><strong>inhibit_id</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.4)"><em>int</em></a>) – The ID returned by the inhibit method</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.simpleconfig">
|
|
<span id="pyanaconda-simpleconfig-module"></span><h2>pyanaconda.simpleconfig module<a class="headerlink" href="#module-pyanaconda.simpleconfig" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="class">
|
|
<dt id="pyanaconda.simpleconfig.SimpleConfigFile">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.simpleconfig.</tt><tt class="descname">SimpleConfigFile</tt><big>(</big><em>filename=None</em>, <em>read_unquote=True</em>, <em>write_quote=True</em>, <em>always_quote=False</em><big>)</big><a class="headerlink" href="#pyanaconda.simpleconfig.SimpleConfigFile" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
<p>Edit values in a configuration file without changing comments.
|
|
Supports KEY=VALUE lines and ignores everything else.
|
|
Supports adding new keys.
|
|
Supports deleting keys.
|
|
Preserves comment, blank lines and comments on KEY lines
|
|
Does not support duplicate key entries.</p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.simpleconfig.SimpleConfigFile.get">
|
|
<tt class="descname">get</tt><big>(</big><em>key</em><big>)</big><a class="headerlink" href="#pyanaconda.simpleconfig.SimpleConfigFile.get" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.simpleconfig.SimpleConfigFile.read">
|
|
<tt class="descname">read</tt><big>(</big><em>filename=None</em><big>)</big><a class="headerlink" href="#pyanaconda.simpleconfig.SimpleConfigFile.read" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>passing filename will override the filename passed to init.</p>
|
|
<p>save the lines into self._lines and the key/value pairs into
|
|
self.info</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.simpleconfig.SimpleConfigFile.reset">
|
|
<tt class="descname">reset</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.simpleconfig.SimpleConfigFile.reset" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.simpleconfig.SimpleConfigFile.set">
|
|
<tt class="descname">set</tt><big>(</big><em>*args</em><big>)</big><a class="headerlink" href="#pyanaconda.simpleconfig.SimpleConfigFile.set" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.simpleconfig.SimpleConfigFile.unset">
|
|
<tt class="descname">unset</tt><big>(</big><em>*keys</em><big>)</big><a class="headerlink" href="#pyanaconda.simpleconfig.SimpleConfigFile.unset" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.simpleconfig.SimpleConfigFile.write">
|
|
<tt class="descname">write</tt><big>(</big><em>filename=None</em>, <em>use_tmp=True</em><big>)</big><a class="headerlink" href="#pyanaconda.simpleconfig.SimpleConfigFile.write" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>passing filename will override the filename passed to init.</p>
|
|
</dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.simpleconfig.find_comment">
|
|
<tt class="descclassname">pyanaconda.simpleconfig.</tt><tt class="descname">find_comment</tt><big>(</big><em>s</em><big>)</big><a class="headerlink" href="#pyanaconda.simpleconfig.find_comment" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Look for a # comment outside of a quoted string.
|
|
If there are no quotes, find the last # in the string.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>s</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – string to check for comment and quotes</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">index of comment or None</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">int or None</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p>Handles comments inside quotes and quotes inside quotes.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.simpleconfig.quote">
|
|
<tt class="descclassname">pyanaconda.simpleconfig.</tt><tt class="descname">quote</tt><big>(</big><em>s</em>, <em>always=False</em><big>)</big><a class="headerlink" href="#pyanaconda.simpleconfig.quote" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>If always is set it returns a quoted value</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.simpleconfig.unquote">
|
|
<tt class="descclassname">pyanaconda.simpleconfig.</tt><tt class="descname">unquote</tt><big>(</big><em>s</em><big>)</big><a class="headerlink" href="#pyanaconda.simpleconfig.unquote" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.startup_utils">
|
|
<span id="pyanaconda-startup-utils-module"></span><h2>pyanaconda.startup_utils module<a class="headerlink" href="#module-pyanaconda.startup_utils" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="function">
|
|
<dt id="pyanaconda.startup_utils.get_anaconda_version_string">
|
|
<tt class="descclassname">pyanaconda.startup_utils.</tt><tt class="descname">get_anaconda_version_string</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.startup_utils.get_anaconda_version_string" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return a string describing current Anaconda version.
|
|
If the current version can’t be determined the string
|
|
“unknown” will be returned.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">string describing Anaconda version</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">str</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.startup_utils.module_exists">
|
|
<tt class="descclassname">pyanaconda.startup_utils.</tt><tt class="descname">module_exists</tt><big>(</big><em>module_path</em><big>)</big><a class="headerlink" href="#pyanaconda.startup_utils.module_exists" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Report is a given module exists in the current module import pth or not.
|
|
Supports checking bot modules (“foo”) os submodules (“foo.bar.baz”)</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>module_path</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – (sub)module identifier</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">True if (sub)module exists in path, False if not</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">bool</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.storage_utils">
|
|
<span id="pyanaconda-storage-utils-module"></span><h2>pyanaconda.storage_utils module<a class="headerlink" href="#module-pyanaconda.storage_utils" title="Permalink to this headline">¶</a></h2>
|
|
<p>UI-independent storage utility functions</p>
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.storage_utils.LUKSDeviceWithoutKeyError">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.storage_utils.</tt><tt class="descname">LUKSDeviceWithoutKeyError</tt><a class="headerlink" href="#pyanaconda.storage_utils.LUKSDeviceWithoutKeyError" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#pyanaconda.storage_utils.SanityError" title="pyanaconda.storage_utils.SanityError"><tt class="xref py py-class docutils literal"><span class="pre">pyanaconda.storage_utils.SanityError</span></tt></a></p>
|
|
</dd></dl>
|
|
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.storage_utils.SanityError">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.storage_utils.</tt><tt class="descname">SanityError</tt><a class="headerlink" href="#pyanaconda.storage_utils.SanityError" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#pyanaconda.storage_utils.SanityException" title="pyanaconda.storage_utils.SanityException"><tt class="xref py py-class docutils literal"><span class="pre">pyanaconda.storage_utils.SanityException</span></tt></a></p>
|
|
</dd></dl>
|
|
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.storage_utils.SanityException">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.storage_utils.</tt><tt class="descname">SanityException</tt><a class="headerlink" href="#pyanaconda.storage_utils.SanityException" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.Exception</span></tt></p>
|
|
</dd></dl>
|
|
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.storage_utils.SanityWarning">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.storage_utils.</tt><tt class="descname">SanityWarning</tt><a class="headerlink" href="#pyanaconda.storage_utils.SanityWarning" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference internal" href="#pyanaconda.storage_utils.SanityException" title="pyanaconda.storage_utils.SanityException"><tt class="xref py py-class docutils literal"><span class="pre">pyanaconda.storage_utils.SanityException</span></tt></a></p>
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.storage_utils.UIStorageFilter">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.storage_utils.</tt><tt class="descname">UIStorageFilter</tt><big>(</big><em>name=''</em><big>)</big><a class="headerlink" href="#pyanaconda.storage_utils.UIStorageFilter" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/logging.html#logging.Filter" title="(in Python v3.4)"><tt class="xref py py-class docutils literal"><span class="pre">logging.Filter</span></tt></a></p>
|
|
<p>Logging filter for UI storage events</p>
|
|
<p>Initialize a filter.</p>
|
|
<p>Initialize with the name of the logger which, together with its
|
|
children, will have its events allowed through the filter. If no
|
|
name is specified, allow every event.</p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.storage_utils.UIStorageFilter.filter">
|
|
<tt class="descname">filter</tt><big>(</big><em>record</em><big>)</big><a class="headerlink" href="#pyanaconda.storage_utils.UIStorageFilter.filter" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.storage_utils.bound_size">
|
|
<tt class="descclassname">pyanaconda.storage_utils.</tt><tt class="descname">bound_size</tt><big>(</big><em>size</em>, <em>device</em>, <em>old_size</em><big>)</big><a class="headerlink" href="#pyanaconda.storage_utils.bound_size" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Returns a size bounded by the maximum and minimum size for
|
|
the device.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
|
|
<li><strong>size</strong> (<tt class="xref py py-class docutils literal"><span class="pre">blivet.size.Size</span></tt>) – the candidate size</li>
|
|
<li><strong>device</strong> (<tt class="xref py py-class docutils literal"><span class="pre">blivet.devices.StorageDevice</span></tt>) – the device being displayed</li>
|
|
<li><strong>old_size</strong> (<tt class="xref py py-class docutils literal"><span class="pre">blivet.size.Size</span></tt>) – the fallback size</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">a size to which to set the device</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><tt class="xref py py-class docutils literal"><span class="pre">blivet.size.Size</span></tt></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p>If size is 0, interpreted as set size to maximum possible.
|
|
If no maximum size is available, reset size to old_size, but
|
|
log a warning.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.storage_utils.device_type_from_autopart">
|
|
<tt class="descclassname">pyanaconda.storage_utils.</tt><tt class="descname">device_type_from_autopart</tt><big>(</big><em>autopart_type</em><big>)</big><a class="headerlink" href="#pyanaconda.storage_utils.device_type_from_autopart" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Get device type matching the given autopart type.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.storage_utils.sanity_check">
|
|
<tt class="descclassname">pyanaconda.storage_utils.</tt><tt class="descname">sanity_check</tt><big>(</big><em>storage</em>, <em>min_ram=320</em><big>)</big><a class="headerlink" href="#pyanaconda.storage_utils.sanity_check" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Run a series of tests to verify the storage configuration.</p>
|
|
<p>This function is called at the end of partitioning so that
|
|
we can make sure you don’t have anything silly (like no /,
|
|
a really small /, etc).</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
|
|
<li><strong>storage</strong> – an instance of the <tt class="xref py py-class docutils literal"><span class="pre">blivet.Blivet</span></tt> class to check</li>
|
|
<li><strong>min_ram</strong> – minimum RAM (in MiB) needed for the installation with swap
|
|
space available</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first">a list of SanityExceptions</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">a list of accumulated errors and warnings</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.storage_utils.size_from_input">
|
|
<tt class="descclassname">pyanaconda.storage_utils.</tt><tt class="descname">size_from_input</tt><big>(</big><em>input_str</em>, <em>units=None</em><big>)</big><a class="headerlink" href="#pyanaconda.storage_utils.size_from_input" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Get a Size object from an input string.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
|
|
<li><strong>input_str</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – a string forming some representation of a size</li>
|
|
<li><strong>units</strong> (<em>str or NoneType</em>) – use these units if none specified in input_str</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">a Size object corresponding to input_str</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last"><tt class="xref py py-class docutils literal"><span class="pre">blivet.size.Size</span></tt> or NoneType</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p>Units default to bytes if no units in input_str or units.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.storage_utils.ui_storage_logger">
|
|
<tt class="descclassname">pyanaconda.storage_utils.</tt><tt class="descname">ui_storage_logger</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.storage_utils.ui_storage_logger" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Context manager that applies the UIStorageFilter for its block</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.storage_utils.verify_LUKS_devices_have_key">
|
|
<tt class="descclassname">pyanaconda.storage_utils.</tt><tt class="descname">verify_LUKS_devices_have_key</tt><big>(</big><em>storage</em><big>)</big><a class="headerlink" href="#pyanaconda.storage_utils.verify_LUKS_devices_have_key" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Verify that all non-existant LUKS devices have some way of obtaining
|
|
a key.</p>
|
|
<p>Note: LUKS device creation will fail without a key.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">generator of str</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">a generator of error messages, may yield no error messages</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.text">
|
|
<span id="pyanaconda-text-module"></span><h2>pyanaconda.text module<a class="headerlink" href="#module-pyanaconda.text" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="class">
|
|
<dt id="pyanaconda.text.OkCancelWindow">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.text.</tt><tt class="descname">OkCancelWindow</tt><big>(</big><em>screen</em>, <em>title</em>, <em>text</em><big>)</big><a class="headerlink" href="#pyanaconda.text.OkCancelWindow" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.text.OkCancelWindow.getrc">
|
|
<tt class="descname">getrc</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.text.OkCancelWindow.getrc" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.text.PassphraseEntryWindow">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.text.</tt><tt class="descname">PassphraseEntryWindow</tt><big>(</big><em>screen</em>, <em>device</em><big>)</big><a class="headerlink" href="#pyanaconda.text.PassphraseEntryWindow" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.text.PassphraseEntryWindow.pop">
|
|
<tt class="descname">pop</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.text.PassphraseEntryWindow.pop" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.text.PassphraseEntryWindow.run">
|
|
<tt class="descname">run</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.text.PassphraseEntryWindow.run" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.text.ProgressWindow">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.text.</tt><tt class="descname">ProgressWindow</tt><big>(</big><em>screen</em>, <em>title</em>, <em>text</em>, <em>total</em>, <em>updpct=0.05</em>, <em>pulse=False</em><big>)</big><a class="headerlink" href="#pyanaconda.text.ProgressWindow" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.text.ProgressWindow.pop">
|
|
<tt class="descname">pop</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.text.ProgressWindow.pop" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.text.ProgressWindow.pulse">
|
|
<tt class="descname">pulse</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.text.ProgressWindow.pulse" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.text.ProgressWindow.refresh">
|
|
<tt class="descname">refresh</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.text.ProgressWindow.refresh" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.text.ProgressWindow.set">
|
|
<tt class="descname">set</tt><big>(</big><em>amount</em><big>)</big><a class="headerlink" href="#pyanaconda.text.ProgressWindow.set" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.text.WaitWindow">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.text.</tt><tt class="descname">WaitWindow</tt><big>(</big><em>screen</em>, <em>title</em>, <em>text</em><big>)</big><a class="headerlink" href="#pyanaconda.text.WaitWindow" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.text.WaitWindow.pop">
|
|
<tt class="descname">pop</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.text.WaitWindow.pop" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.text.WaitWindow.refresh">
|
|
<tt class="descname">refresh</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.text.WaitWindow.refresh" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.threads">
|
|
<span id="pyanaconda-threads-module"></span><h2>pyanaconda.threads module<a class="headerlink" href="#module-pyanaconda.threads" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="class">
|
|
<dt id="pyanaconda.threads.AnacondaThread">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.threads.</tt><tt class="descname">AnacondaThread</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.threads.AnacondaThread" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/threading.html#threading.Thread" title="(in Python v3.4)"><tt class="xref py py-class docutils literal"><span class="pre">threading.Thread</span></tt></a></p>
|
|
<p>A threading.Thread subclass that exists only for a couple purposes:</p>
|
|
<ol class="arabic simple">
|
|
<li>Make exceptions that happen in a thread invoke our exception handling
|
|
code as well. Otherwise, threads will silently die and we are doing
|
|
a lot of complicated code in them now.</li>
|
|
<li>Remove themselves from the thread manager when completed.</li>
|
|
<li>All created threads are made daemonic, which means anaconda will quit
|
|
when the main process is killed.</li>
|
|
</ol>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.threads.AnacondaThread.run">
|
|
<tt class="descname">run</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.threads.AnacondaThread.run" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="class">
|
|
<dt id="pyanaconda.threads.ThreadManager">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.threads.</tt><tt class="descname">ThreadManager</tt><a class="headerlink" href="#pyanaconda.threads.ThreadManager" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
<p>A singleton class for managing threads and processes.</p>
|
|
<p>Notes:
|
|
THE INSTANCE HAS TO BE CREATED IN THE MAIN THREAD!</p>
|
|
<p>This manager makes one assumption that contradicts python’s
|
|
threading module documentation. In this class, we assume that thread
|
|
names are unique and meaningful. This is an okay assumption for us
|
|
to make given that anaconda is only ever going to have a handful of
|
|
special purpose threads.</p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.threads.ThreadManager.add">
|
|
<tt class="descname">add</tt><big>(</big><em>obj</em><big>)</big><a class="headerlink" href="#pyanaconda.threads.ThreadManager.add" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Given a Thread or Process object, add it to the list of known objects
|
|
and start it. It is assumed that obj.name is unique and descriptive.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.threads.ThreadManager.any_errors">
|
|
<tt class="descname">any_errors</tt><a class="headerlink" href="#pyanaconda.threads.ThreadManager.any_errors" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return True of there have been any errors in any threads</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.threads.ThreadManager.exists">
|
|
<tt class="descname">exists</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#pyanaconda.threads.ThreadManager.exists" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Determine if a thread or process exists with the given name.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.threads.ThreadManager.get">
|
|
<tt class="descname">get</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#pyanaconda.threads.ThreadManager.get" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Given an object name, see if it exists and return the object.
|
|
Return None if no such object exists. Additionally, this method
|
|
will re-raise any uncaught exception in the thread.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.threads.ThreadManager.get_error">
|
|
<tt class="descname">get_error</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#pyanaconda.threads.ThreadManager.get_error" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Get the error data for a thread using its name</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.threads.ThreadManager.in_main_thread">
|
|
<tt class="descname">in_main_thread</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.threads.ThreadManager.in_main_thread" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return True if it is run in the main thread.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.threads.ThreadManager.names">
|
|
<tt class="descname">names</tt><a class="headerlink" href="#pyanaconda.threads.ThreadManager.names" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return the names of the running threads.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">list of thread names</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">list of strings</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.threads.ThreadManager.raise_if_error">
|
|
<tt class="descname">raise_if_error</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#pyanaconda.threads.ThreadManager.raise_if_error" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>If a thread has failed due to an exception, raise it into the main
|
|
thread and remove it from errors.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.threads.ThreadManager.remove">
|
|
<tt class="descname">remove</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#pyanaconda.threads.ThreadManager.remove" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Removes a thread from the list of known objects. This should only
|
|
be called when a thread exits, or there will be no way to get a
|
|
handle on it.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="attribute">
|
|
<dt id="pyanaconda.threads.ThreadManager.running">
|
|
<tt class="descname">running</tt><a class="headerlink" href="#pyanaconda.threads.ThreadManager.running" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return the number of running threads.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">number of running threads</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">int</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.threads.ThreadManager.set_error">
|
|
<tt class="descname">set_error</tt><big>(</big><em>name</em>, <em>*exc_info</em><big>)</big><a class="headerlink" href="#pyanaconda.threads.ThreadManager.set_error" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Set the error data for a thread</p>
|
|
<p>The exception data is expected to be the tuple from sys.exc_info()</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.threads.ThreadManager.wait">
|
|
<tt class="descname">wait</tt><big>(</big><em>name</em><big>)</big><a class="headerlink" href="#pyanaconda.threads.ThreadManager.wait" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Wait for the thread to exit and if the thread exited with an error
|
|
re-raise it here.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.threads.ThreadManager.wait_all">
|
|
<tt class="descname">wait_all</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.threads.ThreadManager.wait_all" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Wait for all threads to exit and if there was an error re-raise it.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.threads.ThreadManager.wait_for_error_threads">
|
|
<tt class="descname">wait_for_error_threads</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.threads.ThreadManager.wait_for_error_threads" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Waits for all threads that caused exceptions. In other words, waits for
|
|
exception handling (possibly interactive) to be finished.</p>
|
|
</dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.threads.initThreading">
|
|
<tt class="descclassname">pyanaconda.threads.</tt><tt class="descname">initThreading</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.threads.initThreading" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Set up threading for anaconda’s use. This method must be called before
|
|
any GTK or threading code is called, or else threads will only run when
|
|
an event is triggered in the GTK main loop. And IT HAS TO BE CALLED IN
|
|
THE MAIN THREAD.</p>
|
|
</dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.timezone">
|
|
<span id="pyanaconda-timezone-module"></span><h2>pyanaconda.timezone module<a class="headerlink" href="#module-pyanaconda.timezone" title="Permalink to this headline">¶</a></h2>
|
|
<p>Module providing functions for getting the list of timezones, writing timezone
|
|
configuration, valid timezones recognition etc.</p>
|
|
<dl class="exception">
|
|
<dt id="pyanaconda.timezone.TimezoneConfigError">
|
|
<em class="property">exception </em><tt class="descclassname">pyanaconda.timezone.</tt><tt class="descname">TimezoneConfigError</tt><a class="headerlink" href="#pyanaconda.timezone.TimezoneConfigError" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.Exception</span></tt></p>
|
|
<p>Exception class for timezone configuration related problems</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.timezone.get_all_regions_and_timezones">
|
|
<tt class="descclassname">pyanaconda.timezone.</tt><tt class="descname">get_all_regions_and_timezones</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.timezone.get_all_regions_and_timezones" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Get a dictionary mapping the regions to the list of their timezones.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">dict</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.timezone.get_preferred_timezone">
|
|
<tt class="descclassname">pyanaconda.timezone.</tt><tt class="descname">get_preferred_timezone</tt><big>(</big><em>territory</em><big>)</big><a class="headerlink" href="#pyanaconda.timezone.get_preferred_timezone" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Get the preferred timezone for a given territory. Note that this function
|
|
simply returns the first timezone in the list of timezones for a given
|
|
territory.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>territory</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – territory to get preferred timezone for</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">preferred timezone for the given territory or None if no found</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">str or None</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.timezone.get_timezone">
|
|
<tt class="descclassname">pyanaconda.timezone.</tt><tt class="descname">get_timezone</tt><big>(</big><em>timezone</em><big>)</big><a class="headerlink" href="#pyanaconda.timezone.get_timezone" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Return a tzinfo object for a given timezone name.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>timezone</strong> (<a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.4)"><em>str</em></a>) – the timezone name</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body">datetime.tzinfo</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.timezone.is_valid_timezone">
|
|
<tt class="descclassname">pyanaconda.timezone.</tt><tt class="descname">is_valid_timezone</tt><big>(</big><em>timezone</em><big>)</big><a class="headerlink" href="#pyanaconda.timezone.is_valid_timezone" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Check if a given string is an existing timezone.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body">bool</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.timezone.save_hw_clock">
|
|
<tt class="descclassname">pyanaconda.timezone.</tt><tt class="descname">save_hw_clock</tt><big>(</big><em>timezone</em><big>)</big><a class="headerlink" href="#pyanaconda.timezone.save_hw_clock" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Save system time to HW clock.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>timezone</strong> – ksdata.timezone object</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.timezone.time_initialize">
|
|
<tt class="descclassname">pyanaconda.timezone.</tt><tt class="descname">time_initialize</tt><big>(</big><em>timezone</em>, <em>storage</em>, <em>bootloader</em><big>)</big><a class="headerlink" href="#pyanaconda.timezone.time_initialize" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Try to guess if RTC uses UTC time or not, set timezone.isUtc properly and
|
|
set system time from RTC using the UTC guess.
|
|
Guess is done by searching for bootable ntfs devices.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
|
|
<li><strong>timezone</strong> – ksdata.timezone object</li>
|
|
<li><strong>storage</strong> – blivet.Blivet instance</li>
|
|
<li><strong>bootloader</strong> – bootloader.Bootloader instance</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.timezone.write_timezone_config">
|
|
<tt class="descclassname">pyanaconda.timezone.</tt><tt class="descname">write_timezone_config</tt><big>(</big><em>timezone</em>, <em>root</em><big>)</big><a class="headerlink" href="#pyanaconda.timezone.write_timezone_config" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Write timezone configuration for the system specified by root.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
|
|
<li><strong>timezone</strong> – ksdata.timezone object</li>
|
|
<li><strong>root</strong> – path to the root</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Raise:</th><td class="field-body"><p class="first last">TimezoneConfigError</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.users">
|
|
<span id="pyanaconda-users-module"></span><h2>pyanaconda.users module<a class="headerlink" href="#module-pyanaconda.users" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="class">
|
|
<dt id="pyanaconda.users.Users">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.users.</tt><tt class="descname">Users</tt><a class="headerlink" href="#pyanaconda.users.Users" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.users.Users.checkUserExists">
|
|
<tt class="descname">checkUserExists</tt><big>(</big><em>username</em>, <em>root=None</em><big>)</big><a class="headerlink" href="#pyanaconda.users.Users.checkUserExists" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.users.Users.createGroup">
|
|
<tt class="descname">createGroup</tt><big>(</big><em>group_name</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.users.Users.createGroup" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Create a new user on the system with the given name. Optional kwargs:</p>
|
|
<dl class="docutils">
|
|
<dt>gid – The GID for the new user. If none is given, the next</dt>
|
|
<dd>available one is used.</dd>
|
|
<dt>root – The directory of the system to create the new user</dt>
|
|
<dd>in. homedir will be interpreted relative to this.
|
|
Defaults to /mnt/sysimage.</dd>
|
|
</dl>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.users.Users.createUser">
|
|
<tt class="descname">createUser</tt><big>(</big><em>user_name</em>, <em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.users.Users.createUser" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Create a new user on the system with the given name. Optional kwargs:</p>
|
|
<dl class="docutils">
|
|
<dt>algo – The password algorithm to use in case isCrypted=True.</dt>
|
|
<dd>If none is given, the cryptPassword default is used.</dd>
|
|
<dt>gecos – The GECOS information (full name, office, phone, etc.).</dt>
|
|
<dd>Defaults to “”.</dd>
|
|
<dt>groups – A list of existing group names the user should be</dt>
|
|
<dd>added to. Defaults to [].</dd>
|
|
<dt>homedir – The home directory for the new user. Defaults to</dt>
|
|
<dd>/home/<name>.</dd>
|
|
<dt>isCrypted – Is the password kwargs already encrypted? Defaults</dt>
|
|
<dd>to False.</dd>
|
|
<dt>lock – Is the new account locked by default? Defaults to</dt>
|
|
<dd>False.</dd>
|
|
<dt>password – The password. See isCrypted for how this is interpreted.</dt>
|
|
<dd>If the password is “” then the account is created
|
|
with a blank password. If None or False the account will
|
|
be left in its initial state (locked)</dd>
|
|
<dt>root – The directory of the system to create the new user</dt>
|
|
<dd>in. homedir will be interpreted relative to this.
|
|
Defaults to /mnt/sysimage.</dd>
|
|
<dt>shell – The shell for the new user. If none is given, the</dt>
|
|
<dd>libuser default is used.</dd>
|
|
<dt>uid – The UID for the new user. If none is given, the next</dt>
|
|
<dd>available one is used.</dd>
|
|
<dt>gid – The GID for the new user. If none is given, the next</dt>
|
|
<dd>available one is used.</dd>
|
|
</dl>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.users.Users.setRootPassword">
|
|
<tt class="descname">setRootPassword</tt><big>(</big><em>password</em>, <em>isCrypted=False</em>, <em>isLocked=False</em>, <em>algo=None</em><big>)</big><a class="headerlink" href="#pyanaconda.users.Users.setRootPassword" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.users.Users.setUserPassword">
|
|
<tt class="descname">setUserPassword</tt><big>(</big><em>username</em>, <em>password</em>, <em>isCrypted</em>, <em>lock</em>, <em>algo=None</em><big>)</big><a class="headerlink" href="#pyanaconda.users.Users.setUserPassword" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.users.Users.setUserSshKey">
|
|
<tt class="descname">setUserSshKey</tt><big>(</big><em>username</em>, <em>key</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#pyanaconda.users.Users.setUserSshKey" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.users.createLuserConf">
|
|
<tt class="descclassname">pyanaconda.users.</tt><tt class="descname">createLuserConf</tt><big>(</big><em>instPath</em>, <em>algoname='sha512'</em><big>)</big><a class="headerlink" href="#pyanaconda.users.createLuserConf" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Writes a libuser.conf for instPath.</p>
|
|
<p>This must be called before User() is instantiated the first time
|
|
so that libuser.admin will use the temporary config file.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.users.cryptPassword">
|
|
<tt class="descclassname">pyanaconda.users.</tt><tt class="descname">cryptPassword</tt><big>(</big><em>password</em>, <em>algo=None</em><big>)</big><a class="headerlink" href="#pyanaconda.users.cryptPassword" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.users.getPassAlgo">
|
|
<tt class="descclassname">pyanaconda.users.</tt><tt class="descname">getPassAlgo</tt><big>(</big><em>authconfigStr</em><big>)</big><a class="headerlink" href="#pyanaconda.users.getPassAlgo" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Reads the auth string and returns a string indicating our desired
|
|
password encoding algorithm.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.users.guess_username">
|
|
<tt class="descclassname">pyanaconda.users.</tt><tt class="descname">guess_username</tt><big>(</big><em>fullname</em><big>)</big><a class="headerlink" href="#pyanaconda.users.guess_username" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.users.validatePassword">
|
|
<tt class="descclassname">pyanaconda.users.</tt><tt class="descname">validatePassword</tt><big>(</big><em>pw</em>, <em>user='root'</em>, <em>settings=None</em>, <em>minlen=None</em><big>)</big><a class="headerlink" href="#pyanaconda.users.validatePassword" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Check the quality of a password.</p>
|
|
<p>This function does three things: given a password and an optional
|
|
username, it will tell if this password can be used at all, how
|
|
strong the password is on a scale of 1-100, and, if the password is
|
|
unusable, why it is unusuable.</p>
|
|
<p>This function uses libpwquality to check the password strength.
|
|
pwquality will raise a PWQError on a weak password, which, honestly,
|
|
is kind of dumb behavior. A weak password isn’t exceptional, it’s what
|
|
we’re asking about! Anyway, this function does not raise PWQError. If
|
|
the password fails the PWQSettings conditions, the first member of the
|
|
return tuple will be False and the second member of the tuple will be 0.</p>
|
|
<table class="docutils field-list" frame="void" rules="none">
|
|
<col class="field-name" />
|
|
<col class="field-body" />
|
|
<tbody valign="top">
|
|
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
|
|
<li><strong>pw</strong> (<a class="reference external" href="https://docs.python.org/3/library/string.html#module-string" title="(in Python v3.4)"><em>string</em></a>) – the password to check</li>
|
|
<li><strong>user</strong> (<a class="reference external" href="https://docs.python.org/3/library/string.html#module-string" title="(in Python v3.4)"><em>string</em></a>) – the username for which the password is being set. If no
|
|
username is provided, “root” will be used. Use user=None
|
|
to disable the username check.</li>
|
|
<li><strong>settings</strong> (<em>pwquality.PWQSettings</em>) – an optional PWQSettings object</li>
|
|
<li><strong>minlen</strong> (<a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.4)"><em>int</em></a>) – Minimum acceptable password length. If not passed,
|
|
use the default length from PASSWORD_MIN_LEN</li>
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">A tuple containing (bool(valid), int(score), str(message))</p>
|
|
</td>
|
|
</tr>
|
|
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><p class="first last">tuple</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.version">
|
|
<span id="pyanaconda-version-module"></span><h2>pyanaconda.version module<a class="headerlink" href="#module-pyanaconda.version" title="Permalink to this headline">¶</a></h2>
|
|
</div>
|
|
<div class="section" id="module-pyanaconda.vnc">
|
|
<span id="pyanaconda-vnc-module"></span><h2>pyanaconda.vnc module<a class="headerlink" href="#module-pyanaconda.vnc" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="class">
|
|
<dt id="pyanaconda.vnc.VncServer">
|
|
<em class="property">class </em><tt class="descclassname">pyanaconda.vnc.</tt><tt class="descname">VncServer</tt><big>(</big><em>root='/'</em>, <em>ip=None</em>, <em>name=None</em>, <em>password=''</em>, <em>vncconnecthost=''</em>, <em>vncconnectport=''</em>, <em>log_file='/tmp/vncserver.log'</em>, <em>pw_file='/tmp/vncpassword'</em><big>)</big><a class="headerlink" href="#pyanaconda.vnc.VncServer" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">builtins.object</span></tt></p>
|
|
<dl class="method">
|
|
<dt id="pyanaconda.vnc.VncServer.VNCListen">
|
|
<tt class="descname">VNCListen</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.vnc.VncServer.VNCListen" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Put the server in listening mode.</p>
|
|
<p>We dont really have to do anything for the server to listen :)</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.vnc.VncServer.changeVNCPasswdWindow">
|
|
<tt class="descname">changeVNCPasswdWindow</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.vnc.VncServer.changeVNCPasswdWindow" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Change the password to a sane parameter.</p>
|
|
<p>We ask user to input a password that (len(password) > 6
|
|
and len(password) <= 8) or password == ‘’.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.vnc.VncServer.connectToView">
|
|
<tt class="descname">connectToView</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.vnc.VncServer.connectToView" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Attempt to connect to self.vncconnecthost</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.vnc.VncServer.initialize">
|
|
<tt class="descname">initialize</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.vnc.VncServer.initialize" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Here is were all the relative vars get initialized.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.vnc.VncServer.openlogfile">
|
|
<tt class="descname">openlogfile</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.vnc.VncServer.openlogfile" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.vnc.VncServer.setVNCPassword">
|
|
<tt class="descname">setVNCPassword</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.vnc.VncServer.setVNCPassword" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Set the vnc server password. Output to file.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.vnc.VncServer.startServer">
|
|
<tt class="descname">startServer</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.vnc.VncServer.startServer" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="method">
|
|
<dt id="pyanaconda.vnc.VncServer.startVncConfig">
|
|
<tt class="descname">startVncConfig</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.vnc.VncServer.startVncConfig" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Attempt to start vncconfig</p>
|
|
</dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
<dl class="function">
|
|
<dt id="pyanaconda.vnc.shutdownServer">
|
|
<tt class="descclassname">pyanaconda.vnc.</tt><tt class="descname">shutdownServer</tt><big>(</big><big>)</big><a class="headerlink" href="#pyanaconda.vnc.shutdownServer" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Try to shutdown any running XVNC server</p>
|
|
<p>Why is this function on the module level and not in the VncServer class ?</p>
|
|
<p>As the server needs to be killed from the exit handler, it would have
|
|
to somehow get to the VncServer instance. Like this, it can just kill
|
|
it by calling a function of the vnc module.</p>
|
|
</dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="module-pyanaconda">
|
|
<span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-pyanaconda" title="Permalink to this headline">¶</a></h2>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<footer>
|
|
|
|
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
|
|
|
|
<a href="pyanaconda.installclasses.html" class="btn btn-neutral float-right" title="pyanaconda.installclasses package" accesskey="n">Next <span class="fa fa-arrow-circle-right"></span></a>
|
|
|
|
|
|
<a href="modules.html" class="btn btn-neutral" title="pyanaconda" accesskey="p"><span class="fa fa-arrow-circle-left"></span> Previous</a>
|
|
|
|
</div>
|
|
|
|
|
|
<hr/>
|
|
|
|
<div role="contentinfo">
|
|
<p>
|
|
© Copyright 2015, Red Hat, Inc..
|
|
</p>
|
|
</div>
|
|
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
|
|
|
|
</footer>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
var DOCUMENTATION_OPTIONS = {
|
|
URL_ROOT:'./',
|
|
VERSION:'23.15',
|
|
COLLAPSE_INDEX:false,
|
|
FILE_SUFFIX:'.html',
|
|
HAS_SOURCE: true
|
|
};
|
|
</script>
|
|
<script type="text/javascript" src="_static/jquery.js"></script>
|
|
<script type="text/javascript" src="_static/underscore.js"></script>
|
|
<script type="text/javascript" src="_static/doctools.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" src="_static/js/theme.js"></script>
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
jQuery(function () {
|
|
SphinxRtdTheme.StickyNav.enable();
|
|
});
|
|
</script>
|
|
|
|
|
|
</body>
|
|
</html> |