On Mon, 08.12.14 11:54, Harald Hoyer ([email protected]) wrote:

> Today I changed the dracut-shutdown.service [1] to do its job on ExecStop,
> This was done, to order the action before local-fs.target is stopped. Mainly 
> to
> run before boot.automount / boot.mount is stopped.
> 
> Works so far, but, if boot was _not_ yet automounted on shutdown, the
> boot.automount is blocked to mount in the transition to the shutdown.target.
> 
> So, if any ExecStop relies on a path, which is normally automounted, but not
> yet used, it fails on execution.

Yes, this is correct, we refuse new triggers of busnames, sockets or
automount units if we area going down, so that the shutdown operation
is not reversed. This is known behaviour.

If you know that ExecStop= needs some resource, I'd recommend pulling
in the unit for it explicitly with Wants=, so that it is pulled in
already during start. In you case, pull in the .mount unit with Wants=
in [Unit] and all should be good?

Lennart

-- 
Lennart Poettering, Red Hat
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to