When a wrong LUKS password has been entered, the installation already modified system files. It is better to first check if the password is good.
CREATE AND ADD TPM INITRAMFS HOOK
## SET UMASK IN /etc/initramfs-tools/initramfs.conf
## EDIT CRYPTTAB
USING sha256 HASH WITH SIZE 32
## CRYPT PARTITION: /dev/vda3
CREATE AND ADD TPM POLICY IN TMPFS DIRECTORY /tmp/tmp.0LW1L1THpU
CREATE SECRET TPM LUKS KEY
KILL EXISTING TPM LUKS KEY FROM KEYSLOT
No key found with this passphrase.
COULD NOT KILL KEYSLOT
When a wrong LUKS password has been entered, the installation already modified system files. It is better to first check if the password is good.