Bug#260068: initrd-tools: shoul mkinitrd use library reduction to reduce the size of the initrd ?
#include <hallo.h>
* Sven Luther [Sun, Jul 18 2004, 11:36:17AM]:
> > vs. original:
> > -rwxr-xr-x 1 root root 90048 1970-01-01 01:00 ld-linux.so.2
> > -rw-r--r-- 1 root root 1244004 1970-01-01 01:00 libc.so.6
>
> Come on, that is 600KB, which is quite nice. Remember in my case, i have
> a size limit of 1.5MB for the initrd, and i also believe other machines,
> like some older older PReP have a 4MB limit for kernel + initrd. Same
> thing can happen with netbooting on some older hardware.
Okay, if you think so...
> Did you do the mklibs thingy by hand ? Or do you have an mkinitrd patch ?
It was done by hand but should not be too hard to be added to mkinitrd.
Basicaly, edit add_command method to push all file names into a list
(list="$list $1" or so) and when all add_commands are done and mklibs
does exist in the $PATH, run mklibs -d <temp. directory>/lib $list.
This will overwrite the copied libs with the reduced versions.
Regards,
Eduard.
--
Letzte Worte eines Turmspringers:
"Heute ist das Wasser aber klar."
Reply to: