AuthorTopic: HOWTO make encrypted home partition using LUKS work (Read 4197 times)

This is not a howto about how to create an encypted home partition, there are a lot of good ones there, on the internet (as an example: http://goodies.lemonsoftware.eu/goodie_content.php?id=224). But for some reason, mounting it automatically at the startup seems to be problematic in VL.

# file: /etc/rc.d/rc.cryptinit# if this script is executed when home is opened, tries to close it;# otherwise, tries to open it, for three times, then continue without# opening itif [ -b /dev/mapper/crypthome ]; then /sbin/cryptsetup luksClose crypthomeelse i=3 while [ $i -gt 0 ]; do let "i -= 1" /sbin/cryptsetup luksOpen /dev/hda2 crypthome && i=0 donefiOf course, modify /dev/hda2 with your partition (/dev/sdXX, /dev/hdXX or whatever it is) and put instead of crypthome whatever you like. This will be the name used in /dev/mapper/...