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