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

This commit is contained in:
Daan De Meyer 2022-08-03 15:52:29 +02:00 committed by Luca Boccassi
parent 1374f5a03a
commit 29e804dffd

View file

@ -156,16 +156,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>