[systemd] 248-2 fails to decrypt multiple volumes with same passphrase

Description:

This is very similar to https://bugs.archlinux.org/task/70272. The initial difference with that ticket (which might not be so different as I'll explain) is that this Luks volume is encrypted by password and not a key-file.

Why I said that it might not be so different after all is that I have two volumes and while the first is decrypted, the second isn't. It seems the reason behind is is that systemd stores the passphrase temporarily as a file as it tries the same passphrase for different volumes. This can be seen in the logs:

May 13 07:19:18 archlinux systemd-tty-ask-password-agent[315]: Failed to send: No such file or directory
May 13 07:19:18 archlinux systemd-tty-ask-password-agent[315]: Invalid password file /run/systemd/ask-password/ask.RpMg9u
May 13 07:19:18 archlinux systemd-tty-ask-password-agent[315]: Failed to process password: No such file or directory

Additional info:
* package version(s): systemd 248.2-2 (I'll test with previous version and report back)

Steps to reproduce:

- Power-up
- Provide Luks passphrase
- Observe the drive failing to decrypt and mount