I'm trying to get my system encrypted with truecrypt but I'm facing some problems (please don't tell me to use luks or loop-aes, my objective is to use truecrypt).
The most blatant issue is the fact that the script that I put in /etc/initramfs-tools/scripts/local-top/local-top-truecrypt is not being executed at all. In fact, it's not even present in the generated initrd image. It's weird since my hooks script is being executed.
If I look at my initrd image the scripts folders only have init-bottom, local-premount and init-top (even though busybox says it executes scripts in /scripts/local-top)
Is /scripts/local-top/ deprecated or is it a bug in the initramfs tools?
Where exactly should I put the script responsible for modprobing the loop and fuse modules and then mounting the encrypted system by calling truecrypt?
As of the moment I have to manually try to mount the system when busybox fails when it tries to mount the root system (just after executing /scripts/local-top which doesn't exist).
I have to modprobe loop and fuse, create a mount point, and then try to mount there. But then I get an error about invalid mount options:
[ timestamp ] device-mapper: uvent: version 1.0.3
[ timestamp ] device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised:
dm-devel@redhat.com
Error: Usage: mount [-r] [-w] [-o options] [-t type] [-f] [-i] [-n] device directory
I'm assuming this is because busybox mount is different than the "gnu/linux normal mount"
Another thing, if I wanted to customize my init script (the one inside initrd image) what would be the best way (in terms of maintenance)?
I'm starting to suspect I'll have to "stop... it's hammer time" the init script.
Another problem that I noticed is that busybox is not supporting UUIDs. It only has /dev/disk/by-path
I'm using debian squeeze, kernel 2.6.32.
Thanks for any help.