Bug#657707: [initramfs-tools] modules for initrd are not stripped
On Wed, 2019-07-24 at 13:06 +0200, Samuel Thibault wrote: > I'm also hitting disk contraints with almost-100M initrds. > > Ben Hutchings, le mar. 05 févr. 2019 01:00:31 +0100, a ecrit: > > On Sat, 28 Jan 2012 08:34:31 +0100 =?utf-8?q?Micha=C5=82_Miros=C5=82aw?= > > wrote: > > > Please add an option (possibly defaulted to on) to strip kernel modules > > > and > > > binaries put in initrd. When using kernel with debugging enables the > > > unstripped modules are available in /lib/modules. Unneeded copy of the > > > symbols > > > in initrd image take over 80% of its size. > > [...] > > FTR, plain strip shouldn't be used as such, > > strip --strip-unneeded > > is needed instead, to avoid breaking loading the modules. strip breaks module signatures. Ben. -- Ben Hutchings compatible: Gracefully accepts erroneous data from any source signature.asc Description: This is a digitally signed message part
Bug#657707: [initramfs-tools] modules for initrd are not stripped
Ben Hutchings, le mer. 24 juil. 2019 13:48:00 +0100, a ecrit: > On Wed, 2019-07-24 at 13:06 +0200, Samuel Thibault wrote: > > I'm also hitting disk contraints with almost-100M initrds. > > > > Ben Hutchings, le mar. 05 févr. 2019 01:00:31 +0100, a ecrit: > > > On Sat, 28 Jan 2012 08:34:31 +0100 =?utf-8?q?Micha=C5=82_Miros=C5=82aw?= > > > wrote: > > > > Please add an option (possibly defaulted to on) to strip kernel modules > > > > and > > > > binaries put in initrd. When using kernel with debugging enables the > > > > unstripped modules are available in /lib/modules. Unneeded copy of the > > > > symbols > > > > in initrd image take over 80% of its size. > > > [...] > > > > FTR, plain strip shouldn't be used as such, > > > > strip --strip-unneeded > > > > is needed instead, to avoid breaking loading the modules. > > strip breaks module signatures. Sure, I didn't mean it wouldn't. I just mean that even for people who don't care about signatures, strip shouldn't be used alone, since it'll even break loading the module. Samuel
Bug#657707: [initramfs-tools] modules for initrd are not stripped
I'm also hitting disk contraints with almost-100M initrds. Ben Hutchings, le mar. 05 févr. 2019 01:00:31 +0100, a ecrit: > On Sat, 28 Jan 2012 08:34:31 +0100 =?utf-8?q?Micha=C5=82_Miros=C5=82aw?= > wrote: > > Please add an option (possibly defaulted to on) to strip kernel modules and > > binaries put in initrd. When using kernel with debugging enables the > > unstripped modules are available in /lib/modules. Unneeded copy of the > > symbols > > in initrd image take over 80% of its size. > [...] FTR, plain strip shouldn't be used as such, strip --strip-unneeded is needed instead, to avoid breaking loading the modules. Samuel
Bug#657707: [initramfs-tools] modules for initrd are not stripped
On Sat, 28 Jan 2012 08:34:31 +0100 =?utf-8?q?Micha=C5=82_Miros=C5=82aw?= wrote: > Package: initramfs-tools > Version: 0.99 > Severity: normal > > --- Please enter the report below this line. --- > > Please add an option (possibly defaulted to on) to strip kernel modules and > binaries put in initrd. When using kernel with debugging enables the > unstripped modules are available in /lib/modules. Unneeded copy of the > symbols > in initrd image take over 80% of its size. [...] We must not do this by default because stripping will destroy module signatures. I'm open to adding an option but won't work on it myself. Ben. -- Ben Hutchings If you seem to know what you are doing, you'll be given more to do. signature.asc Description: This is a digitally signed message part
Bug#657707: [initramfs-tools] modules for initrd are not stripped
Package: initramfs-tools Version: 0.99 Severity: normal --- Please enter the report below this line. --- Please add an option (possibly defaulted to on) to strip kernel modules and binaries put in initrd. When using kernel with debugging enables the unstripped modules are available in /lib/modules. Unneeded copy of the symbols in initrd image take over 80% of its size. -rw-r--r-- 1 root root 5112330 Jan 17 23:50 initrd.img-3.2.1mq+ (stripped modules) -rw-r--r-- 1 root root 32283567 Jan 28 08:06 initrd.img-3.2.2mq+ (unstripped modules) (rebase from 3.2.1 to 3.2.2 is insignificant). --- System information. --- Architecture: amd64 Kernel: Linux 3.2.1mq+ Debian Release: wheezy/sid 500 testing security.debian.org 500 testing ftp.uni-kl.de 500 testing ftp.pl.debian.org 500 stable security.debian.org 500 stable ftp.pl.debian.org 500 stable deb.opera.com --- Package information. --- Depends (Version) | Installed ==-+-= klibc-utils (= 1.5.9-1) | 1.5.25-1.1 cpio | 2.11-7 module-init-tools | 3.16-1 udev (= 0.086-1) | 175-3 findutils (= 4.2.24) | 4.4.2-4 Recommends (Version) | Installed -+-=== busybox (= 1:1.01-3) | 1:1.19.3-5 OR busybox-initramfs| Suggests (Version) | Installed ==-+-=== bash-completion| 1:1.99-3 --- Output from package bug script --- -- initramfs sizes -- /proc/cmdline BOOT_IMAGE=/vmlinuz-3.2.1mq+ root=/dev/mapper/rabbit-root ro libata.ignore_hpa=1 disable_mtrr_cleanup -- /proc/filesystems ext4 ext2 fuseblk -- lsmod Module Size Used by cpufreq_powersave 12454 0 bnep 17567 2 autofs431688 2 cpufreq_userspace 12576 0 cpufreq_stats 12907 0 rfcomm 45914 14 cpufreq_conservative13147 0 snd_hrtimer12604 1 pci_stub 12429 1 vboxpci19021 0 vboxnetadp 13155 0 vboxnetflt 23571 0 vboxdrv 185832 3 vboxpci,vboxnetadp,vboxnetflt binfmt_misc12957 1 deflate12551 0 zlib_deflate 25600 1 deflate ctr12979 0 twofish_generic16569 0 twofish_x86_64_3way25167 0 twofish_x86_64 12501 1 twofish_x86_64_3way twofish_common 20505 3 twofish_generic,twofish_x86_64_3way,twofish_x86_64 camellia 29068 0 serpent29015 0 blowfish_generic 12464 0 blowfish_x86_6421201 0 blowfish_common16447 2 blowfish_generic,blowfish_x86_64 cast5 24829 0 des_generic20851 0 xcbc 12709 0 rmd160 16640 0 sha512_generic 12625 0 sha1_ssse3 16950 0 sha1_generic 12539 1 sha1_ssse3 hmac 12835 0 crypto_null12732 0 af_key 31759 0 fuse 61893 1 nfsd 211858 13 nfs 252501 0 lockd 67328 2 nfsd,nfs auth_rpcgss37136 2 nfsd,nfs nfs_acl12511 2 nfsd,nfs sunrpc168861 19 nfsd,nfs,lockd,auth_rpcgss,nfs_acl ext2 59194 1 loop 22639 0 firewire_sbp2 17993 0 btusb 17462 2 snd_hda_codec_hdmi 30824 1 snd_hda_codec_realtek45973 1 pl2303 17262 0 ftdi_sio 38270 0 snd_emu10k1_synth 13016 0 snd_emux_synth 28917 1 snd_emu10k1_synth snd_seq_virmidi13175 1 snd_emux_synth snd_seq_midi_emul 12770 1 snd_emux_synth snd_emu10k1 128039 3 snd_emu10k1_synth snd_ac97_codec106859 1 snd_emu10k1 ac97_bus 12510 1 snd_ac97_codec snd_hda_intel 26305 4 snd_hda_codec 68801 3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel usbserial 32061 2 pl2303,ftdi_sio i915 355716 2 ath3k 12671 0 snd_pcm_oss36899 0 bluetooth 164414 24 bnep,rfcomm,btusb,ath3k snd_mixer_oss 17881 1 snd_pcm_oss snd_pcm63678 7 snd_hda_codec_hdmi,snd_emu10k1,snd_ac97_codec,snd_hda_intel,snd_hda_codec,snd_pcm_oss snd_util_mem 12704 2 snd_emux_synth,snd_emu10k1 snd_hwdep 13150 3 snd_emux_synth,snd_emu10k1,snd_hda_codec snd_seq_midi 12848 0 snd_rawmidi22984 3 snd_seq_virmidi,snd_emu10k1,snd_seq_midi snd_seq_midi_event 13316 2 snd_seq_virmidi,snd_seq_midi snd_seq45015 6