From 796e0ee45fbc6e237b5e6f83e94838660590774a Mon Sep 17 00:00:00 2001 From: Will Woods Date: Fri, 24 Jun 2011 11:17:48 -0400 Subject: [PATCH] runtime-cleanup: fix module cleanup runtime-cleanup doesn't get a "kernels" arg, so just delete things under /modules/*/kernel/... --- share/runtime-cleanup.tmpl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/share/runtime-cleanup.tmpl b/share/runtime-cleanup.tmpl index 45d3f2ff..5caadaf4 100644 --- a/share/runtime-cleanup.tmpl +++ b/share/runtime-cleanup.tmpl @@ -73,10 +73,8 @@ fs/ocfs2 fs/nls fs/ceph fs/nfsd fs/ubifs fs/nilfs2 arch/x86/kvm """.split() %> -%for kernel in kernels: - %for kmodpath in removekmods: - remove /modules/${kernel.version}/kernel/${kmodpath} - %endfor +%for kmodpath in removekmods: + remove /modules/*/kernel/${kmodpath} %endfor ## FIXME: run depmod, generate module-info