Kernel compiling: Why is my Kernel so big?

Markus Schönhaber ubuntu-users at list-post.mks-mail.de
Thu Jul 9 23:20:47 UTC 2009


Dieter Wirz:

> ~ du /lib/modules/* -sh #Disk usage of modules
> 672M    /lib/modules/2.6.28.10-didi1
> 88M     /lib/modules/2.6.28-13-generic
> 
> And initrd is about 50M!

You should set
INSTALL_MOD_STRIP=1
for the modules_install stage. Otherwise the modules will contain
debugging symbols, which makes them really huge.
I'm not sure how to set INSTALL_MOD_STRIP with make-kpkg. But simply
setting it in the evironment might be enough.

-- 
Regards
  mks




More information about the ubuntu-users mailing list