summaryrefslogtreecommitdiff
path: root/man/systemd.mount.xml
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2023-01-13 15:58:39 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-01-16 22:16:49 +0900
commit218cfe23354397ded28ac898f82b52724f48dae7 (patch)
tree73c8ad7c084f753dc44610b4d91e778266f32a1a /man/systemd.mount.xml
parent87d1221174f252aec6fe3f3031d0b9b548aa6097 (diff)
downloadsystemd-218cfe23354397ded28ac898f82b52724f48dae7.tar.gz
mount: handle bind mount of file with non-existing target
When the target (Where=) of a mount does not exist, systemd tries to create it. But previously, it'd always been created as a directory. That doesn't work if one wants to bind-mount a file to a target that doesn't exist. Fixes: #17184
Diffstat (limited to 'man/systemd.mount.xml')
-rw-r--r--man/systemd.mount.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/man/systemd.mount.xml b/man/systemd.mount.xml
index 773ca04cd6..da6ade86c8 100644
--- a/man/systemd.mount.xml
+++ b/man/systemd.mount.xml
@@ -476,7 +476,9 @@
<term><varname>Where=</varname></term>
<listitem><para>Takes an absolute path of a file or directory for the mount point; in particular, the
destination cannot be a symbolic link. If the mount point does not exist at the time of mounting, it
- is created as directory. This string must be reflected in the unit filename. (See above.) This option
+ is created as either a directory or a file. The former is the usual case; the latter is done only if this mount
+ is a bind mount and the source (<varname>What=</varname>) is not a directory.
+ This string must be reflected in the unit filename. (See above.) This option
is mandatory.</para></listitem>
</varlistentry>