TrueCrypt 4.2 on FC6 : Build from Zero
This was wholesale copied from the (German) blog at http://fedorawiki.de/index.php/Truecrypt
Set up yum
# yum install rpm-build redhat-rpm-config unifdef
Install Kernel Sources
# rpm -ivh kernel-$(uname -r).src.rpm
# rpmbuild -bp –target $(uname -m) kernel-2.6.spec
Copy dm.h into the right place
Get and unpack truecrypt sources
Get truecrypt source.
Patch the truecrypt source to cope with dm.h ‘issues’
Patch is
truecrypt-4.2a-Dm-target.c–kernel-2.6.18-and-2.6.19.patch
, put this in the main truecrypt-4.2a directory (which contains the Linux directory).
# mv truecrypt-4.2a-Dm-target.c–kernel-2.6.18-and-2.6.19.patch truecrypt-4.2a/
# cd truecrypt-4.2a/
# patch -p1 < truecrypt-4.2a-Dm-target.c--kernel-2.6.18-and-2.6.19.patch
# cd Linux
Build truecrypt for real
Using
as location of linux sources when prompted
# ./build.sh
Install truecrypt module
# ./install.sh
Load truecrypt module
# /sbin/lsmod |grep truecrypt
truecrypt 163588 0
dm_mod 63449 3 truecrypt,dm_mirror,dm_multipath