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
Touch seeded packages, which is subscribed to initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1531964

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

Status in One Hundred Papercuts:
  Incomplete
Status in initramfs-tools package in Ubuntu:
  Fix Released

Bug description:
  In order to unlock my root FS using an external keyboard I need to add
  the following:

   hid_generic
   mac_hid
   usbhid

  to /etc/initramfs-tools/modules. Otherwise, only the laptop's built-in
  keyboard works.

  In LP: #229732, this was fixed by loading a few modules in the panic
  function. It seems the list of module could be augmented.

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: initramfs-tools 0.120ubuntu6
  ProcVersionSignature: Ubuntu 4.3.0-5.16-generic 4.3.3
  Uname: Linux 4.3.0-5-generic x86_64
  ApportVersion: 2.19.3-0ubuntu2
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Thu Jan  7 14:08:51 2016
  PackageArchitecture: all
  SourcePackage: initramfs-tools
  UpgradeStatus: No upgrade log present (probably fresh install)

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


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to