Hi, On Wed, 2026-12-02 at 11:20 +0100, Laurent Bigonville wrote:
> Package: dracut-core > Version: 113-4 > Severity: normal > Subject: dracut-core: 45plymouth doesn't include evdev, plymouth falls back to VT input > > Dear Maintainer, > > The 45plymouth module does not add the evdev kernel module to the > initramfs. On Debian evdev is built as a module (CONFIG_INPUT_EVDEV=m), > so during early boot there are no /dev/input/event* nodes and plymouth > cannot use its libevdev/xkbcommon input backend. It ignores every > input device ("Ignoring, since this is a non-evdev device" in > plymouth-debug.log) and reads the keyboard through the VT instead. The > real system only loads evdev after the switch to the real root, when > the passphrase prompt is already over. > > Consequences at the cryptsetup passphrase prompt: > - plymouth doesn't use the XKB layout it reads from > /etc/default/keyboard; > - its Caps Lock indicator is never shown with console-setup keymaps > for layouts with non-ASCII letters, because ckbcomp emulates Caps > Lock with CtrlL_Lock (see #514464). > > Everything else the evdev backend needs is already in the initramfs > (libxkbcommon, /usr/share/X11/xkb, /etc/default/keyboard). > > Adding the module fixes it: > > echo 'add_drivers+=" evdev "' > /etc/dracut.conf.d/evdev.conf > update-initramfs -u > > after which plymouth-debug.log shows "Listening for keys from device > 'AT Translated Set 2 keyboard'" before the password request, and the > Caps Lock indicator works. > > Could you add something like this to > modules.d/45plymouth/module-setup.sh? > > # called by dracut > installkernel() { > instmods evdev > } > > With it, evdev.ko ends up in the initramfs both with --hostonly and > --no-hostonly. instmods is optional by default and dracut-install skips > built-in modules ("is a builtin kernel module"); I checked with a > module tree where evdev is listed in modules.builtin and the image > builds fine. So this is harmless on kernels that build evdev in, such > as Fedora's, and probably worth forwarding upstream. > > I've also asked the kernel team to build evdev in (#1156083); if that > happens this change becomes a no-op. The initramfs-tools hook shipped > by plymouth gets the same change (manual_add_modules evdev).
may I ask to forward that fix to https://github.com/dracut-ng/dracut/pulls to get it reviewed and merged upstream first?
-- Benjamin Drung Debian & Ubuntu Developer