Right, so I've been playing with LUKS and I'm working towards setting up a system similar to Bitlocker where you can use a USB key to store a keyfile and have the system mount an encrypted data partition automatically at boot (for a headless system). Easier said than done...
I have no problem setting up an encrypted volume and mounting it but I'm having trouble thinking of an elegant way to automate the process at boot time. I've found a few guides on the net for mounting root partitions but, well, they're not perfect to start with and they seem over-complicated for a data partition i.e. mod-probing drivers and modifying initramfs - for a pure storage partition it should be as simple as checking for, temporarily mounting, and pulling the keyfile from the flash drive and maybe prompting for a password if that fails.
Does anyone have any advice or know of a decent guide to follow?