Skip to content

Commit

Permalink
feat(kernel-modules): exclude USB drivers in strict hostonly mode
Browse files Browse the repository at this point in the history
Provide a way to avoid installing all USB drivers in some use cases where they
are not needed, i.e., machines without a USB bus.
  • Loading branch information
aafeijoo-suse authored and LaszloGombos committed Dec 7, 2022
1 parent a6395e4 commit 7debf54
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions modules.d/90kernel-modules/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,14 @@ installkernel() {

if [[ -z $drivers ]]; then
hostonly='' instmods \
hid_generic unix \
hid_generic unix

hostonly=$(optional_hostonly) instmods \
ehci-hcd ehci-pci ehci-platform \
ohci-hcd ohci-pci \
uhci-hcd \
xhci-hcd xhci-pci xhci-plat-hcd

hostonly=$(optional_hostonly) instmods \
usbhid \
xhci-hcd xhci-pci xhci-plat-hcd \
"=drivers/hid" \
"=drivers/tty/serial" \
"=drivers/input/serio" \
Expand All @@ -54,7 +55,7 @@ installkernel() {

instmods \
yenta_socket \
atkbd i8042 usbhid firewire-ohci pcmcia hv-vmbus \
atkbd i8042 firewire-ohci pcmcia hv-vmbus \
virtio virtio_ring virtio_pci pci_hyperv \
"=drivers/pcmcia"

Expand Down

0 comments on commit 7debf54

Please sign in to comment.