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