[HOOK] yet another encrypted home hook
after trying to use and fix live-helpers encrypted persistent home feature, and not getting anywhere, although I think its a redirection problem in the live script itself or something related to this bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=507722 (I really don't know), I've decided to try to adapt this: http://lists.debian.org/debian-live/2009/04/msg00186.html to a partition.
After having a working huge monster hook with 5 KB of size, while reading once more Jeff Lessem mail (thank you for the inspiration Jeff), I read the following and bells rang:
(sorry, I don't have the mail, here is a snip of the important part)
---- http://lists.debian.org/debian-live/2009/04/msg00186.html ------
echo >> /etc/fstab <<EOF---- http://lists.debian.org/debian-live/2009/04/msg00186.html ------
/dev/mapper/home /home ext2 defaults,noatime 0 0
From this point (unless I'm forgetting a step) cryptsetup should
figure out what to do during the boot process. At some point it will
ask for your password to decrypt the luks partition.
The answer between the lines it was! So creating the following script was so simple and quick compared with my monster 5 KB hook I was working on. Debian is just so Debian...
Anyway here it is, still with some TODO/FIXME stuff that people here could help :)
Rui M. P. Bernardo
Description: Bourne shell script