On Tue, 14 Apr 2009 22:48:50 -0400 Jeff Garzik <jeff@xxxxxxxxxx> wrote: > Arjan van de Ven wrote: > > On Tue, 14 Apr 2009 22:30:28 -0400 > > Jeff Garzik <jeff@xxxxxxxxxx> wrote: > > > >> Arjan van de Ven wrote: > >>> This change just made it go faster enough for you to be out of > >>> luck; fundamentally your userland needs to wait if the device it > >>> wants is not there. > >> All these drivers are in-kernel, and the root device is passed via > >> command line. There is no userland at that point, that needs to > >> wait. > > > > ok fair; but that does not change that the kernel does not know if a > > device is coming. > > Yes that sucks; sadly USB is just this way, you don't know when no > > new devices will come from a certain bus. > > Perhaps -- but I can say that kernels <= 2.6.27 booted with 100% > reliability. > > Now, Kernels >= 2.6.28 always fail. > d > The ONLY variable is the kernel. yes. and you can get the old behavior back by just sticking an msleep(100 * <number of USB ports you have minus one>); back in near the end of the boot. that really is not the right answer. by your argument if anything else gets faster and your system is then booting too fast again that has to get reverted as well. If there was some reasonable way to wait on USB scanning being done we'd do that. Not a nanosecond doubt about that. But since there isn't, this "race who's faster" is an unsolvable problem other than by you saying "wait for root to be there please". rootwait [KNL] Wait (indefinitely) for root device to show up. Useful for devices that are detected asynchronously (e.g. USB and MMC devices). that option has been there for a really long time, and has technically be required for your case. You got lucky so far by pure timing... until recently. It's not nice to not boot suddenly, I sympathize with that. But there's nothing we can realistically do other than using the option that is there for exactly your case. -- Arjan van de Ven Intel Open Source Technology Centre For development, discussion and tips for power savings, visit http://www.lesswatts.org -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html