chiark / gitweb /
core/mount: add dependencies to dynamically mounted mounts too
authorMartin Pitt <martin.pitt@ubuntu.com>
Wed, 28 Jan 2015 12:53:25 +0000 (13:53 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 28 Jan 2015 16:02:28 +0000 (17:02 +0100)
Add unit dependencies for dynamic (i. e. not from fstab) mounts. With that,
mount units properly bind to their underlying device, and thus get
automatically stopped/unmounted when the underlying device goes away.

This cleans up stale mounts from unplugged devices.

Thanks to Lennart Poettering for pointing out the fix!


No differences found