runtime-postinstall depmod cleanup

This commit is contained in:
Will Woods 2011-05-26 18:36:30 -04:00
parent e1677432a3
commit 33107bdab1

View File

@ -117,12 +117,9 @@ move lib/firmware firmware
symlink ../modules lib/modules symlink ../modules lib/modules
symlink ../firmware lib/firmware symlink ../firmware lib/firmware
## no compress_modules (runtime's already compressed) ## TODO: cleanup_kernel_modules(), then depmod
## run_depmod() ## TODO: depmod -a -F ${root}/boot/System.map-${kver} -b ${root} ${kver}
%for kernel in kernels: %for moddir in glob("modules/*"):
runcmd depmod -a -F ${root}/boot/System.map-${kernel.version} -b ${root} ${kernel.version} remove ${moddir}/*.map ${moddir}/build ${moddir}/source
remove modules/${kernel.version}/*.map ## FIXME: generate magical anaconda 'module-info' files
remove modules/${kernel.version}/build
remove modules/${kernel.version}/source
## TODO FIXME: need anaconda magical module-info
%endfor %endfor