systemd/man/systemd-fstab-generator.html
2015-02-17 11:22:16 +01:00

80 lines
7.8 KiB
HTML

<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>systemd-fstab-generator</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><style>
a.headerlink {
color: #c60f0f;
font-size: 0.8em;
padding: 0 4px 0 4px;
text-decoration: none;
visibility: hidden;
}
a.headerlink:hover {
background-color: #c60f0f;
color: white;
}
h1:hover > a.headerlink, h2:hover > a.headerlink, h3:hover > a.headerlink, dt:hover > a.headerlink {
visibility: visible;
}
</style><a href="index.html">Index </a>·
<a href="systemd.directives.html">Directives </a>·
<a href="../python-systemd/index.html">Python </a>·
<a href="../libudev/index.html">libudev </a>·
<a href="../libudev/index.html">gudev </a><span style="float:right">systemd 219</span><hr><div class="refentry"><a name="systemd-fstab-generator"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>systemd-fstab-generator — Unit generator for /etc/fstab</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><p><code class="filename">/usr/lib/systemd/system-generators/systemd-fstab-generator</code></p></div><div class="refsect1"><a name="idm140677893584544"></a><h2 id="Description">Description<a class="headerlink" title="Permalink to this headline" href="#Description"></a></h2><p><code class="filename">systemd-fstab-generator</code> is a generator
that translates <code class="filename">/etc/fstab</code> (see
<a href="fstab.html"><span class="citerefentry"><span class="refentrytitle">fstab</span>(5)</span></a>
for details) into native systemd units early at boot and when
configuration of the system manager is reloaded. This will
instantiate mount and swap units as necessary.</p><p>The <code class="varname">passno</code> field is treated like a simple
boolean, and the ordering information is discarded. However, if
the root file system is checked, it is checked before all the
other file systems.</p><p>See
<a href="systemd.mount.html"><span class="citerefentry"><span class="refentrytitle">systemd.mount</span>(5)</span></a>
and
<a href="systemd.swap.html"><span class="citerefentry"><span class="refentrytitle">systemd.swap</span>(5)</span></a>
for more information about special <code class="filename">/etc/fstab</code>
mount options this generator understands.</p><p><code class="filename">systemd-fstab-generator</code> implements the
<a class="ulink" href="http://www.freedesktop.org/wiki/Software/systemd/Generators" target="_top">generator
specification</a>.</p></div><div class="refsect1"><a name="idm140677893575792"></a><h2 id="Kernel Command Line">Kernel Command Line<a class="headerlink" title="Permalink to this headline" href="#Kernel%20Command%20Line"></a></h2><p><code class="filename">systemd-fstab-generator</code> understands the
following kernel command line parameters:</p><div class="variablelist"><dl class="variablelist"><dt id="fstab="><span class="term"><code class="varname">fstab=</code>, </span><span class="term"><code class="varname">rd.fstab=</code></span><a class="headerlink" title="Permalink to this term" href="#fstab="></a></dt><dd><p>Takes a boolean argument. Defaults to
"<code class="literal">yes</code>". If "<code class="literal">no</code>", causes the
generator to ignore any mounts or swaps configured in
<code class="filename">/etc/fstab</code>. <code class="varname">rd.fstab=</code>
is honored only by initial RAM disk (initrd) while
<code class="varname">fstab=</code> is honored by both the main system
and the initrd.</p></dd><dt id="root="><span class="term"><code class="varname">root=</code></span><a class="headerlink" title="Permalink to this term" href="#root="></a></dt><dd><p>Takes the root filesystem to mount in the
initrd. <code class="varname">root=</code> is honored by the
initrd.</p></dd><dt id="rootfstype="><span class="term"><code class="varname">rootfstype=</code></span><a class="headerlink" title="Permalink to this term" href="#rootfstype="></a></dt><dd><p>Takes the root filesystem type that will be
passed to the mount command. <code class="varname">rootfstype=</code> is
honored by the initrd.</p></dd><dt id="rootflags="><span class="term"><code class="varname">rootflags=</code></span><a class="headerlink" title="Permalink to this term" href="#rootflags="></a></dt><dd><p>Takes the root filesystem mount options to
use. <code class="varname">rootflags=</code> is honored by the
initrd.</p></dd><dt id="mount.usr="><span class="term"><code class="varname">mount.usr=</code></span><a class="headerlink" title="Permalink to this term" href="#mount.usr="></a></dt><dd><p>Takes the <code class="filename">/usr</code> filesystem
to be mounted by the initrd. If
<code class="varname">mount.usrfstype=</code> or
<code class="varname">mount.usrflags=</code> is set, then
<code class="varname">mount.usr=</code> will default to the value set in
<code class="varname">root=</code>.</p><p>Otherwise this parameter defaults to the
<code class="filename">/usr</code> entry found in
<code class="filename">/etc/fstab</code> on the root filesystem.</p><p><code class="varname">mount.usr=</code> is honored by the initrd.
</p></dd><dt id="mount.usrfstype="><span class="term"><code class="varname">mount.usrfstype=</code></span><a class="headerlink" title="Permalink to this term" href="#mount.usrfstype="></a></dt><dd><p>Takes the <code class="filename">/usr</code> filesystem
type that will be passed to the mount command. If
<code class="varname">mount.usr=</code> or
<code class="varname">mount.usrflags=</code> is set, then
<code class="varname">mount.usrfstype=</code> will default to the value
set in <code class="varname">rootfstype=</code>.</p><p>Otherwise this value will be read from the
<code class="filename">/usr</code> entry in
<code class="filename">/etc/fstab</code> on the root filesystem.</p><p><code class="varname">mount.usrfstype=</code> is honored by the
initrd.</p></dd><dt id="mount.usrflags="><span class="term"><code class="varname">mount.usrflags=</code></span><a class="headerlink" title="Permalink to this term" href="#mount.usrflags="></a></dt><dd><p>Takes the <code class="filename">/usr</code> filesystem
mount options to use. If <code class="varname">mount.usr=</code> or
<code class="varname">mount.usrfstype=</code> is set, then
<code class="varname">mount.usrflages=</code> will default to the value
set in <code class="varname">rootflags=</code>.</p><p>Otherwise this value will be read from the
<code class="filename">/usr</code> entry in
<code class="filename">/etc/fstab</code> on the root filesystem.</p><p><code class="varname">mount.usrflags=</code> is honored by the
initrd.</p></dd></dl></div></div><div class="refsect1"><a name="idm140677897486400"></a><h2 id="See Also">See Also<a class="headerlink" title="Permalink to this headline" href="#See%20Also"></a></h2><p>
<a href="systemd.html"><span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span></a>,
<a href="fstab.html"><span class="citerefentry"><span class="refentrytitle">fstab</span>(5)</span></a>,
<a href="systemd.mount.html"><span class="citerefentry"><span class="refentrytitle">systemd.mount</span>(5)</span></a>,
<a href="systemd.swap.html"><span class="citerefentry"><span class="refentrytitle">systemd.swap</span>(5)</span></a>,
<a href="systemd-cryptsetup-generator.html"><span class="citerefentry"><span class="refentrytitle">systemd-cryptsetup-generator</span>(8)</span></a>
</p></div></div></body></html>