about summary refs log tree commit diff
path: root/nixos/doc/manual
diff options
context:
space:
mode:
authorEthan Glasser-Camp <ethan@betacantrips.com>2020-05-14 12:00:01 -0400
committerGitHub <noreply@github.com>2020-05-14 18:00:01 +0200
commitb59b7414c35e5c4026c53453329a25e4260b958b (patch)
tree607af450bf99b2f5a5ac4f13e523dd28a92ef90b /nixos/doc/manual
parent3d60859dfb4ce21fa50d3f4edde99bea0bbf40a8 (diff)
downloadnixlib-b59b7414c35e5c4026c53453329a25e4260b958b.tar
nixlib-b59b7414c35e5c4026c53453329a25e4260b958b.tar.gz
nixlib-b59b7414c35e5c4026c53453329a25e4260b958b.tar.bz2
nixlib-b59b7414c35e5c4026c53453329a25e4260b958b.tar.lz
nixlib-b59b7414c35e5c4026c53453329a25e4260b958b.tar.xz
nixlib-b59b7414c35e5c4026c53453329a25e4260b958b.tar.zst
nixlib-b59b7414c35e5c4026c53453329a25e4260b958b.zip
nixos/manual: document use of systemd to mount filesystems (#87684)
* nixos/manual: document use of systemd to mount filesystems
Diffstat (limited to 'nixos/doc/manual')
-rw-r--r--nixos/doc/manual/configuration/file-systems.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/nixos/doc/manual/configuration/file-systems.xml b/nixos/doc/manual/configuration/file-systems.xml
index e4c03de71b72..3ac02a975ebf 100644
--- a/nixos/doc/manual/configuration/file-systems.xml
+++ b/nixos/doc/manual/configuration/file-systems.xml
@@ -16,6 +16,17 @@
     fsType = "ext4";
   };
 </programlisting>
+  This will create an entry in <filename>/etc/fstab</filename>, which will
+  generate a corresponding
+  <link xlink:href="https://www.freedesktop.org/software/systemd/man/systemd.mount.html">systemd.mount</link>
+  unit via
+  <link xlink:href="https://www.freedesktop.org/software/systemd/man/systemd-fstab-generator.html">systemd-fstab-generator</link>.
+  The filesystem will be mounted automatically unless
+  <literal>"noauto"</literal> is present in <link
+  linkend="opt-fileSystems._name__.options">options</link>.
+  <literal>"noauto"</literal> filesystems can be mounted explicitly using
+  <command>systemctl</command> e.g. <command>systemctl start
+  data.mount</command>.
   Mount points are created automatically if they don’t already exist. For
   <option><link linkend="opt-fileSystems._name__.device">device</link></option>,
   it’s best to use the topology-independent device aliases in