From 5f9cb25baf6f5cc93716d500511e43af2987c4ee Mon Sep 17 00:00:00 2001 From: David Shea Date: Thu, 19 Jun 2014 17:18:58 -0400 Subject: [PATCH] Keep virtio_console harder. Kernel modules in F21 are compressed, so sometimes the file we want to keep is virtio_console.ko.xz --- share/runtime-cleanup.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/runtime-cleanup.tmpl b/share/runtime-cleanup.tmpl index 3cc1c209..c7d345e7 100644 --- a/share/runtime-cleanup.tmpl +++ b/share/runtime-cleanup.tmpl @@ -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.