systemd and mounting filesystems

Lennart Poettering mzerqung at 0pointer.de
Tue Oct 11 01:38:30 UTC 2011


On Tue, 11.10.11 00:03, Lennart Poettering (mzerqung at 0pointer.de) wrote:

> But anyway, I am aware that not all daemons are netlink aware and we
> need to support that daemons like that and making them more dynamic is
> not realistic in the short term. So what we could do is introduce a new
> target "network-fs-ready.target" or so which is ordered after
> network.target and before all network mounts. You could then simple
> place yourself between network.target and network-fs-ready.target. As
> that's a simple change we could even do that in F16 still.

So I have now added "remote-fs-pre.target" to achieve this. You should
now be able to order your service after "network.target" and before
"remote-fs-pre.target" so that you are run after the network is
configured but before the remote mount points are mounted.

Note that remote-fs-pre.target is a hook you need to pull in yourself,
as we do no pull it in normally (in order to keep the transaction minimal). i.e. you need to write this in your unit:

[Unit]
After=network.target
Before=remote-fs-pre.target
Wants=remote-fs-pre.target

This should appear in F16 soon.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the devel mailing list