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:
parent
f4b8e4547f
commit
5f9cb25baf
@ -92,7 +92,7 @@ arch/x86/kvm
|
|||||||
%endfor
|
%endfor
|
||||||
remove lib/modules/*/{build,source,*.map}
|
remove lib/modules/*/{build,source,*.map}
|
||||||
## Need to keep virtio_console.ko in drivers/char
|
## 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
|
## 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