On Tue, 27.01.15 16:24, Martin Pitt (martin.p...@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
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to