]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/systemd-fstab-generator.xml
service: add support for reboot argument when triggered by StartLimitAction=
[thirdparty/systemd.git] / man / systemd-fstab-generator.xml
CommitLineData
059b37cc
LP
1<?xml version="1.0"?>
2<!--*-nxml-*-->
3<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
4<!--
5 This file is part of systemd.
6
7 Copyright 2012 Lennart Poettering
8
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.
13
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.
18
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/>.
21-->
22<refentry id="systemd-fstab-generator">
23
24 <refentryinfo>
25 <title>systemd-fstab-generator</title>
26 <productname>systemd</productname>
27
28 <authorgroup>
29 <author>
30 <contrib>Developer</contrib>
31 <firstname>Lennart</firstname>
32 <surname>Poettering</surname>
33 <email>lennart@poettering.net</email>
34 </author>
35 </authorgroup>
36 </refentryinfo>
37
38 <refmeta>
39 <refentrytitle>systemd-fstab-generator</refentrytitle>
40 <manvolnum>8</manvolnum>
41 </refmeta>
42
43 <refnamediv>
44 <refname>systemd-fstab-generator</refname>
34511ca7 45 <refpurpose>Unit generator for /etc/fstab</refpurpose>
059b37cc
LP
46 </refnamediv>
47
48 <refsynopsisdiv>
49 <para><filename>/usr/lib/systemd/system-generators/systemd-fstab-generator</filename></para>
50 </refsynopsisdiv>
51
52 <refsect1>
53 <title>Description</title>
54
55 <para><filename>systemd-fstab-generator</filename> is
56 a generator that translates
57 <filename>/etc/fstab</filename> (see
58 <citerefentry><refentrytitle>fstab</refentrytitle><manvolnum>5</manvolnum></citerefentry>
59 for details) into native systemd units early at boot
60 and when configuration of the system manager is
61 reloaded. This will instantiate mount and swap units
bb31a4ac 62 as necessary.</para>
059b37cc 63
72ebbf34
ZJS
64 <para>The <varname>passno</varname> field is treated
65 like a simple boolean, and the ordering information is
66 discarded. However, if the root file system is
67 checked, it is checked before all the other
68 file systems.</para>
64e70e4b 69
059b37cc
LP
70 <para>See
71 <citerefentry><refentrytitle>systemd.mount</refentrytitle><manvolnum>5</manvolnum></citerefentry>
72 and
73 <citerefentry><refentrytitle>systemd.swap</refentrytitle><manvolnum>5</manvolnum></citerefentry>
74 for more information about special
75 <filename>/etc/fstab</filename> mount options this
76 generator understands.</para>
77
78 <para><filename>systemd-fstab-generator</filename>
79 implements the <ulink
8fd1952f 80 url="http://www.freedesktop.org/wiki/Software/systemd/Generators">generator
059b37cc
LP
81 specification</ulink>.</para>
82 </refsect1>
83
84 <refsect1>
85 <title>Kernel Command Line</title>
86
87 <para><filename>systemd-fstab-generator</filename> understands
88 the following kernel command line parameters:</para>
89
ccc9a4f9 90 <variablelist class='kernel-commandline-options'>
059b37cc
LP
91
92 <varlistentry>
93 <term><varname>fstab=</varname></term>
94 <term><varname>rd.fstab=</varname></term>
95
96 <listitem><para>Takes a boolean
97 argument. Defaults to
98 <literal>yes</literal>. If
79640424 99 <literal>no</literal>, causes the
059b37cc
LP
100 generator to ignore any mounts or swaps
101 configured in
102 <filename>/etc/fstab</filename>. <varname>rd.fstab=</varname>
bb31a4ac 103 is honored only by initial RAM disk
059b37cc 104 (initrd) while
c8be47e8 105 <varname>fstab=</varname> is
bb31a4ac 106 honored by both the main system and
059b37cc
LP
107 the initrd. </para></listitem>
108 </varlistentry>
109
110 </variablelist>
111 </refsect1>
112
113 <refsect1>
114 <title>See Also</title>
115 <para>
116 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
117 <citerefentry><refentrytitle>fstab</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
118 <citerefentry><refentrytitle>systemd.mount</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
119 <citerefentry><refentrytitle>systemd.swap</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
120 <citerefentry><refentrytitle>systemd-cryptsetup-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry>
121 </para>
122 </refsect1>
123
124</refentry>