>>> Anoop Karollil <[email protected]> schrieb am 07.01.2020 um 23:50
in
Nachricht
<cagayzyuficuy5vzopp2bfoxiujmxayrkn_hafvho4gflucv...@mail.gmail.com>:
> 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.

Personally I think a mount operation should not create any missing directory,
because a missing directory indicates some type of configuration problem that
should be solved by hand.

> 
> 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/2b583ce6576d4a074ce6f1570b3e60b65c6

> 4ae7d#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
> _______________________________________________
> systemd‑devel mailing list
> systemd‑[email protected] 
> https://lists.freedesktop.org/mailman/listinfo/systemd‑devel 



_______________________________________________
systemd-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to