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)
commit06e97888883e2cc12eb6514e80c7f0014295f59b
tree88e8c008cdff4cf33d968740398fd8524b40fdb5
parent3315f085178f46155fda345d9526c09083b45946
core/mount: add dependencies to dynamically mounted mounts too

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!
src/core/mount.c