From 99b32f0831fe89f78144ca5a1da5c1e6a51dc667 Mon Sep 17 00:00:00 2001 From: Avi Rozen Date: Tue, 25 Aug 2009 23:19:27 +0300 Subject: mkinitramfs: add all usb storage devices USB storage device is not recognized at boot after kernel upgrade to 2.6.30. 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 (closes: #543568) Signed-off-by: maximilian attems --- hook-functions | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hook-functions b/hook-functions index 8376be3..90092bd 100644 --- a/hook-functions +++ b/hook-functions @@ -381,7 +381,7 @@ auto_add_modules() { case "$1" in base) - for x in ehci-hcd ohci-hcd uhci-hcd usbhid usb-storage ext2 \ + for x in ehci-hcd ohci-hcd uhci-hcd usbhid ext2 \ ext3 ext4 ext4dev isofs jfs nfs reiserfs udf xfs af_packet \ atkbd i8042 virtio_pci; do manual_add_modules "${x}" @@ -440,6 +440,9 @@ auto_add_modules() manual_add_modules "${x}" done ;; + usb_storage) + copy_modules_dir kernel/drivers/usb/storage + ;; *) auto_add_modules base auto_add_modules net @@ -452,6 +455,7 @@ auto_add_modules() auto_add_modules ieee1394 auto_add_modules firewire auto_add_modules mmc + auto_add_modules usb_storage ;; esac } -- cgit v1.2.3