rd.luks.options kernel cmdline is ignored by systemd-cryptsetup
systemd version the issue has been seen with
258.1-1-arch
Used distribution
Arch Linux
Linux kernel version used
6.17.5-arch1-1
CPU architectures issue was seen on
x86_64
Component
systemd-cryptsetup
Expected behaviour you didn't see
I use UKI and have two partitions set up: EFI and Linux Root. Linux Root is encrypted using LUKS through cryptsetup during installation. I rely on systemd-gpt-autogenerator to automatically mount root partition. I use systemd-boot as the bootloader. If i enter LUKS password correctly, everything boots and works fine. Secure Boot is disabled (i have not set up signing yet).
Using rd.luks.options, such as password-echo=no, verify, tries=0 should have an effect.
Options were set from /etc/cmdline.d/main.conf file or with /etc/kernel/cmdline file such as rd.luks.options=password-echo=no,tries=0, initramfs regenerated after with mkinitcpio -P.
After reboot, i expected to see no password echoing and infinite retries when typing in the wrong password.
Unexpected behaviour you saw
Systemd-cryptsetup options don't have any effect. I've confirmed that cmdline is actually there using e key during boot. Other cmdline such as quiet or rootflags=x-systemd.device-timeout=20s work as expected. Despite having password-echo=no or tries=0 password prompt still uses masked and tries=3 as per default values. I suspect that any other options will be ignored too.
I'm sorry for the photos of the screen (and their quality), i couldn't figure out how to copy these logs from a rescue shell. From the logs it is evident that only 3 tries were executed, even when tries option was set to 0 or 4. I have no idea about the first two failed attempts here, the last one was me deliberately entering the wrong password.
Steps to reproduce the problem
Install arch with two partitions setup: EFI and LUKS-encrypted Linux Root. Configure UKI through systemd-boot. Set kernel cmdline options, for example in /etc/kernel/cmdline such as rd.luks.options=password-echo=no, regenerate the initramfs with mkinitcpio -P. Reboot and observe that password echo is still there.
I have successfully reproduced this in a VM with the latest Arch Linux ISO (2025.11.01-x86_64).
Additional program output to the terminal or log subsystem illustrating the issue
Source: systemd/systemd