Friday, August 22, 2008

/lib/cryptsetup/cryptdisks.functions patch (One line edit)

I use full disk encryption with Xubuntu. 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.