1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00

man: Clarify that tools should prefer mount units over editing fstab

(cherry picked from commit 29e804dffd)
This commit is contained in:
Daan De Meyer 2022-08-03 15:52:29 +02:00 committed by Zbigniew Jędrzejewski-Szmek
parent 6b58b06c7d
commit 3814bd0e71

View File

@ -155,16 +155,14 @@
<refsect1>
<title><filename>fstab</filename></title>
<para>Mount units may either be configured via unit files, or via
<filename>/etc/fstab</filename> (see
<para>Mount units may either be configured via unit files, or via <filename>/etc/fstab</filename> (see
<citerefentry project='man-pages'><refentrytitle>fstab</refentrytitle><manvolnum>5</manvolnum></citerefentry>
for details). Mounts listed in <filename>/etc/fstab</filename>
will be converted into native units dynamically at boot and when
the configuration of the system manager is reloaded. In general,
configuring mount points through <filename>/etc/fstab</filename>
is the preferred approach. See
<citerefentry><refentrytitle>systemd-fstab-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry>
for details about the conversion.</para>
for details). Mounts listed in <filename>/etc/fstab</filename> will be converted into native units
dynamically at boot and when the configuration of the system manager is reloaded. In general, configuring
mount points through <filename>/etc/fstab</filename> is the preferred approach to manage mounts for
humans. For tooling, writing mount units should be preferred over editing <filename>/etc/fstab</filename>.
See <citerefentry><refentrytitle>systemd-fstab-generator</refentrytitle><manvolnum>8</manvolnum></citerefentry>
for details about the conversion from <filename>/etc/fstab</filename> to mount units.</para>
<para>The NFS mount option <option>bg</option> for NFS background mounts
as documented in <citerefentry project='man-pages'><refentrytitle>nfs</refentrytitle><manvolnum>5</manvolnum></citerefentry>