[lorax/rhel7] Keep virtio_console module (#750231)
Brian C. Lane
bcl at redhat.com
Thu Oct 10 21:42:13 UTC 2013
From: "Brian C. Lane" <bcl at redhat.com>
virtio_console is a module in RHEL7, so we need to leave it in place
when cleaning the image. It will be loaded automatically when needed.
---
share/runtime-cleanup.tmpl | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/share/runtime-cleanup.tmpl b/share/runtime-cleanup.tmpl
index 36ea506..52230ef 100644
--- a/share/runtime-cleanup.tmpl
+++ b/share/runtime-cleanup.tmpl
@@ -80,7 +80,7 @@ remove /usr/share/icons/*/icon-theme.cache
## clean up kernel modules
<%
removekmods = """
-sound drivers/media drivers/hwmon drivers/video drivers/char
+sound drivers/media drivers/hwmon drivers/video
net/atm net/bluetooth net/sched net/sctp net/bridge
net/rds net/l2tp net/decnet net/netfilter net/ipv4 net/ipv6
drivers/watchdog drivers/target drivers/rtc drivers/input/joystick
@@ -94,6 +94,8 @@ arch/x86/kvm
remove lib/modules/*/kernel/${kmodpath}
%endfor
remove lib/modules/*/{build,source,*.map}
+## Need to keep virtio_console.ko in drivers/char
+runcmd chroot ${root} find /lib/modules -regex ".*/kernel/drivers/char/.*" \! -name virtio_console.ko -delete
## NOTE: depmod gets re-run after cleanup finishes
## remove unused themes, theme engines, icons, etc.
--
1.8.3.1
More information about the anaconda-patches
mailing list