Keep virtio_console module (#750231)
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.
This commit is contained in:
parent
ad19c8a2d9
commit
dccaa0eeb0
@ -80,7 +80,7 @@ remove /usr/share/icons/*/icon-theme.cache
|
|||||||
## clean up kernel modules
|
## clean up kernel modules
|
||||||
<%
|
<%
|
||||||
removekmods = """
|
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/atm net/bluetooth net/sched net/sctp net/bridge
|
||||||
net/rds net/l2tp net/decnet net/netfilter net/ipv4 net/ipv6
|
net/rds net/l2tp net/decnet net/netfilter net/ipv4 net/ipv6
|
||||||
drivers/watchdog drivers/target drivers/rtc drivers/input/joystick
|
drivers/watchdog drivers/target drivers/rtc drivers/input/joystick
|
||||||
@ -94,6 +94,8 @@ arch/x86/kvm
|
|||||||
remove lib/modules/*/kernel/${kmodpath}
|
remove lib/modules/*/kernel/${kmodpath}
|
||||||
%endfor
|
%endfor
|
||||||
remove lib/modules/*/{build,source,*.map}
|
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
|
## NOTE: depmod gets re-run after cleanup finishes
|
||||||
|
|
||||||
## remove unused themes, theme engines, icons, etc.
|
## remove unused themes, theme engines, icons, etc.
|
||||||
|
Loading…
Reference in New Issue
Block a user