]> git.ipfire.org Git - thirdparty/systemd.git/blob - man/systemd-volatile-root.service.xml
capability: add new ambient_capabilities_supported() helper
[thirdparty/systemd.git] / man / systemd-volatile-root.service.xml
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 2016 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-volatile-root.service">
23
24 <refentryinfo>
25 <title>systemd-volatile-root.service</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-volatile-root.service</refentrytitle>
40 <manvolnum>8</manvolnum>
41 </refmeta>
42
43 <refnamediv>
44 <refname>systemd-volatile-root.service</refname>
45 <refname>systemd-volatile-root</refname>
46 <refpurpose>Make the root file system volatile</refpurpose>
47 </refnamediv>
48
49 <refsynopsisdiv>
50 <para><filename>systemd-volatile-root.service</filename></para>
51 <para><filename>/usr/lib/systemd/systemd-volatile-root</filename></para>
52 </refsynopsisdiv>
53
54 <refsect1>
55 <title>Description</title>
56
57 <para><filename>systemd-volatile-root.service</filename> is a service that replaces the root directory with a
58 volatile memory file system (<literal>tmpfs</literal>), mounting the original (non-volatile)
59 <filename>/usr</filename> inside it read-only. This way, vendor data from <filename>/usr</filename> is available as
60 usual, but all configuration data in <filename>/etc</filename>, all state data in <filename>/var</filename> and all
61 other resources stored directly under the root directory are reset on boot and lost at shutdown, enabling fully
62 stateless systems.</para>
63
64 <para>This service is only enabled if full volatile mode is selected, for example by specifying
65 <literal>systemd.volatile=yes</literal> on the kernel command line. This service runs only in the initial RAM disk
66 ("initrd"), before the system transitions to the host's root directory. Note that this service is not used if
67 <literal>systemd.volatile=state</literal> is used, as in that mode the root directory is non-volatile.</para>
68 </refsect1>
69
70 <refsect1>
71 <title>See Also</title>
72 <para>
73 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
74 <citerefentry><refentrytitle>systemd-fstab-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
75 <citerefentry><refentrytitle>kernel-command-line</refentrytitle><manvolnum>7</manvolnum></citerefentry>
76 </para>
77 </refsect1>
78
79 </refentry>