I don't know why the Ubuntu people didn't think of this since they even created an alternate installer that lets you use disk encryption. Well, I use full disk encryption with Xubuntu, but when it prompts for a passphrase I don't know which partition's passphrase it wants.
Adding one line to /lib/cryptsetup/cryptdisks.functions makes life so much easier. Now I know for sure which partition I'm being prompted to unlock.
--- cryptfunctions.orig 2008-08-22 08:53:21.000000000 -0500
+++ cryptdisks.functions 2008-08-22 08:41:38.000000000 -0500
@@ -266,6 +266,7 @@
tried=$(( $tried + 1 ))
done
else
+ echo "LUKS Source: $src"
if test "x$INTERACTIVE" != "xyes" ; then
PARAMS="$PARAMS --key-file=$key"
cryptsetup $PARAMS luksOpen $src $dst <&1
The line in bold is my lame little addition.