yubikey-luks
yubikey-luks copied to clipboard
Fallback password input if fail from yubikey
If we tried 3 times, and our yubikey has no response, let's fallback to password input.
If yubikey repsoned, while we cannot decrypt our disk with this response, let's ask for new password directly.
Background: I have 2 yubikey, and one is set to 1FA and another is set to 2FA. I wish that when the 1FA one can just work if I plug it in, and password is asked if I plug the 2FA one in instead.
Use /run instead of /tmp, since the env of cryptsetup-suspend has /run only.