[systemd-devel] [PATCH] cdrom_id: unmount media on --eject-media if media mounted

Robert Milasan rmilasan at suse.com
Thu Jan 15 08:13:06 PST 2015


On Thu, 15 Jan 2015 17:05:54 +0100
"Lennart Poettering" <lennart at poettering.net> wrote:
> 
> I think the best way to fix this is in the kernel properly. And if the
> kernel folks are not willing to do add code for that, then I think
> it's still better to make sure systemd unmounts it. It can do so
> asynchronously, simply via the right dependencies. In fact, are you
> sure that this isn't handled properly yet anyway? The .mount units
> would just need a BindsTo= on the .device units, and the right thing
> should happen?
> 

Got no clue, didn't try.

I never said that adding the code to cdrom_id is the best idea, but
it's an idea. If there are better ways, I prefer them too.


-- 
Robert Milasan

L3 Support Engineer
SUSE Linux (http://www.suse.com)
email: rmilasan at suse.com
GPG fingerprint: B6FE F4A8 0FA3 3040 3402  6FE7 2F64 167C 1909 6D1A


More information about the systemd-devel mailing list