]>
Commit | Line | Data |
---|---|---|
91214a37 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 | <!-- | |
572eb058 | 5 | SPDX-License-Identifier: LGPL-2.1+ |
91214a37 LP |
6 | --> |
7 | <refentry id="systemd-volatile-root.service"> | |
8 | ||
9 | <refentryinfo> | |
10 | <title>systemd-volatile-root.service</title> | |
11 | <productname>systemd</productname> | |
12 | ||
13 | <authorgroup> | |
14 | <author> | |
15 | <contrib>Developer</contrib> | |
16 | <firstname>Lennart</firstname> | |
17 | <surname>Poettering</surname> | |
18 | <email>lennart@poettering.net</email> | |
19 | </author> | |
20 | </authorgroup> | |
21 | </refentryinfo> | |
22 | ||
23 | <refmeta> | |
24 | <refentrytitle>systemd-volatile-root.service</refentrytitle> | |
25 | <manvolnum>8</manvolnum> | |
26 | </refmeta> | |
27 | ||
28 | <refnamediv> | |
29 | <refname>systemd-volatile-root.service</refname> | |
30 | <refname>systemd-volatile-root</refname> | |
31 | <refpurpose>Make the root file system volatile</refpurpose> | |
32 | </refnamediv> | |
33 | ||
34 | <refsynopsisdiv> | |
35 | <para><filename>systemd-volatile-root.service</filename></para> | |
36 | <para><filename>/usr/lib/systemd/systemd-volatile-root</filename></para> | |
37 | </refsynopsisdiv> | |
38 | ||
39 | <refsect1> | |
40 | <title>Description</title> | |
41 | ||
42 | <para><filename>systemd-volatile-root.service</filename> is a service that replaces the root directory with a | |
43 | volatile memory file system (<literal>tmpfs</literal>), mounting the original (non-volatile) | |
44 | <filename>/usr</filename> inside it read-only. This way, vendor data from <filename>/usr</filename> is available as | |
45 | usual, but all configuration data in <filename>/etc</filename>, all state data in <filename>/var</filename> and all | |
46 | other resources stored directly under the root directory are reset on boot and lost at shutdown, enabling fully | |
47 | stateless systems.</para> | |
48 | ||
49 | <para>This service is only enabled if full volatile mode is selected, for example by specifying | |
50 | <literal>systemd.volatile=yes</literal> on the kernel command line. This service runs only in the initial RAM disk | |
51 | ("initrd"), before the system transitions to the host's root directory. Note that this service is not used if | |
52 | <literal>systemd.volatile=state</literal> is used, as in that mode the root directory is non-volatile.</para> | |
53 | </refsect1> | |
54 | ||
55 | <refsect1> | |
56 | <title>See Also</title> | |
57 | <para> | |
58 | <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>, | |
59 | <citerefentry><refentrytitle>systemd-fstab-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry>, | |
60 | <citerefentry><refentrytitle>kernel-command-line</refentrytitle><manvolnum>7</manvolnum></citerefentry> | |
61 | </para> | |
62 | </refsect1> | |
63 | ||
64 | </refentry> |