Keep virtio_console harder.

Kernel modules in F21 are compressed, so sometimes the file we want to
keep is virtio_console.ko.xz
This commit is contained in:
David Shea 2014-06-19 17:18:58 -04:00
parent f4b8e4547f
commit 5f9cb25baf
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ arch/x86/kvm
%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
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.