[16:59] <dupondje> Hi somebody around for a question? :)
[16:59] <dupondje> i'm rewriting upstart script for cryptsetup. Now what signal can be used to remove the crypted mappings? This should be done after umount happend.
[17:10] <JanC> dupondje: you want to automatically remove the crypted mapping after the filesystem on it gets unmounted?
[17:12] <JanC> that might get complicated in case there is a partition table (or whatever else that is not a filesystem) on the encrypted block device...
[17:13] <dupondje> JanC: well it should be stopped before lvm or so is stopped, and after umount ofc
[17:14] <JanC> dupondje: doesn't that depend on whether lvm is below or on top of dm-crypt?  ;)
[17:14] <dupondje> hmmmm :P
[17:14] <JanC> (and can't/doesn't the kernel handle this?)
[17:18] <dupondje> there is a do_stop at least for debian
[17:20] <dupondje> then i'll should just add post-stop script in the upstart to stop all (unmounted) crypt mappings when running service cryptsetup stop right
[17:23] <dupondje> Cause now there are 2 init scripts and 2 upstart scripts, the init scripts taking care of the stop, the upstart for the start
[17:23] <dupondje> thats like not clean ;)
[17:25] <JanC> you might want to discuss with some of the people who know more about those parts of boot/shutdown...
[17:31] <dupondje> tought this would be the place ;)
[17:34] <JanC> dupondje: if this is Ubuntu-specific, #ubuntu-devel or such might be more useful