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)
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to