[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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 
autofs4                31688  2 
cpufreq_userspace      12576  0 
cpufreq_stats          12907  0 
rfcomm                 45914  14 
cpufreq_conservative    13147  0 
snd_hrtimer            12604  1 
pci_stub               12429  1 
vboxpci                19021  0 
vboxnetadp             13155  0 
vboxnetflt             23571  0 
vboxdrv               185832  3 vboxpci,vboxnetadp,vboxnetflt
binfmt_misc            12957  1 
deflate                12551  0 
zlib_deflate           25600  1 deflate
ctr                    12979  0 
twofish_generic        16569  0 
twofish_x86_64_3way    25167  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 
serpent                29015  0 
blowfish_generic       12464  0 
blowfish_x86_64        21201  0 
blowfish_common        16447  2 blowfish_generic,blowfish_x86_64
cast5                  24829  0 
des_generic            20851  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_null            12732  0 
af_key                 31759  0 
fuse                   61893  1 
nfsd                  211858  13 
nfs                   252501  0 
lockd                  67328  2 nfsd,nfs
auth_rpcgss            37136  2 nfsd,nfs
nfs_acl                12511  2 nfsd,nfs
sunrpc                168861  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_realtek    45973  1 
pl2303                 17262  0 
ftdi_sio               38270  0 
snd_emu10k1_synth      13016  0 
snd_emux_synth         28917  1 snd_emu10k1_synth
snd_seq_virmidi        13175  1 snd_emux_synth
snd_seq_midi_emul      12770  1 snd_emux_synth
snd_emu10k1           128039  3 snd_emu10k1_synth
snd_ac97_codec        106859  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_oss            36899  0 
bluetooth             164414  24 bnep,rfcomm,btusb,ath3k
snd_mixer_oss          17881  1 snd_pcm_oss
snd_pcm                63678  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_rawmidi            22984  3 snd_seq_virmidi,snd_emu10k1,snd_seq_midi
snd_seq_midi_event     13316  2 snd_seq_virmidi,snd_seq_midi
snd_seq                45015  6 
snd_emux_synth,snd_seq_virmidi,snd_seq_midi_emul,snd_seq_midi,snd_seq_midi_event
snd_timer              22842  4 snd_hrtimer,snd_emu10k1,snd_pcm,snd_seq
snd_seq_device         13176  5 
snd_emu10k1_synth,snd_emu10k1,snd_seq_midi,snd_rawmidi,snd_seq
drm_kms_helper         27171  1 i915
snd                    52578  28 
snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_emux_synth,snd_seq_virmidi,snd_emu10k1,snd_ac97_codec,snd_hda_intel,snd_hda_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_hwdep,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
drm                   163771  3 i915,drm_kms_helper
i2c_i801               16877  0 
emu10k1_gp             12498  0 
i2c_algo_bit           12841  1 i915
snd_page_alloc         13003  3 snd_emu10k1,snd_hda_intel,snd_pcm
gameport               13516  2 emu10k1_gp
pcspkr                 12579  0 
soundcore              13065  1 snd
i2c_core               23837  5 i915,drm_kms_helper,drm,i2c_i801,i2c_algo_bit
video                  17629  1 i915
firewire_ohci          35772  0 
firewire_core          48321  2 firewire_sbp2,firewire_ohci
crc_itu_t              12313  1 firewire_core

-- /etc/initramfs-tools/modules

-- /etc/kernel-img.conf
# Kernel image management overrides
# See kernel-img.conf(5) for details
do_symlinks = yes
do_bootloader = no
do_initrd = yes
link_in_boot = no

-- /etc/initramfs-tools/initramfs.conf
MODULES=most
BUSYBOX=y
KEYMAP=n
COMPRESS=gzip
BOOT=local
DEVICE=
NFSROOT=auto

-- /etc/initramfs-tools/update-initramfs.conf
update_initramfs=yes
backup_initramfs=no

-- /etc/crypttab
md1_crypt UUID=8f903ae8-c1ef-4517-bf67-7c0dc39da8eb none luks
md2_crypt UUID=cff7c16b-eb97-4891-9a17-b76d4d376151 none luks
mqhome_crypt UUID=92f7bf05-21c8-4b11-8ca0-dd4feab00cd4 none luks

-- /proc/mdstat
Personalities : [raid1] 
md2 : active (auto-read-only) raid1 sdb3[0]
      425862712 blocks super 1.2 [2/1] [U_]
      
md1 : active raid1 sda2[3] sdb2[2](W)
      62396688 blocks super 1.2 [2/2] [UU]
      
md0 : active raid1 sda1[0]
      123892 blocks super 1.2 [2/1] [U_]
      
unused devices: <none>

-- mkinitramfs hooks
/etc/initramfs-tools/hooks/:

/usr/share/initramfs-tools/hooks:
btrfs
busybox
cryptgnupg
cryptkeyctl
cryptopenct
cryptopensc
cryptpassdev
cryptroot
dmsetup
fuse
keymap
klibc
lvm2
mdadm
ntfs_3g
thermal
udev



Reply to: