Apr. 29, 2008
Why would anyone want to encrypt theire drives with random keys? Well the whole drive wouldn't be that suitable perhaps but the swap and tmp partitions could. Looking at the man page for crypttab suggests the following setup for a randomly encrypted swap:
cswap /dev/sda6 /dev/random swap
This all looked great until I rebooted the system to find it stopping at "Starting early crytpo disks". Looking into this further revealed a problem in cryptsetup which I have filed as a bug in Launchpad: https://bugs.launchpad.net/ubuntu/+source/cryptsetup/+bug/223072
The work-around is to use a keyfile as for any other partition on the system.