[PATCH] HID USB keyboards not working in initramfs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
This bug might either be in the kernel extra package or initramfs-tools, can't decide.
I have tested all following version of the kernel:
- linux-image-
- linux-image-
- linux-image-
- linux-image-
- linux-image-
- linux-image-
- linux-image-
- linux-image-
In all of them (* = except latest), if the corresponding -extra package is installed then USBs keyboard *will work* (and display mode will also be set correctly, although it's a separate issue).
Otherwise, no USB keyboard will be available at all for initramfs programs.
I have narrowed down the issue to the fact that hid, hid-generic and usbhid modules are missing and thus not loaded.
Possibly related bugs:
https:/
https:/
https:/
https:/
https:/
https:/
==== Update 18 January
Sorry if you received too many notifications, I have tried my best document the issue and find a solution.
This issue can be split in 3 separate issues now:
1) functions in initramfs-tools' hook-functions do not handle command failures (please merge attached patch), also for modprobe which made it very difficult to troubleshoot the other issues
2) hid modules are currently in extra but - considering the past amount of bug reports and spoilt user experience - these ought better be in the -generic package*
3) linux-image-
I hope this bug report will be useful to you guys.
* = if this is not advisable for the -generic package, then would be nice that update-initramfs failed or displayed a warning about USB keyboard usage when -extra is not installed, instead of silently including all those goodies when it is, as it does now
description: | updated |
description: | updated |
summary: |
- Logitech USB keyboard not working in initramfs + USB keyboard not working in initramfs (hid issue) |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
summary: |
- USB keyboard not working in initramfs (hid issue) + HID USB keyboards not working in initramfs |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
I tried adding these modules:
ehci_pci
usbcore
usb_common
xhci_hcd
uhci_hcd
ehci_hcd
ohci_hcd
usbhid
Same result.
Would it be possible to have verbose errors output when initramfs-tools fails at loading some module? Silent failure is evil.