First proposed patch: show modprobe's error message when there is a failure at querying for a module in manual_add_modules() and return proper exit code on failures.
This would make current functions less hacky and more deterministic. ** Summary changed: - HID USB keyboards not working in initramfs + [PATCH] HID USB keyboards not working in initramfs ** Patch added: "hook-functions-dont-ignore-modprobe-fails.patch" https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1412077/+attachment/4301141/+files/hook-functions-dont-ignore-modprobe-fails.patch -- 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/1412077 Title: [PATCH] HID USB keyboards not working in initramfs Status in initramfs-tools package in Ubuntu: New 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-3.13.0-35-generic - linux-image-3.13.0-36-generic - linux-image-3.13.0-37-generic - linux-image-3.13.0-39-generic - linux-image-3.13.0-40-generic - linux-image-3.13.0-41-generic - linux-image-3.13.0-43-generic - linux-image-3.13.0-44-generic * In all of them except latest (-44), if the corresponding -extra package is not installed then USBs keyboard will not work (and display mode will also not be set correctly, although it's a separate issue). 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://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1238194 https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1066376 https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/229732 https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/886149 https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1054292 https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1017991 ==== 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-3.13.0-44-generic doesn't sport a modules.dep that covers the -extra package (as it did in the past) 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 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1412077/+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