From 9b57050fc6bf894598974c1d0bae6d40c9f5b20c Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Thu, 4 Jun 2015 13:29:27 -0700 Subject: [PATCH] Keep the zram kernel module Needed by the zram.service Related: rhbz#1196721 --- share/runtime-cleanup.tmpl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/share/runtime-cleanup.tmpl b/share/runtime-cleanup.tmpl index 55534be4..0552669d 100644 --- a/share/runtime-cleanup.tmpl +++ b/share/runtime-cleanup.tmpl @@ -80,7 +80,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/hid drivers/edac drivers/usb/serial drivers/usb/host drivers/usb/misc fs/ocfs2 fs/ceph fs/nfsd fs/ubifs fs/nilfs2 arch/x86/kvm @@ -100,6 +100,10 @@ runcmd chroot ${root} find /lib/modules \ \! -name virtio-rng.ko\* \ \! -name ipmi\* \ -delete +runcmd chroot ${root} find /lib/modules \ + -regex ".*/kernel/drivers/staging/.*" \ + \! -name zram\* \ + -delete ## NOTE: depmod gets re-run after cleanup finishes ## remove unused themes, theme engines, icons, etc.