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

Lennart Poettering lennart at poettering.net
Tue Jan 27 14:44:18 PST 2015


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

> Lennart Poettering [2015-01-27 22:46 +0100]:
> > However, I think it would make a ton of sense to change that, and set
> > SYSTEMD_READY=0 on all block devices where the media sensing suggests
> > that no medium is in it.
> 
> Thinking about it again, we already know that this rule in
> 60-cdrom_id.rules still works:
> 
> ENV{DISK_EJECT_REQUEST}=="?*", RUN+="cdrom_id --eject-media $devnode", GOTO="cdrom_end"
> 
> Could we not simply add the ENV{SYSTEMD_READY}="0" there, and then
> reset it (to 1) in the following rule?

Well, in that case it would only be set when somebody actually
presses the eject button. I am pretty sure though we should also set
the flag when a cdrom drive appears first and has no medium in it...

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list