diff options
author | David Tardon <dtardon@redhat.com> | 2023-01-13 15:58:39 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-01-16 14:16:49 +0100 |
commit | 218cfe23354397ded28ac898f82b52724f48dae7 (patch) | |
tree | 73c8ad7c084f753dc44610b4d91e778266f32a1a /man/systemd.mount.xml | |
parent | man: clarify applicability of IPv6AcceptRA option (diff) | |
download | systemd-218cfe23354397ded28ac898f82b52724f48dae7.tar.xz systemd-218cfe23354397ded28ac898f82b52724f48dae7.zip |
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.xml | 4 |
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> |