Automatically decrypt root filesystem systemd/dm-crypt/cryptsetup/crypttab

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Automatically decrypt root filesystem systemd/dm-crypt/cryptsetup/crypttab

1,035 Views
beestarbush
Contributor I

Hello,

I have followed the document AN12714.pdf and the IMX Linux User guide(IMXLUG_6.6.23_2.0.0) on how to use the CAAM module to encrypt and decrypt a partition. Since the operations performed there are manually I want to have this done automatically.

It is possible to script these steps and introduce a script at boot in my initramfs to do this, but I have also looked into using third-party components such as the module systemd-cryptsetup of systemd and the usage of a /etc/crypttab file. I can however not yet determine if this is usable with the CAAM module as in the examples in the documents the keys are imported into the keyring and then use dmsetup to decrypt the partition.

  1. Does somebody have a explanation on how this should work with the combination of the CAAM module?
  2. And did anybody managed to get this combination working or is there some reference forum post where this is working/discussed?
0 Kudos
Reply
0 Replies