REMOVEDIRS (set to YES by default)
If set to YES the automount(8) will remove /media dir after unmount.
Apparently, this currently only works if /usr/local/sbin/automount is doing the unmounting.
If the user just unplugs the device or unmounts by hand, then the mount point is not removed.
This can lead to leftover empty mountpoints, which can be quite messy over time in /media.
Could automount catch the respective devd messages and clean up the extraneous directories?
https://github.com/vermaden/automount/commit/2a1f2a29725165d7dc4c422849668546fab010da introduced
REMOVEDIRS
:Apparently, this currently only works if
/usr/local/sbin/automount
is doing the unmounting.If the user just unplugs the device or unmounts by hand, then the mount point is not removed.
This can lead to leftover empty mountpoints, which can be quite messy over time in
/media
. Could automount catch the respective devd messages and clean up the extraneous directories?Thanks @decuser for pointing this out.