[systemd-devel] Antw: systemd.mount creating mount resource (What) for bind mounts
Lennart Poettering
lennart at poettering.net
Mon Jan 13 16:00:41 UTC 2020
On Mo, 13.01.20 12:03, Ulrich Windl (Ulrich.Windl at rz.uni-regensburg.de) wrote:
> > 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.
We want to support cases where / is a tmpfs with only /usr mounted in
from an OS image and where everything else is initialized and put
together on boot.
Similar, we want to support systems where / is reset via a "factory
reset" concept (and thus empty), then combined with /usr and comes up
properly initialized, with all mount points for /proc, /tmp, /sys and
so on created.
Lennart
--
Lennart Poettering, Berlin
More information about the systemd-devel
mailing list