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

Bug#543568: initramfs-tools: usb storage device not recognized at boot after upgrade to kernel 2.6.30



Package: initramfs-tools
Version: 0.93.4
Severity: important
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


USB storage device is not recognized at boot after kernel upgrade.

It seems that the usb-storage module has been split into several mini 
modules, which are not copied to the initramfs image. 

In my case usb-storage.ko is copied but ums-cypress.ko is not copied.

I've attached a patch against hook-functions that fixes this, by using 
copy_modules_dir to copy all the modules in kernel/drivers/usb/storage,
instead of just usb-storage.

I've set the severity to important because my USB storage device also 
happens to be the boot device... 

Cheers,
Avi

- -- Package-specific info:
- -- /proc/cmdline
BOOT_IMAGE=/vmlinuz-2.6.30-1-686 root=/dev/mapper/afula-root ro rootdelay=10

- -- /proc/filesystems
	ext3
	fuseblk

- -- lsmod
Module                  Size  Used by
binfmt_misc             7120  1 
ppdev                   6348  0 
parport_pc             22420  0 
lp                      8012  0 
parport                31144  3 ppdev,parport_pc,lp
rfkill_input            5272  0 
sco                     8832  2 
bridge                 39968  0 
stp                     2112  1 bridge
bnep                   10860  2 
rfcomm                 30368  0 
l2cap                  18120  6 bnep,rfcomm
bluetooth              47060  6 sco,bnep,rfcomm,l2cap
nfsd                  204900  9 
lockd                  57972  1 nfsd
nfs_acl                 2640  1 nfsd
auth_rpcgss            31416  1 nfsd
sunrpc                163772  8 nfsd,lockd,nfs_acl,auth_rpcgss
exportfs                3792  1 nfsd
powernow_k8            12260  0 
cpufreq_conservative     6256  0 
cpufreq_userspace       2768  0 
cpufreq_stats           3520  0 
cpufreq_powersave       1292  0 
fuse                   47752  1 
loop                   13324  0 
snd_hda_codec_conexant    17164  1 
snd_hda_intel          22192  0 
snd_hda_codec          63580  2 snd_hda_codec_conexant,snd_hda_intel
snd_hwdep               6120  1 snd_hda_codec
snd_pcm_oss            32232  0 
snd_mixer_oss          12368  1 snd_pcm_oss
snd_pcm                62420  3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
arc4                    1560  2 
snd_seq_midi            5688  0 
snd_rawmidi            18596  1 snd_seq_midi
ecb                     2368  2 
snd_seq_midi_event      6212  1 snd_seq_midi
snd_seq                42436  2 snd_seq_midi,snd_seq_midi_event
snd_timer              17436  2 snd_pcm,snd_seq
snd_seq_device          6136  3 snd_seq_midi,snd_rawmidi,snd_seq
b43                   108932  0 
snd                    49060  11 snd_hda_codec_conexant,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore               6184  1 snd
rfkill                  9668  3 rfkill_input,b43
rng_core                3672  1 b43
i2c_nforce2             6448  0 
snd_page_alloc          8180  2 snd_hda_intel,snd_pcm
mac80211              142848  1 b43
i2c_core               20844  1 i2c_nforce2
joydev                  8576  0 
cfg80211               55556  2 b43,mac80211
k8temp                  3984  0 
pcspkr                  2104  0 
serio_raw               4560  0 
led_class               3852  1 b43
evdev                   8028  12 
psmouse                37528  0 
input_polldev           3588  1 b43
wmi                     6184  0 
battery                 6012  0 
processor              34504  1 powernow_k8
ac                      2960  0 
button                  5060  0 
ext3                  107172  2 
jbd                    41036  1 ext3
mbcache                 6924  1 ext3
sha256_generic         11216  0 
aes_i586                8092  2 
aes_generic            27436  1 aes_i586
cbc                     3012  1 
dm_crypt               11092  1 
dm_snapshot            21604  0 
ums_cypress             2888  0 
sd_mod                 28748  4 
crc_t10dif              1632  1 sd_mod
usb_storage            48472  3 ums_cypress
ide_cd_mod             24484  0 
cdrom                  30316  1 ide_cd_mod
ide_pci_generic         3632  0 
ohci_hcd               19880  0 
ata_generic             4340  0 
ehci_hcd               29680  0 
sata_nv                19688  1 
libata                150904  2 ata_generic,sata_nv
amd74xx                 5428  0 
ssb                    37692  1 b43
pcmcia                 24280  2 b43,ssb
pcmcia_core            31212  3 b43,ssb,pcmcia
usbcore               126004  5 ums_cypress,usb_storage,ohci_hcd,ehci_hcd
ide_core               88100  3 ide_cd_mod,ide_pci_generic,amd74xx
scsi_mod              131800  4 ums_cypress,sd_mod,usb_storage,libata
forcedeth              46584  0 
video                  18044  0 
output                  2604  1 video
thermal                12580  0 
fan                     4044  0 
thermal_sys            13140  4 processor,video,thermal,fan
dm_mirror              12580  0 
dm_region_hash         10668  1 dm_mirror
dm_log                  8464  2 dm_mirror,dm_region_hash
dm_mod                 49992  12 dm_crypt,dm_snapshot,dm_mirror,dm_log

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

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

- -- /etc/crypttab
afula_crypt UUID=0897f48a-462d-4ec5-9ef1-a60574fa1182 none luks



- -- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages initramfs-tools depends on:
ii  cpio                          2.10-1     GNU cpio -- a program to manage ar
ii  findutils                     4.4.2-1    utilities for finding files--find,
ii  klibc-utils                   1.5.15-1   small utilities built with klibc f
ii  module-init-tools             3.9-2      tools for managing Linux kernel mo
ii  udev                          0.141-1    /dev/ and hotplug management daemo

Versions of packages initramfs-tools recommends:
ii  busybox                       1:1.10.2-2 Tiny utilities for small and embed

initramfs-tools suggests no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkqUR0UACgkQwK8SobAxNVlJLQCgj9a8DwwbTB+hy4+kgLJ2uIot
wJ4AnRSN8LAlw8h6LAMfPhjTqdAPzWrb
=A5KZ
-----END PGP SIGNATURE-----
Index: initramfs-tools-0.93.4/hook-functions
===================================================================
--- initramfs-tools-0.93.4.orig/hook-functions	2009-08-25 22:33:31.000000000 +0300
+++ initramfs-tools-0.93.4/hook-functions	2009-08-25 22:37:02.000000000 +0300
@@ -375,11 +375,12 @@
 		hid_apple hid_belkin hid_bright hid_cherry hid_chicony \
 		hid_cypress hid_dell hid_ezkey hid_gyration hid_logitech \
 		hid_microsoft hid_monterey hid_petalynx hid_pl 	hid_samsung \
-		hid_sony hid_sunplus hid_tmff hid_zpff usb-storage ext2 \
+		hid_sony hid_sunplus hid_tmff hid_zpff ext2 \
 		ext3 ext4 ext4dev isofs jfs nfs reiserfs udf xfs af_packet \
 		atkbd i8042 virtio_pci; do
 			manual_add_modules "${x}"
 		done
+		copy_modules_dir kernel/drivers/usb/storage
 	;;
 	net)
 		for x in 3c59x 8139cp 8139too 8390 atl1 atl1e b44 bmac \

Reply to: