This is a complete nightmare so far.
I just want to do something very simple - mount /home using a key on a USB/SD card.
I tried using crypttab but it seems Fedora's crypttab is inferior:
no keyscript option
no keyfile-size option
...
The key can be a set of /dev/random bytes surrounded by /dev/urandom bytes in an unformatted partition or a file on a formatted partition.
I can easily unlock the luks container manually:
But i'm having a really hard time getting this to work properly during boot.Code:dd if=/dev/mmcblk0p3 skip=116700547 ibs=1 count=4096 obs=4096 | cryptsetup luksOpen /dev/sda5 testdev --key-file=-
Please help me![]()



