[systemd-devel] [PATCH] systemd-udevd.service: restore mount propagation

Lennart Poettering lennart at poettering.net
Tue Jan 27 08:22:35 PST 2015


On Tue, 27.01.15 16:24, Martin Pitt (martin.pitt at ubuntu.com) wrote:

> > Well, again, the right answer then is to handle it with .mount units,
> 
> How would that look like, on a very high level? Create .mount units on
> the fly with udev rules when devices appear, and asking systemd to
> unmount them via a remove uevent, instead of having cdrom_id do the
> umount directly?

The .mount units of device nodes already have a BindsTo= dependency on
their respective backing .device units. This should have the effect
that systemd will take the .mount units down if the .device units are
removed. Are you saying that doesn't work?

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list