#1112484 askpass does not support empty passphrases

Package:
cryptsetup
Source:
cryptsetup
Description:
disk encryption support - startup scripts
Submitter:
Johannes Schauer Marin Rodrigues
Date:
2025-08-30 03:59:04 UTC
Severity:
normal
#1112484#5
Date:
2025-08-30 00:02:34 UTC
From:
To:
Hi,

it is possible to supply an empty passphrase to "cryptsetup luksFormat".
It also works without issue to then run "cryptsetup luksOpen" and just
press the enter key to supply the empty passphrase. But when trying to
boot a system with an empty passphrase, the user gets this error
message:

Nothing to read on input.
cryptsetup: ERROR: cryptsetup failed, bad password or options?

I'd like to ask you to either:

 a) support supplying an empty passphrase at the initramfs prompt or
 b) improve the error message to tell the user that cryptsetup-initramfs does
    not support empty passphrases

Thanks!

cheers, josch