On Sun, Apr 12, 2015 at 10:33:54PM +0200, Jan Luca Naumann wrote:
> I'm not a systemd-developer so I want to ask you if it is possible to
> add a hook for execute something after the unmount (for example to
> delete the mount directory)?
well, /proc/mount and /proc/self/mountinfo are poll-able, so you do
not need systemd to listen for the changes.
findmnt --first-only --poll=umount /mnt/foo
rmdir /mnt/foo
Karel
--
Karel Zak <[email protected]>
http://karelzak.blogspot.com
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel