runtime-cleanup: fix module cleanup

runtime-cleanup doesn't get a "kernels" arg, so just delete things under
/modules/*/kernel/...
This commit is contained in:
Will Woods 2011-06-24 11:17:48 -04:00
parent 9edadb59fa
commit 796e0ee45f
1 changed files with 2 additions and 4 deletions

View File

@ -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