From a0e35dbbe0ab7de5e27ff2f78cde786c1fcc770c Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Fri, 20 Mar 2015 09:16:25 -0700 Subject: [PATCH] Keep logitech hid drivers (#1199770) Some logitech mice need a driver. --- share/runtime-cleanup.tmpl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/share/runtime-cleanup.tmpl b/share/runtime-cleanup.tmpl index 37f44a05..ffb5dd1a 100644 --- a/share/runtime-cleanup.tmpl +++ b/share/runtime-cleanup.tmpl @@ -82,7 +82,7 @@ sound drivers/media drivers/hwmon drivers/video net/atm net/bluetooth net/sched net/sctp net/rds net/l2tp net/decnet net/netfilter net/ipv4 net/ipv6 drivers/watchdog drivers/target drivers/rtc drivers/input/joystick -drivers/bluetooth drivers/hid drivers/edac drivers/staging +drivers/bluetooth drivers/edac drivers/staging drivers/usb/serial drivers/usb/host drivers/usb/misc fs/ocfs2 fs/ceph fs/nfsd fs/ubifs fs/nilfs2 arch/x86/kvm @@ -102,6 +102,12 @@ runcmd chroot ${root} find /lib/modules \ \! -name virtio-rng.ko\* \ \! -name ipmi\* \ -delete +# Remove all of drivers/hid except for logitech modules. +runcmd chroot ${root} find /lib/modules \ + -regex ".*/kernel/drivers/hid/.*" \ + \! -name hid-logitech-hidpp.ko\* \ + \! -name hid-logitech-dj.ko\* \ + -delete ## NOTE: depmod gets re-run after cleanup finishes ## remove unused themes, theme engines, icons, etc.