I can’t find the post anymore, but someone found that using postDeviceCommands
is anyway too early for at least btrfs, and can cause data loss. It will also stop working if the systemd init ever becomes the only option.
You’ll actually want something like this: Impermanence vs. systemd initrd w/ TPM unlocking - #3 by kjhoerr