This page collects ideas on how to restructure and improve the cryptsetup initramfs hook script cryptroot.

List of possible setups that need to be supported

(list the devices in a hierarchic order)

Setups with encrypted root fs:

Setups without encrypted root fs (but encrypted resume/swap/initramfs device):

Setups with decrypt_derived keyscript: