[PATCH] USB HardDisk Booting 2.4.20

From: Wesley Wright (wewright@verizonmail.com)
Date: Thu Jan 30 2003 - 12:27:37 EST


I recently acquired a USB HardDisk and it seems that the drivers for USB
load after attempts to mount the root partition. I saw one patch that
just put the root mount code into an endless loop, but didn't like this
solution.

What I've done here is add another kernel config option which indicates
if you have a USB device you with to boot. If you do then it changes
the module_init's in drivers/usb/usb.c and drivers/usb/storage/usb.c to
__initcall's. The config option is only enabled when you've selected
"Y" for the USB Mass Storage Device.

My tests show that it seems to work, and I haven't noticed any odd side
affects by initcall-ing the usb devices (concern over this topic is why
I enabled it for static USB MSD only).

Does this seem a reasonable solution, or does anyone have something more
elegant?

-- Wes





-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jan 31 2003 - 22:00:24 EST