I tried to reproduce it in an Ubuntu 22.04 VM. I added a USB keyboard
device there:

```
$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0627:0001 Adomax Technology Co., Ltd QEMU USB Keyboard
Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd QEMU USB Tablet
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
```

Then I compared the MODULES=most with MODULES=dep:

```
$ lsinitramfs /boot/initrd.img | grep -E '/(hid|hid-generic|usbhid)\.ko'
usr/lib/modules/6.8.0-45-generic/kernel/drivers/hid/hid-generic.ko
usr/lib/modules/6.8.0-45-generic/kernel/drivers/hid/hid.ko
usr/lib/modules/6.8.0-45-generic/kernel/drivers/hid/usbhid/usbhid.ko
$ echo "MODULES=dep" | sudo tee /etc/initramfs-tools/conf.d/dep.conf
$ sudo LANG=C update-initramfs -u
update-initramfs: Generating /boot/initrd.img-6.8.0-45-generic
find: '/var/tmp/mkinitramfs_sHeOU2/lib/firmware': No such file or directory
$ lsinitramfs /boot/initrd.img | grep -E '/(hid|hid-generic|usbhid)\.ko'
$ lsinitramfs /boot/initrd.img| grep -E 'usb.*\.ko'
usr/lib/modules/6.8.0-45-generic/kernel/drivers/hid/usbhid/usbhid.ko
usr/lib/modules/6.8.0-45-generic/kernel/drivers/usb/host/xhci-pci-renesas.ko
usr/lib/modules/6.8.0-45-generic/kernel/drivers/usb/host/xhci-pci.ko
```

So only usbhid gets included.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1531964

Title:
  Unable to unlock cryptsetup with external keyboard when using
  MODULES=dep

To manage notifications about this bug go to:
https://bugs.launchpad.net/hundredpapercuts/+bug/1531964/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to