summaryrefslogtreecommitdiff
path: root/hook-functions
diff options
context:
space:
mode:
authorAvi Rozen <avi.rozen@gmail.com>2009-08-25 23:19:27 +0300
committermaximilian attems <maks@debian.org>2010-02-22 22:29:25 +0100
commit99b32f0831fe89f78144ca5a1da5c1e6a51dc667 (patch)
tree73c8423df39e92888da3aa9ad999dc227b22393d /hook-functions
parent51de1be0a82967582b024dd554c02e457fe8e917 (diff)
downloadinitramfs-tools-99b32f0831fe89f78144ca5a1da5c1e6a51dc667.tar.gz
initramfs-tools-99b32f0831fe89f78144ca5a1da5c1e6a51dc667.zip
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 <maks@debian.org>
Diffstat (limited to 'hook-functions')
-rw-r--r--hook-functions6
1 files changed, 5 insertions, 1 deletions
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
}