I am setting up an encrypted partition with a special script to automatically input the passphrase. The partition is not a system partition and the process requires a custom keyscript.
I've managed to configure almost everything and test the configuration without rebooting the machine, just by using cryptdisks_stop, crypdisks_start. The encryption have a master passphrase, that can by typed in (slot 0) and a binary key that is supposed to be used in the unattended boot.
I've also created a hook script to initrd to copy the custom keyscript to the initrd image, and I've checked that the file was inside it by unpacking the cpio image of initrd in a temp dir.
However, when booting, the system still asks for typing a passphrase.
What is missing?