]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/mount.c
mount: handle bind mount of file with non-existing target
authorDavid Tardon <dtardon@redhat.com>
Fri, 13 Jan 2023 14:58:39 +0000 (15:58 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 16 Jan 2023 13:16:49 +0000 (22:16 +0900)
commit218cfe23354397ded28ac898f82b52724f48dae7
tree73c8ad7c084f753dc44610b4d91e778266f32a1a
parent87d1221174f252aec6fe3f3031d0b9b548aa6097
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
man/systemd.mount.xml
src/core/mount.c