=== JanC_ is now known as JanC | ||
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. | 16:59 |
=== JanC_ is now known as JanC | ||
JanC | dupondje: you want to automatically remove the crypted mapping after the filesystem on it gets unmounted? | 17:10 |
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:12 |
dupondje | JanC: well it should be stopped before lvm or so is stopped, and after umount ofc | 17:13 |
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:14 |
dupondje | there is a do_stop at least for debian | 17:18 |
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:20 |
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:23 |
JanC | you might want to discuss with some of the people who know more about those parts of boot/shutdown... | 17:25 |
dupondje | tought this would be the place ;) | 17:31 |
JanC | dupondje: if this is Ubuntu-specific, #ubuntu-devel or such might be more useful | 17:34 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!