Failed to activate key file because crypto_keyfile missing

Disable to read the key file at startup:

  • Edit /etc/crypttab:
  • Change /crypto_keyfile.bin to none
  • Restart
  • No error appears in the logger journalctl

OR

If you want to activate this key file crypto_keyfile.bin at startup without entering your password (like automatic entry): → bad security

 dd bs=512 count=4 if=/dev/random of=/crypto_keyfile.bin iflag=fullblock
 chmod 000 /crypto_keyfile.bin
 chmod 600 /boot/initramfs-linux*
 cryptsetup luksAddKey /dev/sdX# /crypto_keyfile.bin