| 1 |
<?xml version="1.0"?> |
| 2 |
<!--*-nxml-*--> |
| 3 |
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" |
| 4 |
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> |
| 5 |
<!-- SPDX-License-Identifier: LGPL-2.1-or-later --> |
| 6 |
<refentry id="systemd-remount-fs.service"> |
| 7 |
|
| 8 |
<refentryinfo> |
| 9 |
<title>systemd-remount-fs.service</title> |
| 10 |
<productname>systemd</productname> |
| 11 |
</refentryinfo> |
| 12 |
|
| 13 |
<refmeta> |
| 14 |
<refentrytitle>systemd-remount-fs.service</refentrytitle> |
| 15 |
<manvolnum>8</manvolnum> |
| 16 |
</refmeta> |
| 17 |
|
| 18 |
<refnamediv> |
| 19 |
<refname>systemd-remount-fs.service</refname> |
| 20 |
<refname>systemd-remount-fs</refname> |
| 21 |
<refpurpose>Remount root and kernel file systems</refpurpose> |
| 22 |
</refnamediv> |
| 23 |
|
| 24 |
<refsynopsisdiv> |
| 25 |
<para><filename>systemd-remount-fs.service</filename></para> |
| 26 |
<para><filename>/usr/lib/systemd/systemd-remount-fs</filename></para> |
| 27 |
</refsynopsisdiv> |
| 28 |
|
| 29 |
<refsect1> |
| 30 |
<title>Description</title> |
| 31 |
|
| 32 |
<para><filename>systemd-remount-fs.service</filename> is an early boot service that applies mount options |
| 33 |
listed in <citerefentry |
| 34 |
project='man-pages'><refentrytitle>fstab</refentrytitle><manvolnum>5</manvolnum></citerefentry>, or |
| 35 |
gathered from the partition table (when |
| 36 |
<citerefentry><refentrytitle>systemd-gpt-auto-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry> |
| 37 |
is active) to the root file system, the <filename>/usr/</filename> file system, and the kernel API file |
| 38 |
systems. This is required so that the mount options of these file systems — which are pre-mounted by the |
| 39 |
kernel, the initrd, container environments or system manager code — are updated to those |
| 40 |
configured in <filename>/etc/fstab</filename> and the other sources. This service ignores normal file |
| 41 |
systems and only changes the root file system (i.e. <filename>/</filename>), <filename>/usr/</filename>, |
| 42 |
and the virtual kernel API file systems such as <filename>/proc/</filename>, <filename>/sys/</filename> or |
| 43 |
<filename>/dev/</filename>. This service executes no operation if no configuration is found |
| 44 |
(<filename>/etc/fstab</filename> does not exist or lists no entries for the mentioned file systems, or |
| 45 |
the partition table does not contain relevant entries).</para> |
| 46 |
|
| 47 |
<para>For a longer discussion of kernel API file systems see |
| 48 |
<ulink url="https://systemd.io/API_FILE_SYSTEMS">API |
| 49 |
File Systems</ulink>.</para> |
| 50 |
|
| 51 |
<para>Note: <filename>systemd-remount-fs.service</filename> is usually pulled in by |
| 52 |
<citerefentry><refentrytitle>systemd-fstab-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry>, |
| 53 |
hence it is also affected by the kernel command line option <varname>fstab=</varname>, which may be used |
| 54 |
to disable the generator. It may also be pulled in by |
| 55 |
<citerefentry><refentrytitle>systemd-gpt-auto-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry>, |
| 56 |
which is affected by <varname>systemd.gpt_auto</varname> and other options.</para> |
| 57 |
</refsect1> |
| 58 |
|
| 59 |
<refsect1> |
| 60 |
<title>See Also</title> |
| 61 |
<para><simplelist type="inline"> |
| 62 |
<member><citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry></member> |
| 63 |
<member><citerefentry project='man-pages'><refentrytitle>fstab</refentrytitle><manvolnum>5</manvolnum></citerefentry></member> |
| 64 |
<member><citerefentry project='man-pages'><refentrytitle>mount</refentrytitle><manvolnum>8</manvolnum></citerefentry></member> |
| 65 |
<member><citerefentry><refentrytitle>systemd-fstab-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry></member> |
| 66 |
<member><citerefentry><refentrytitle>systemd-gpt-auto-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry></member> |
| 67 |
</simplelist></para> |
| 68 |
</refsect1> |
| 69 |
|
| 70 |
</refentry> |