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

Martin Pitt martin.pitt at ubuntu.com
Tue Jan 27 14:33:53 PST 2015


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?

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)


More information about the systemd-devel mailing list