3 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
5 This file is part of systemd.
7 Copyright 2012 Lennart Poettering
9 systemd is free software; you can redistribute it and/or modify it
10 under the terms of the GNU Lesser General Public License as published by
11 the Free Software Foundation; either version 2.1 of the License, or
12 (at your option) any later version.
14 systemd is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Lesser General Public License for more details.
19 You should have received a copy of the GNU Lesser General Public License
20 along with systemd; If not, see <http://www.gnu.org/licenses/>.
22 <refentry id="systemd-fstab-generator">
25 <title>systemd-fstab-generator</title>
26 <productname>systemd</productname>
30 <contrib>Developer</contrib>
31 <firstname>Lennart</firstname>
32 <surname>Poettering</surname>
33 <email>lennart@poettering.net</email>
39 <refentrytitle>systemd-fstab-generator</refentrytitle>
40 <manvolnum>8</manvolnum>
44 <refname>systemd-fstab-generator</refname>
45 <refpurpose>Unit generator for /etc/fstab</refpurpose>
49 <para><filename>/usr/lib/systemd/system-generators/systemd-fstab-generator</filename></para>
53 <title>Description</title>
55 <para><filename>systemd-fstab-generator</filename> is a generator
56 that translates <filename>/etc/fstab</filename> (see
57 <citerefentry><refentrytitle>fstab</refentrytitle><manvolnum>5</manvolnum></citerefentry>
58 for details) into native systemd units early at boot and when
59 configuration of the system manager is reloaded. This will
60 instantiate mount and swap units as necessary.</para>
62 <para>The <varname>passno</varname> field is treated like a simple
63 boolean, and the ordering information is discarded. However, if
64 the root file system is checked, it is checked before all the
65 other file systems.</para>
68 <citerefentry><refentrytitle>systemd.mount</refentrytitle><manvolnum>5</manvolnum></citerefentry>
70 <citerefentry><refentrytitle>systemd.swap</refentrytitle><manvolnum>5</manvolnum></citerefentry>
71 for more information about special <filename>/etc/fstab</filename>
72 mount options this generator understands.</para>
74 <para><filename>systemd-fstab-generator</filename> implements
75 <citerefentry><refentrytitle>systemd.generator</refentrytitle><manvolnum>7</manvolnum></citerefentry>.</para>
79 <title>Kernel Command Line</title>
81 <para><filename>systemd-fstab-generator</filename> understands the
82 following kernel command line parameters:</para>
84 <variablelist class='kernel-commandline-options'>
87 <term><varname>fstab=</varname></term>
88 <term><varname>rd.fstab=</varname></term>
90 <listitem><para>Takes a boolean argument. Defaults to
91 <literal>yes</literal>. If <literal>no</literal>, causes the
92 generator to ignore any mounts or swaps configured in
93 <filename>/etc/fstab</filename>. <varname>rd.fstab=</varname>
94 is honored only by initial RAM disk (initrd) while
95 <varname>fstab=</varname> is honored by both the main system
96 and the initrd.</para></listitem>
99 <term><varname>root=</varname></term>
101 <listitem><para>Takes the root filesystem to mount in the
102 initrd. <varname>root=</varname> is honored by the
103 initrd.</para></listitem>
106 <term><varname>rootfstype=</varname></term>
108 <listitem><para>Takes the root filesystem type that will be
109 passed to the mount command. <varname>rootfstype=</varname> is
110 honored by the initrd.</para></listitem>
113 <term><varname>rootflags=</varname></term>
115 <listitem><para>Takes the root filesystem mount options to
116 use. <varname>rootflags=</varname> is honored by the
117 initrd.</para></listitem>
120 <term><varname>mount.usr=</varname></term>
122 <listitem><para>Takes the <filename>/usr</filename> filesystem
123 to be mounted by the initrd. If
124 <varname>mount.usrfstype=</varname> or
125 <varname>mount.usrflags=</varname> is set, then
126 <varname>mount.usr=</varname> will default to the value set in
127 <varname>root=</varname>.</para>
129 <para>Otherwise this parameter defaults to the
130 <filename>/usr</filename> entry found in
131 <filename>/etc/fstab</filename> on the root filesystem.</para>
133 <para><varname>mount.usr=</varname> is honored by the initrd.
137 <term><varname>mount.usrfstype=</varname></term>
139 <listitem><para>Takes the <filename>/usr</filename> filesystem
140 type that will be passed to the mount command. If
141 <varname>mount.usr=</varname> or
142 <varname>mount.usrflags=</varname> is set, then
143 <varname>mount.usrfstype=</varname> will default to the value
144 set in <varname>rootfstype=</varname>.</para>
146 <para>Otherwise this value will be read from the
147 <filename>/usr</filename> entry in
148 <filename>/etc/fstab</filename> on the root filesystem.</para>
150 <para><varname>mount.usrfstype=</varname> is honored by the
151 initrd.</para></listitem>
154 <term><varname>mount.usrflags=</varname></term>
156 <listitem><para>Takes the <filename>/usr</filename> filesystem
157 mount options to use. If <varname>mount.usr=</varname> or
158 <varname>mount.usrfstype=</varname> is set, then
159 <varname>mount.usrflages=</varname> will default to the value
160 set in <varname>rootflags=</varname>.</para>
162 <para>Otherwise this value will be read from the
163 <filename>/usr</filename> entry in
164 <filename>/etc/fstab</filename> on the root filesystem.</para>
166 <para><varname>mount.usrflags=</varname> is honored by the
167 initrd.</para></listitem>
173 <title>See Also</title>
175 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
176 <citerefentry><refentrytitle>fstab</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
177 <citerefentry><refentrytitle>systemd.mount</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
178 <citerefentry><refentrytitle>systemd.swap</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
179 <citerefentry><refentrytitle>systemd-cryptsetup-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry>