[systemd-devel] systemd.mount creating mount resource (What) for bind mounts
Anoop Karollil
anoop.karollil at gmail.com
Tue Jan 7 22:50:13 UTC 2020
Hello,
I see that a mount unit with `Options=bind` set creates the resource
to be mounted, specified by `What`, in addition to the mount point,
specified by `Where`, when they don't exist.
Manual page at https://www.freedesktop.org/software/systemd/man/systemd.mount.html
mentions that the mount point will be created if it doesn't exist for
`Where`. But doesn't mention that this applies to `What` too in the
case of bind mounts. I think this is the change that added this
behaviour: https://github.com/systemd/systemd/commit/2b583ce6576d4a074ce6f1570b3e60b65c64ae7d#diff-df9fd757e73e7f659350e8a76994d42f.
I found it a little surprising, especially since the behaviour is
described for `Where` but not for `What`. So maybe its good to mention
that in the systemd.mount man page under `What`?
Thanks,
Anoop
More information about the systemd-devel
mailing list