From 7b15726e1dae504b19424d1f6b3a59aa4b3ed88c Mon Sep 17 00:00:00 2001 From: Thierry Laurion Date: Tue, 5 Apr 2022 13:53:09 -0400 Subject: [PATCH] functions: add loading of usb-hid via enable_usb Testing points: - All boards explicitely declaring CONFIG_USB_KEYBOARD=y gets USB Keyboard back under Heads - All other boards are not impacted. --- initrd/etc/functions | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/initrd/etc/functions b/initrd/etc/functions index ee1ec286..45f893b9 100755 --- a/initrd/etc/functions +++ b/initrd/etc/functions @@ -122,6 +122,14 @@ enable_usb() || die "xhci_pci: module load failed" sleep 2 fi + + if [ "$CONFIG_USB_KEYBOARD" = y ]; then + if ! lsmod | grep -q usbhid; then + insmod /lib/modules/usbhid.ko \ + || die "usbhid: module load failed" + fi + fi + } confirm_gpg_card()