]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: document that we mkdir() on What= in .mount units too
authorLennart Poettering <lennart@poettering.net>
Mon, 13 Jan 2020 10:22:11 +0000 (11:22 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 13 Jan 2020 10:23:59 +0000 (11:23 +0100)
As suggested here:

https://lists.freedesktop.org/archives/systemd-devel/2020-January/043914.html

man/systemd.mount.xml

index b2c9d606814f66c22d1dbb51778c861545695a6e..1adcba28e2f4ec27fe0782d0f849dfc468fcde5d 100644 (file)
 
       <varlistentry>
         <term><varname>What=</varname></term>
-        <listitem><para>Takes an absolute path of a device node, file or other resource to mount. See <citerefentry
-        project='man-pages'><refentrytitle>mount</refentrytitle><manvolnum>8</manvolnum></citerefentry> for details. If
-        this refers to a device node, a dependency on the respective device unit is automatically created. (See
-        <citerefentry><refentrytitle>systemd.device</refentrytitle><manvolnum>5</manvolnum></citerefentry> for more
-        information.) This option is mandatory. Note that the usual specifier expansion is applied to this setting,
-        literal percent characters should hence be written as <literal>%%</literal>.</para></listitem>
+        <listitem><para>Takes an absolute path of a device node, file or other resource to mount. See
+        <citerefentry
+        project='man-pages'><refentrytitle>mount</refentrytitle><manvolnum>8</manvolnum></citerefentry> for
+        details. If this refers to a device node, a dependency on the respective device unit is automatically
+        created. (See
+        <citerefentry><refentrytitle>systemd.device</refentrytitle><manvolnum>5</manvolnum></citerefentry>
+        for more information.) This option is mandatory. Note that the usual specifier expansion is applied
+        to this setting, literal percent characters should hence be written as <literal>%%</literal>. If this
+        mount is a bind mount and the specified path does not exist yet it is created as
+        directory.</para></listitem>
       </varlistentry>
 
       <varlistentry>