lkml.org 
[lkml]   [2008]   [Apr]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC/PATCH] usb-storage: wait for device scanning before mounting root
On Thu, 24 Apr 2008, Matthew Dharm wrote:
> This also has all sorts of races between do_mounts 'waiting' and the actual
> USB device enumeration. It's entirely possible that the kernel loads via
> BIOS, the USB drivers are loaded, that forces devices to disconnect/reset,
> and they take a while to re-enumerate. During that delay, the kernel gets
> to do_mount; now, no devices show in this "waiting for scan" count.

So how does that happen? ->storage_probe fails and driver core calls it
later at some point?

On Thu, 24 Apr 2008, Matthew Dharm wrote:
> The right way to do this is via initrd and something like devlabel to wait
> for a specific device to appear. On some systems, you may want to wait for
> several devices to appear.

You should be able to boot from an external USB disk without initrd.
That's why we have the current root_delay= hack.

Pekka


\
 
 \ /
  Last update: 2008-04-25 08:33    [W:0.070 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site