core/mount: add dependencies to dynamically mounted mounts too

System Internals / systemd - Martin Pitt [ubuntu.com] - 28 January 2015 10:02 UTC

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!

06e9788 core/mount: add dependencies to dynamically mounted mounts too
src/core/mount.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Upstream: github.com


  • Share